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: