Bug 2144638 - error G153793D8: cannot apply asm label to function after its first use
Summary: error G153793D8: cannot apply asm label to function after its first use
Keywords:
Status: CLOSED DUPLICATE of bug 2140618
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-11-21 22:03 UTC by Omair Majid
Modified: 2022-11-22 14:01 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-22 14:01:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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