Bug 2100833 - error: cannot apply asm label to function after its first use
Summary: error: cannot apply asm label to function after its first use
Keywords:
Status: CLOSED DUPLICATE of bug 2100546
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-24 11:58 UTC by Nick Clifton
Modified: 2022-07-01 15:44 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-07-01 15:44:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nick Clifton 2022-06-24 11:58:13 UTC
Description of problem:

Building annobin in rawhide now fails for the ppc64le target (but not any others) because of this error:

clang++  -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -shared -fPIC -Wall -O2 -flto -g -grecord-gcc-switches -Wl,--build-id=md5 -Wl,-z,now -I./.. -lLLVM annobin.cpp -o annobin-for-clang.so
make[1]: Leaving directory '/builddir/build/BUILD/annobin-10.76/clang-plugin'
In file included from annobin.cpp:15:
In file included from /usr/include/clang/Frontend/FrontendPluginRegistry.h:16:
In file included from /usr/include/clang/Frontend/FrontendAction.h:21:
In file included from /usr/include/clang/Basic/LLVM.h:21:
In file included from /usr/include/llvm/Support/Casting.h:20:
In file included from /usr/bin/../lib/gcc/ppc64le-redhat-linux/12/../../../../include/c++/12/memory:77:
In file included from /usr/bin/../lib/gcc/ppc64le-redhat-linux/12/../../../../include/c++/12/bits/shared_ptr.h:52:
In file included from /usr/bin/../lib/gcc/ppc64le-redhat-linux/12/../../../../include/c++/12/iosfwd:40:
In file included from /usr/bin/../lib/gcc/ppc64le-redhat-linux/12/../../../../include/c++/12/bits/postypes.h:40:
In file included from /usr/bin/../lib/gcc/ppc64le-redhat-linux/12/../../../../include/c++/12/cwchar:44:
In file included from /usr/include/wchar.h:872:
/usr/include/bits/wchar-ldbl.h:84:1: error: cannot apply asm label to function after its first use
__LDBL_REDIR2_DECL (vswprintf_chk)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/cdefs.h:573:30: note: expanded from macro '__LDBL_REDIR2_DECL'
  extern __typeof (__##name) __##name \
                             ^
<scratch space>:23:1: note: expanded from here
__vswprintf_chk
^


Version-Release number of selected component (if applicable):

annobin-10.76-2 
clang-14.0.0-4


How reproducible:

100%  
See: https://koji.fedoraproject.org/koji/taskinfo?taskID=88686200


Steps to Reproduce:
1. fedpkg clone annobin
2. fedpkg build


Actual results:

  Build failure of ppc64le target due to above error.

Expected results:

  Build without problems.

Additional info:

Comment 1 Tom Stellard 2022-07-01 15:44:34 UTC

*** This bug has been marked as a duplicate of bug 2100546 ***


Note You need to log in before you can comment on or make changes to this bug.