Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953802 - stage1 build with clang fails to ship python zlib module, immediate stage2 failure
Summary: stage1 build with clang fails to ship python zlib module, immediate stage2 fa...
Status: CONFIRMED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 758167
  Show dependency tree
 
Reported: 2025-04-13 16:33 UTC by Mart Raudsepp
Modified: 2025-04-14 08:36 UTC (History)
1 user (show)

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


Attachments
stage2.log (stage2.log,1.31 KB, text/plain)
2025-04-13 16:33 UTC, Mart Raudsepp
Details
stage1.log (stage1.log.xz,231.94 KB, application/x-xz)
2025-04-13 16:34 UTC, Mart Raudsepp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mart Raudsepp gentoo-dev 2025-04-13 16:33:13 UTC
Bootstrapping with DARWIN_USE_GCC=0 fails to build the python zlib module, resulting in immediate failure on stage2 start:

*** WARNING: renaming "zlib" since importing it failed: dlopen(/Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/build/lib.macosx-15.4-arm64-3.11/zlib.cpython-311-darwin.bundle, 0x0002): Library not loaded: libz.so.1.2.5
  Referenced from: <1222A4B8-04CE-39AF-981B-543F9B13BDBA> /Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/build/lib.macosx-15.4-arm64-3.11/zlib.cpython-311-darwin.bundle
  Reason: tried: 'libz.so.1.2.5' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibz.so.1.2.5' (no such file), 'libz.so.1.2.5' (no such file), '/Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/libz.so.1.2.5' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/libz.so.1.2.5' (no such file), '/Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/libz.so.1.2.5' (no such file)

<snip>

*** WARNING: renaming "binascii" since importing it failed: dlopen(/Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/build/lib.macosx-15.4-arm64-3.11/binascii.cpython-311-darwin.bundle, 0x0002): Library not loaded: libz.so.1.2.5
  Referenced from: <6996DB25-B28D-3714-B978-4C97BDEB3A88> /Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/build/lib.macosx-15.4-arm64-3.11/binascii.cpython-311-darwin.bundle
  Reason: tried: 'libz.so.1.2.5' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibz.so.1.2.5' (no such file), 'libz.so.1.2.5' (no such file), '/Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/libz.so.1.2.5' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/libz.so.1.2.5' (no such file), '/Users/leio/Gentoo/var/tmp/python-3.11.7-gentoo-prefix-patched/Python-3.11.7/libz.so.1.2.5' (no such file)

----

Looks like it's trying and failing to import it during python own build due to some weird runtime paths?

Then stage2 fails immediately at start from not being able to run emerge:

ModuleNotFoundError: No module named 'zlib'
Comment 1 Mart Raudsepp gentoo-dev 2025-04-13 16:33:54 UTC
Created attachment 924670 [details]
stage2.log
Comment 2 Mart Raudsepp gentoo-dev 2025-04-13 16:34:45 UTC
Created attachment 924671 [details]
stage1.log
Comment 3 Mart Raudsepp gentoo-dev 2025-04-14 08:36:51 UTC
This fails the same with DARWIN_USE_GCC=0 LATEST_TREE_YES=1, but I don't observe it actually using anything newer in stage1 - still old zlib-1.2.5 (with a bit newer ones all failing to build) and python-3.11.7 with that latest tree request.