Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 819027 - dev-lang/python-3.9.7_p1 fails to compile
Summary: dev-lang/python-3.9.7_p1 fails to compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-20 14:03 UTC by Agostino Sarubbo
Modified: 2021-11-30 00:08 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,268.24 KB, text/plain)
2021-10-20 14:03 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-10-20 14:03:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/python-3.9.7_p1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-10-20 14:03:24 UTC
Created attachment 745896 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-10-20 14:03:25 UTC
Possible context of error(s):

/usr/include/tk.h:96:13: fatal error: X11/Xlib.h: No such file or directory
/usr/include/tk.h:96:13: fatal error: X11/Xlib.h: No such file or directory
Comment 3 Ionen Wolkens gentoo-dev 2021-10-20 14:19:12 UTC
I'm confused as to why libX11 is not emerged here

dev-lang/tk-8.6.11.1:0/8.6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -aqua -debug -test threads -truetype -xscreensaver

    !aqua? (
        >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}]
        >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
Comment 4 Scott Alfter 2021-11-04 19:26:32 UTC
In my case, Python was failing to build because crypt.h was missing.  (Actually, a bunch of packages were failing to build; Python was one of them.)  I checked another host and found that sys-libs/libxcrypt provides /usr/include/crypt.h, but this wasn't installed on the host that was having issues.  After installing libxcrypt, Python built without further complaint.  I then continued with emerge -uNDv @world, and the first thing it pulled in was virtual/libcrypt.  Are there some undeclared dependencies somewhere that could be causing this problem?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-04 22:41:53 UTC
(In reply to Scott Alfter from comment #4)
> In my case, Python was failing to build because crypt.h was missing. 
> (Actually, a bunch of packages were failing to build; Python was one of
> them.)  I checked another host and found that sys-libs/libxcrypt provides
> /usr/include/crypt.h, but this wasn't installed on the host that was having
> issues.  After installing libxcrypt, Python built without further complaint.
> I then continued with emerge -uNDv @world, and the first thing it pulled in
> was virtual/libcrypt.  Are there some undeclared dependencies somewhere that
> could be causing this problem?

This is bug 802210 but mitigated by recent changes (see the bottom of the bug) if Python is upgraded first.