Bug 2144638

Summary: error G153793D8: cannot apply asm label to function after its first use
Product: [Fedora] Fedora Reporter: Omair Majid <omajid>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED DUPLICATE 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-11-22 14:01:55 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 Omair Majid 2022-11-21 22:03:49 UTC
Description of problem:

I am trying to build .NET 7 on ppc64le on Rawhide using clang: https://download.copr.fedorainfracloud.org/results/@dotnet-sig/dotnet-preview/fedora-rawhide-ppc64le/05057773-dotnet7.0/. The build fails with errors that look like this:

      In file included from /builddir/build/BUILD/dotnet-v7.0.100-rc.2.22477.23-x64-bootstrap/src/runtime/artifacts/source-build/self/src/src/native/libs/System.Native/pal_io.c:29:
      In file included from /usr/include/syslog.h:1:
      In file included from /usr/include/sys/syslog.h:212:
    /usr/include/bits/syslog-ldbl.h(33,1): error G153793D8: cannot apply asm label to function after its first use [/builddir/build/BUILD/dotnet-v7.0.100-rc.2.22477.23-x64-bootstrap/src/runtime/artifacts/source-build/self/src/src/native/libs/build-native.proj]
      __LDBL_REDIR2_DECL (vsyslog_chk)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/include/sys/cdefs.h:573:30: note: expanded from macro '__LDBL_REDIR2_DECL'
        extern __typeof (__##name) __##name \
                                   ^   
      <scratch space>:259:1: note: expanded from here
      __vsyslog_chk
      ^   
      1 error generated.

I found some related bugs, but I can't quite tell what the current status of these are upstream and in fedora:
- https://bugs.llvm.org/show_bug.cgi?id=48650
- https://sourceware.org/bugzilla/show_bug.cgi?id=27558
- https://bugzilla.redhat.com/show_bug.cgi?id=2119761

Version-Release number of selected component (if applicable):
glibc-2.36.9000-13.fc38.ppc64le
clang-15.0.4-1.fc38.ppc64le.rpm

How reproducible:


Steps to Reproduce:
1. wget https://download.copr.fedorainfracloud.org/results/@dotnet-sig/dotnet-preview/fedora-rawhide-ppc64le/05057773-dotnet7.0/dotnet7.0-7.0.100-0.fc38~bootstrap.1.src.rpm
2. rpm -Uvh dotnet7.0-7.0.100-0.fc38~bootstrap.1.src.rp
3. rpmbuild -ba ~/rpmbuild/SPECS/dotnet7.0/spec

Actual results:


Expected results:


Additional info:

Comment 1 Florian Weimer 2022-11-22 14:01:55 UTC

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