Whole system is built with clang, qemu only fails to build in that case. Fails with both gcc and clang env's
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.