clang error : compile cpython on macbook pro m1 pro I get ld: symbol(s) not found for architecture arm64 clang: error: linker

Hello,

Her's my configuration :

mac os : 12.4 mc book pro m1 pro cpu 8 core 32 go ram hombrew installed :

https://brew.sh/

I just wold like to try compile python3.11

https://github.com/python/cpython

Here is configure line /configure --with-tcltk-includes="-I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers" --with-tcltk-libs="/Library/Frameworks/Tcl.framework/Tcl /Library/Frameworks/Tk.framework/Tk" --enable-optimizations --with-pydebug --build=aarch64-apple-darwin20.2.0 --enable-shared

problem :

when i run make i get this message :

Undefined symbols for architecture arm64:  "_libintl_bindtextdomain", referenced from:    __locale_bindtextdomain_impl in _localemodule.o  "_libintl_dcgettext", referenced from:    __locale_dcgettext_impl in _localemodule.o  "_libintl_dgettext", referenced from:    __locale_dgettext_impl in _localemodule.o  "_libintl_gettext", referenced from:    __locale_gettext_impl in _localemodule.o  "_libintl_setlocale", referenced from:    __locale_setlocale_impl in _localemodule.o    _locale_decode_monetary in _localemodule.o  "_libintl_textdomain", referenced from:    __locale_textdomain_impl in _localemodule.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [Programs/_freeze_module] Error 1 make[2]: *** [build_all_generate_profile] Error 2 make[1]: *** [profile-gen-stamp] Error 2 make: *** [profile-run-stamp] Error 2 clang -arch arm64 -Xlinker -v @(#)PROGRAM:ld PROJECT:ld64-764 BUILD 11:29:07 May 17 2022 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em Library search paths: /usr/local/lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib Framework search paths: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ Undefined symbols for architecture arm64:  "_main", referenced from:    implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 clang: error: linker

Could you help me plese to fix this issus

Best reagards

Battant

  • see python issus

    https://bugs.python.org/issue46975

Add a Comment

Replies

see python issus

https://bugs.python.org/issue46975