Running emerge python fails on prefix on darwin, fails building _ctypes module due to a redeclared as different kind of symbol error. Reproducible: Always
Please include the full build.log and emerge --info (I figure it's coming :p)
Created attachment 783203 [details] build.log from failed emerge
Created attachment 783206 [details] emerge --info
Not sure if relevant but I manually resymlinked MacOSX.sdk from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk to /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk following an xcode update.
[01m[K/Users/tom/Gentoo/var/tmp/portage/dev-lang/python-3.9.12/work/Python-3.9.12/Modules/_ctypes/callproc.c:1459:15:[m[K [01;31m[Kerror: [m[K'[01m[K_dyld_shared_cache_contains_path[m[K' redeclared as different kind of symbol 1459 | static bool (*[01;31m[K_dyld_shared_cache_contains_path[m[K)(const char *path); | [01;31m[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[m[K In file included from [01m[K/Users/tom/Gentoo/var/tmp/portage/dev-lang/python-3.9.12/work/Python-3.9.12/Modules/_ctypes/callproc.c:70[m[K: [01m[K/Users/tom/Gentoo/MacOSX.sdk/usr/include/mach-o/dyld.h:121:13:[m[K [01;36m[Knote: [m[Kprevious declaration of '[01m[K_dyld_shared_cache_contains_path[m[K' with type '[01m[K_Bool(const char *)[m[K' 121 | extern bool [01;36m[K_dyld_shared_cache_contains_path[m[K(const char* path) __API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0)) DYLD_DRIVERKIT_UNAVAILABLE; | [01;36m[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[m[K I made a mistake in the patchset.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=1272991bd64b9354b74579511c9b2498f9c09f84 commit 1272991bd64b9354b74579511c9b2498f9c09f84 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2022-06-08 10:53:30 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2022-06-08 10:53:30 +0000 dev-lang/python-3.9.12: fix compilation on recent Darwin Closes: https://bugs.gentoo.org/850307 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian@gentoo.org> dev-lang/python/Manifest | 2 +- dev-lang/python/python-3.9.12.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)