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'
Created attachment 924670 [details] stage2.log
Created attachment 924671 [details] stage1.log
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.