Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913099 - app-emulation/qemu-8.0.4 - fails to build with both gcc and clang when the whole system is built with llvm
Summary: app-emulation/qemu-8.0.4 - fails to build with both gcc and clang when the wh...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-27 10:41 UTC by Rahul Sandhu
Modified: 2023-08-27 20:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info,17.36 KB, text/plain)
2023-08-27 11:05 UTC, Rahul Sandhu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rahul Sandhu 2023-08-27 10:41:42 UTC
Whole system is built with clang, qemu only fails to build in that case. Fails with both gcc and clang env's
Comment 1 Rahul Sandhu 2023-08-27 10:46:38 UTC
https://0x0.st/H9gf.log build.log as too big to be uploaded
Comment 2 Rahul Sandhu 2023-08-27 11:05:35 UTC
Created attachment 868823 [details]
emerge --info
Comment 3 Kostadin Shishmanov 2023-08-27 20:37:35 UTC
(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
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-27 20:55:45 UTC
Yeah, and invalid accordingly. glib will have been built with LTO there and then you can't use its static libs with another compiler.