Bug 2119761

Summary: error: cannot apply asm label to function after its first use
Product: [Fedora] Fedora Reporter: Andrew Price <anprice>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aoliva, arjun.is, codonell, dj, fweimer, law, mcermak, mcoufal, mfabian, pfrankli, rth, sipoyare, skolosov
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-08-19 12:08:42 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:
Attachments:
Description Flags
Console output for the failed CI job none

Description Andrew Price 2022-08-19 10:49:55 UTC
Created attachment 1906522 [details]
Console output for the failed CI job

Description of problem:

gfs2-utils CI job fedora-rawhide-power9-ppc64le failed with this error message which looks like it might be a glibc issue. This is a test job that uses clang to build. The test that uses gcc passed.

In file included from gfs2hex.c:12:
In file included from /usr/include/curses.h:456:
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>:239:1: note: expanded from here
__vswprintf_chk
^
In file included from gfs2hex.c:12:
In file included from /usr/include/curses.h:456:
In file included from /usr/include/wchar.h:872:
/usr/include/bits/wchar-ldbl.h:88:1: error: cannot apply asm label to function after its first use
__LDBL_REDIR2_DECL (vfwprintf_chk)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/cdefs.h:573:30: note: expanded from macro '__LDBL_REDIR2_DECL'
  extern __typeof (__##name) __##name \
                             ^
<scratch space>:251:1: note: expanded from here
__vfwprintf_chk
^
In file included from gfs2hex.c:12:
In file included from /usr/include/curses.h:456:
In file included from /usr/include/wchar.h:872:
/usr/include/bits/wchar-ldbl.h:89:1: error: cannot apply asm label to function after its first use
__LDBL_REDIR2_DECL (vwprintf_chk)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/cdefs.h:573:30: note: expanded from macro '__LDBL_REDIR2_DECL'
  extern __typeof (__##name) __##name \
                             ^
<scratch space>:255:1: note: expanded from here
__vwprintf_chk
^


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

glibc-2.36-1.fc37.ppc64le

How reproducible:
Unknown

Steps to Reproduce:
1. Build gfs2-utils on ppc64le with clang

Actual results:
Build failed

Expected results:
Build succeeds.

Comment 1 Andrew Price 2022-08-19 12:08:42 UTC
Further testing shows that this was actually a clang bug but it's been fixed in the latest version. Sorry for the noise!