Bug 2119761 - 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 NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-19 10:49 UTC by Andrew Price
Modified: 2022-08-19 12:08 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-08-19 12:08:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Console output for the failed CI job (117.00 KB, text/plain)
2022-08-19 10:49 UTC, Andrew Price
no flags Details

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!


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