Opened 6 months ago
Last modified 6 months ago
#71846 assigned defect
python310 @3.10.16+universal: dyld: lazy symbol binding failed: Symbol not found: _getentropy
Reported by: | rmottola (Riccardo) | Owned by: | jmroot (Joshua Root) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | elcapitan python | Cc: | |
Port: | python310 |
Description
/usr/bin/clang -arch x86_64 -arch i386 -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64 -arch i386 -flto -Wl,-export_dynamic -g -fprofile-instr-generate -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.10/Python -o python.exe Programs/python.o -lintl -ldl -framework CoreFoundation /usr/bin/clang -arch x86_64 -arch i386 -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64 -arch i386 -flto -Wl,-export_dynamic -g -fprofile-instr-generate -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.10/Python -o Programs/_testembed Programs/_testembed.o -lintl -ldl -framework CoreFoundation DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.16 ./python.exe -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi dyld: lazy symbol binding failed: Symbol not found: _getentropy Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.16/Python.framework/Versions/3.10/Python Expected in: /usr/lib/libSystem.B.dylib dyld: Symbol not found: _getentropy Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.16/Python.framework/Versions/3.10/Python Expected in: /usr/lib/libSystem.B.dylib /bin/sh: line 1: 31513 Trace/BPT trap: 5 DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.16 ./python.exe -E -S -m sysconfig --generate-posix-vars generate-posix-vars failed
Change History (7)
comment:1 Changed 6 months ago by rmottola (Riccardo)
comment:2 Changed 6 months ago by rmottola (Riccardo)
Clang 15 has the same error as clang 17 about lipo. DIdn't try 16...
Clang 7.0:
error: Invalid value (Producer: 'LLVM7.1.0' Reader: 'LLVM APPLE_1_800.0.42.1_0') /Library/Developer/CommandLineTools/usr/bin/ar: internal ranlib command failed make[3]: *** [libpython3.10.a] Error 1
Clang 8.0
error: Invalid value (Producer: 'LLVM8.0.1' Reader: 'LLVM APPLE_1_800.0.42.1_0') /Library/Developer/CommandLineTools/usr/bin/ar: internal ranlib command failed make[3]: *** [libpython3.10.a] Error 1
Clang 9.0:
error: Invalid value (Producer: 'LLVM9.0.1' Reader: 'LLVM APPLE_1_800.0.42.1_0') /Library/Developer/CommandLineTools/usr/bin/ar: internal ranlib command failed make[3]: *** [libpython3.10.a] Error 1
Clang 10:
error: Invalid value (Producer: 'LLVM10.0.1' Reader: 'LLVM APPLE_1_800.0.42.1_0') /Library/Developer/CommandLineTools/usr/bin/ar: internal ranlib command failed make[3]: *** [libpython3.10.a] Error 1
Clang 11:
fatal error: /opt/local/bin/lipo: can't figure out the architecture type of: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/.tmp/ceval-d6f181.o clang: error: lipo command failed with exit code 1 (use -v to see invocation) make[3]: *** [Python/ceval.o] Error 1
comment:3 follow-up: 6 Changed 6 months ago by kencu (Ken)
What variant of cctools do you have installed?
comment:4 follow-up: 7 Changed 6 months ago by jmroot (Joshua Root)
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
Do you not have a 10.11 SDK?
comment:5 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to jmroot |
---|---|
Status: | new → assigned |
Summary: | python 310 fails on 10.11 for _getentropy → python310 @3.10.16+universal: dyld: lazy symbol binding failed: Symbol not found: _getentropy |
comment:6 Changed 6 months ago by rmottola (Riccardo)
Replying to kencu:
What variant of cctools do you have installed?
The following ports are currently installed: cctools @949.0.1_2+llvm90 cctools @949.0.1_3+llvm90 (active)
comment:7 Changed 6 months ago by rmottola (Riccardo)
Replying to jmroot:
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdkDo you not have a 10.11 SDK?
apparently it is 10.12 already? I have Xcode 7.3.1
ls -l /Library/Developer/CommandLineTools/SDKs/ total 8 drwxr-xr-x 5 root wheel 170 Sep 17 2017 MacOSX.sdk lrwxr-xr-x 1 root wheel 10 Apr 14 2023 MacOSX10.12.sdk -> MacOSX.sdk
I have no other SDK's installed using porta. However this SDK worked for all ports and also older python10 I have:
The following ports are currently installed: python310 @3.10.11_0+lto+optimizations python310 @3.10.12_0+lto+optimizations python310 @3.10.13_0+lto+optimizations python310 @3.10.14_0+lto+optimizations python310 @3.10.15_0+lto+optimizations python310 @3.10.15_0+lto+optimizations+universal (active)
Note: See
TracTickets for help on using
tickets.
I attempted a build with clang 17... expecting to actually reproduce the error or by change hanving the function, instead, it breaks with:
I don't know what the lipo command is, but appears a glitch in the macports compiler it it can't know the architecture?