Summary: | app-emulation/qemu-8.0.4 - fails to build with both gcc and clang when the whole system is built with llvm | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Rahul Sandhu <nvraxn> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | nvraxn |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info |
Description
Rahul Sandhu
2023-08-27 10:41:42 UTC
https://0x0.st/H9gf.log build.log as too big to be uploaded Created attachment 868823 [details]
emerge --info
(In reply to Rahul Sandhu from comment #1) > https://0x0.st/H9gf.log build.log as too big to be uploaded Next time you can compress the log with "xz -9" and upload it This is the issue I think: [960/1131] gcc -m64 -mcx16 -o tests/bench/qtree-bench tests/bench/qtree-bench.p/qtree-bench.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,--whole-archive -Wl,--start-group libevent-loop-base.a libqom.fa -Wl,--no-whole-archive -fstack-protector-strong -static -Wl,-z,relro -Wl,-z,now -Wl,--warn-common -march=native -mtune=native -O2 -pipe -Wl,--as-needed libqemuutil.a libqom.fa -lm -pthread -lgthread-2.0 -lglib-2.0 -lpcre2-8 -Wl,--end-group FAILED: tests/bench/qtree-bench gcc -m64 -mcx16 -o tests/bench/qtree-bench tests/bench/qtree-bench.p/qtree-bench.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,--whole-archive -Wl,--start-group libevent-loop-base.a libqom.fa -Wl,--no-whole-archive -fstack-protector-strong -static -Wl,-z,relro -Wl,-z,now -Wl,--warn-common -march=native -mtune=native -O2 -pipe -Wl,--as-needed libqemuutil.a libqom.fa -lm -pthread -lgthread-2.0 -lglib-2.0 -lpcre2-8 -Wl,--end-group /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/libglib-2.0.a: error adding symbols: file format not recognized collect2: error: ld returned 1 exit status Yeah, and invalid accordingly. glib will have been built with LTO there and then you can't use its static libs with another compiler. |