Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822783 - dev-python/pydevd fails to build
Summary: dev-python/pydevd fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: https://github.com/vaeth/portage-bash...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-10 06:41 UTC by Росен Александров
Modified: 2021-11-10 07:39 UTC (History)
1 user (show)

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


Attachments
pydevd build log (file_822783.txt,6.05 KB, text/plain)
2021-11-10 06:41 UTC, Росен Александров
Details
emerge --info (file_822783.txt,17.34 KB, text/plain)
2021-11-10 06:42 UTC, Росен Александров
Details
make.conf (file_822783.txt,2.51 KB, text/plain)
2021-11-10 07:10 UTC, Росен Александров
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Росен Александров 2021-11-10 06:41:23 UTC
Created attachment 749973 [details]
pydevd build log

Hello,

The issue is like in description.

Please take a look at the attachments.

Regards,
Rosen Aleksandrov
Comment 1 Росен Александров 2021-11-10 06:42:17 UTC
Created attachment 749976 [details]
emerge --info
Comment 2 Tee KOBAYASHI 2021-11-10 07:07:33 UTC
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".
Comment 3 Росен Александров 2021-11-10 07:10:23 UTC
Created attachment 750009 [details]
make.conf

There's and make.conf as well, i do not see anywhere those additional flags.
Comment 4 Tee KOBAYASHI 2021-11-10 07:20:38 UTC
FYI, similar inconsistencies of *FLAGS are also observed in https://bugs.gentoo.org/820740. I have no idea what is happening.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-10 07:22:34 UTC
(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*.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-10 07:23:34 UTC
(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...
Comment 7 Росен Александров 2021-11-10 07:37:18 UTC
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.