Summary: | www-client/firefox-62.0.3 USE=lto with clang - 8 0:07.22 configure: error: compiler is incompatible with sanitize options | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vladi <vladi> |
Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | herrtimson, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=675484 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build log from FF
New build log with USE="-custom-cflags -custom-optimization" build log without distcc |
Description
Vladi
2018-10-08 18:04:20 UTC
You have set USE="custom-cflags custom-optimization" ... in this case it is your responsibility to provide supported flags. Error is: > ld.lld: error: -plugin-opt=Os Caused by > --enable-optimize=-Os from CFLAGS Closing as invalid because there's nothing we can do when we accept flags set by users. You are on your own, sorry. Sorry, forgot to mention that same happens with those disabled. Updating the build log. Created attachment 550034 [details]
New build log with USE="-custom-cflags -custom-optimization"
Please try without distcc. Like you can see, your flags are getting cleaned: > strip-flags: CFLAGS: changed '-march=native -pipe -fomit-frame-pointer' to '-march=native -pipe' > strip-flags: CXXFLAGS: changed '-march=native -pipe -fomit-frame-pointer' to '-march=native -pipe' > strip-flags: LDFLAGS: changed '-Wl,-O2 -Wl,--as-needed -Bdirect -Wl,-z,now -Bdirect -Wl,-z,now -Bdirect -Wl,-z,now -Bdirect -Wl,-z,now' to '-Wl,-O2 -Wl,--as-needed -Wl,-z,now -Wl,-z,now -Wl,-z,now -Wl,-z,now' But later you see "-Os" and cleaned stuff again: > checking whether the C compiler (/usr/lib/llvm/6/bin/clang -std=gnu99 -march=native -Os -pipe -fomit-frame-pointer -Wl,-O2 -Wl,--as-needed -Wl,-z,now -Wl,-z,now -Wl,-z,now -Wl,-z,now -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags -Bdirect -Wl,-z,now -fuse-ld=lld) works... yes Created attachment 550042 [details]
build log without distcc
So I have no clue at the moment. It is not present when we sanitize CFLAGS/CXXFLAGS but later. I tried to reproduce and set "-Os" but it will get filtered as expected on my system. I really don't know what's happening on your system. Still able to reproduce with 78.3.1+? |