Created attachment 898005 [details] in lzip : in tarball : emerge--info emerge-pqv /var/tmp/portage/media-libs/mesa-24.1.3/temp/** /etc/portage/** * Messages for package media-libs/mesa-24.1.3: * Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm * detected! This can cause problems. For details, see bug 459306. * QA Notice: Files built without respecting CFLAGS have been detected * Please include the following list of files in your report: * /usr/lib/gallium-pipe/pipe_i915.so * /usr/lib64/gallium-pipe/pipe_i915.so
[2094/2257] x86_64-pc-linux-gnu-gcc [...] -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches -fPIC [...] -o src/gallium/targets/pipe-loader/pipe_i915.so.p/pipe_i915.c.o [2116/2257] x86_64-pc-linux-gnu-g++ -o src/gallium/targets/pipe-loader/pipe_i915.so src/gallium/targets/pipe-loader/pipe_i915.so.p/pipe_i915.c.o -flto -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,pipe_i915.so -O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 [...] Seems pretty clear FLAGS are being respected. No clue why they are being misdetected for you.
Might be a false positive from LTO. Could you try a build without -flto=auto and see if it reports the same thing?
(In reply to Kostadin Shishmanov from comment #2) > Might be a false positive from LTO. Could you try a build without -flto=auto > and see if it reports the same thing? So, I've done some additional attempts. 1. With tests, without lto: I got test fail like in https://bugs.gentoo.org/823774 2. With tests, with lto: tests passed, but still QA Notice 3. Without tests and without lto: no QA Notice. I'll attach logs for every of the new attempts.
Created attachment 898089 [details] no lto, test fail: in lzip : in tarball: emerge_--info.txt emerge_-avtqb1_mesa.txt /var/tmp/portage/media-libs/mesa-24.1.3/temp/** /etc/portage/**
Created attachment 898090 [details] lto, qa notice: in lzip : in tarball: emerge_--info.txt emerge_-avtqb1_mesa.txt /var/tmp/portage/media-libs/mesa-24.1.3/temp/** /etc/portage/**
Created attachment 898091 [details] no test, no lto, no qa notice : in lzip : in tarball: emerge_--info.txt emerge_-avtqb1_mesa.txt /var/tmp/portage/media-libs/mesa-24.1.3/temp/** /etc/portage/**
Still a problem with current versions? I feel like this must be some sort of local configuration problem.