Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850307 - dev-lang/python-3.9.12: fails to build on prefix on darwin
Summary: dev-lang/python-3.9.12: fails to build on prefix on darwin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-07 05:51 UTC by Tom Gillespie
Modified: 2022-06-08 11:04 UTC (History)
1 user (show)

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


Attachments
build.log from failed emerge (python-3.9.12-darwin-build.log,240.88 KB, text/x-log)
2022-06-07 05:53 UTC, Tom Gillespie
Details
emerge --info (emerge-info-python-3.9.12-fail,5.18 KB, text/plain)
2022-06-07 05:55 UTC, Tom Gillespie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Gillespie 2022-06-07 05:51:20 UTC
Running emerge python fails on prefix on darwin, fails building _ctypes module due to a redeclared as different kind of symbol error.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-07 05:52:05 UTC
Please include the full build.log and emerge --info (I figure it's coming :p)
Comment 2 Tom Gillespie 2022-06-07 05:53:44 UTC
Created attachment 783203 [details]
build.log from failed emerge
Comment 3 Tom Gillespie 2022-06-07 05:55:34 UTC
Created attachment 783206 [details]
emerge --info
Comment 4 Tom Gillespie 2022-06-07 05:57:55 UTC
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.
Comment 5 Fabian Groffen gentoo-dev 2022-06-07 06:07:51 UTC
[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.
Comment 6 Larry the Git Cow gentoo-dev 2022-06-08 11:04:54 UTC
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(-)