Created attachment 749973 [details] pydevd build log Hello, The issue is like in description. Please take a look at the attachments. Regards, Rosen Aleksandrov
Created attachment 749976 [details] emerge --info
There seem to be inconsistencies between build.log and emerge --info; the former reports CXXFLAGS to be CXXFLAGS="-O2 -march=znver2 -pipe" whereas the latter * CXXFLAGS='-O2 -march=znver2 -pipe -Wl,-O1 -Wl,--as-needed' It is expected that the build fails if any of CXX, CXXFLAGS or CPPFLAGS contains "-Wl,--as-needed".
Created attachment 750009 [details] make.conf There's and make.conf as well, i do not see anywhere those additional flags.
FYI, similar inconsistencies of *FLAGS are also observed in https://bugs.gentoo.org/820740. I have no idea what is happening.
(In reply to Tee KOBAYASHI from comment #4) > FYI, similar inconsistencies of *FLAGS are also observed in > https://bugs.gentoo.org/820740. I have no idea what is happening. I assume it's some bashrc nonsense. Need to see grep -rsin "LDFLAGS" /etc/portage, find /etc/portage, and possibly cat /etc/portage/bashrc*.
(In reply to Sam James from comment #5) > (In reply to Tee KOBAYASHI from comment #4) > > FYI, similar inconsistencies of *FLAGS are also observed in > > https://bugs.gentoo.org/820740. I have no idea what is happening. > > I assume it's some bashrc nonsense. Need to see grep -rsin "LDFLAGS" > /etc/portage, find /etc/portage, and possibly cat /etc/portage/bashrc*. You can tell because of the "* CFLAGS='-flto=12 -march=native -O2 -pipe -fuse-ld=bfd -Wl,-O1 -Wl,--as-needed -Wl,-fuse-ld=lld'" and CPU information in the build log. It's from https://github.com/vaeth/portage-bashrc-mv/tree/main/bashrc.d or similar...
Well i found i have a bashrc from mv overlay which do not remember as i haven't used this PC for a while, it is somewhere here but it's full with a lot of variables which i cannot found where are they set. So i removed cflags use flag from portage-bashrc-mv to see if make sense and it does. I will close this bug report as it's not gentoo related.