Bug 2100833

Summary: error: cannot apply asm label to function after its first use
Product: [Fedora] Fedora Reporter: Nick Clifton <nickc>
Component: clangAssignee: Tom Stellard <tstellar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, kkleine, npopov, sbergman, sguelton, siddharth.kde, tstellar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-01 15:44:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***