This is a continuation of #2100546 and #2115752, but for the syslog.h header. To reproduce, run the following on ppc64le: dnf install clang echo "#include <syslog.h>" > test.c clang -mabi=ieeelongdouble -O2 -D_FORTIFY_SOURCE=1 test.c This results in: /usr/include/bits/syslog-ldbl.h:33:1: error: cannot apply asm label to function after its first use __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>:30:1: note: expanded from here __vsyslog_chk The sys/syslog.h header includes bits/syslog.h, which uses __vsyslog_chk, and then includes bits/syslog-ldbl.h afterwards, which adds an asm label to __vsyslog_chk, which is not supported by clang. I expect this will need a similar fix as previously applied to stdio.h and wchar.h. I also ran for f in /usr/include/*.h; do echo $f; printf "#include <$f>\nint main() { return 0; }" > test.c; clang -mabi=ieeelongdouble -O2 -D_FORTIFY_SOURCE=1 test.c; done to check if there are any more headers exhibiting this issue, but syslog.h appears to be the last one.
I posted a patch on libc-alpha fixing this issue: https://patchwork.sourceware.org/project/glibc/patch/20221116150803.1990947-1-tuliom@ascii.art.br/
*** Bug 2144638 has been marked as a duplicate of this bug. ***
Fixed in Fedora 38. Keeping this open to fix this in F37, F36, and F35 (though it EOLs 2022-12-13).
Looks like the relevant update is https://bodhi.fedoraproject.org/updates/FEDORA-2022-344825e8ec. Unfortunately it got stuck due to a spurious looking gating failure (just says "error").
(In reply to Nikita Popov from comment #7) > Looks like the relevant update is > https://bodhi.fedoraproject.org/updates/FEDORA-2022-344825e8ec. > Unfortunately it got stuck due to a spurious looking gating failure (just > says "error"). Hmm. I've requested a fresh test run.
The next build went in, and I can confirm that compiler-rt now builds successfully on ppc64le. Thanks everyone!
FEDORA-2023-981efe22aa has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-981efe22aa
FEDORA-2023-981efe22aa has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-981efe22aa` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-981efe22aa See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-981efe22aa has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.