Opened 2 years ago
Closed 2 years ago
#66141 closed defect (fixed)
py310-awscrt @0.14.0_0: build fatal warning: -undefined dynamic_lookup may not work with chained fixups
Reported by: | ianthrive (Ian Timothy) | Owned by: | dgilman (David Gilman) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | ventura | Cc: | casr (Chris Rawnsley) |
Port: | py-awscrt |
Description
% doas port clean py310-awscrt ---> Cleaning py310-awscrt % doas port install py310-awscrt [...snip...] Error: Failed to build py310-awscrt: command execution failed [...snip...] % cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-awscrt/py310-awscrt/main.log [...snip (full log attached)...] :info:build /usr/bin/clang -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk build/temp.macosx-13.0-arm64-cpython-310/source/auth_credentials.o build/temp.macosx-13.0-arm64-cpython-310/source/auth_signer.o build/temp.macosx-13.0-arm64-cpython-310/source/auth_signing_config.o build/temp.macosx-13.0-arm64-cpython-310/source/common.o build/temp.macosx-13.0-arm64-cpython-310/source/crc.o build/temp.macosx-13.0-arm64-cpython-310/source/crypto.o build/temp.macosx-13.0-arm64-cpython-310/source/event_stream_headers.o build/temp.macosx-13.0-arm64-cpython-310/source/event_stream_rpc_client_connection.o build/temp.macosx-13.0-arm64-cpython-310/source/event_stream_rpc_client_continuation.o build/temp.macosx-13.0-arm64-cpython-310/source/http_connection.o build/temp.macosx-13.0-arm64-cpython-310/source/http_headers.o build/temp.macosx-13.0-arm64-cpython-310/source/http_message.o build/temp.macosx-13.0-arm64-cpython-310/source/http_proxy.o build/temp.macosx-13.0-arm64-cpython-310/source/http_stream.o build/temp.macosx-13.0-arm64-cpython-310/source/io.o build/temp.macosx-13.0-arm64-cpython-310/source/module.o build/temp.macosx-13.0-arm64-cpython-310/source/mqtt_client.o build/temp.macosx-13.0-arm64-cpython-310/source/mqtt_client_connection.o build/temp.macosx-13.0-arm64-cpython-310/source/pkcs11_lib.o build/temp.macosx-13.0-arm64-cpython-310/source/s3_client.o build/temp.macosx-13.0-arm64-cpython-310/source/s3_meta_request.o -Lbuild/temp.macosx-13.0-arm64-cpython-310/deps/install/lib -laws-c-s3 -laws-c-mqtt -laws-c-auth -laws-c-http -laws-c-event-stream -laws-c-compression -laws-checksums -laws-c-io -laws-c-cal -laws-c-sdkutils -laws-c-common -o build/lib.macosx-13.0-arm64-cpython-310/_awscrt.cpython-310-darwin.so -arch arm64 -framework Security -Wl,-fatal_warnings :info:build ld: warning: -undefined dynamic_lookup may not work with chained fixups :info:build ld: fatal warning(s) induced error (-fatal_warnings) :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build error: command '/usr/bin/clang' failed with exit code 1 :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-awscrt/py310-awscrt/work/awscrt-0.14.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 setup.py --no-user-cfg build -j10 :info:build Exit code: 1 :error:build Failed to build py310-awscrt: command execution failed :debug:build Error code: CHILDSTATUS 89567 1 :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring" :debug:build invoked from within :debug:build "command_exec -callback portprogress::target_progress_callback build" :debug:build (procedure "portbuild::build_main" line 8) :debug:build invoked from within :debug:build "$procedure $targetname"
% uname -a Darwin [...snip...] 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64 % sw_vers -ProductVersion 13.0 % port version Version: 2.8.0 % pkgutil --pkg-info=com.apple.pkg.{CLTools_Executables,CLTools_Base,DeveloperToolsCLI,DeveloperToolsCLILeo} 2>/dev/null | sed -n 's/^version: //p' 14.1.0.0.1.1666437224 % xcodebuild -version Xcode 14.1 Build version 14B47b
Attachments (1)
Change History (9)
Changed 2 years ago by ianthrive (Ian Timothy)
comment:1 Changed 2 years ago by jmroot (Joshua Root)
Port: | py-awscrt added; py310-awscrt removed |
---|
comment:2 Changed 2 years ago by casr (Chris Rawnsley)
Cc: | casr added |
---|
comment:3 Changed 2 years ago by jre21 (Jacob Emmert-Aronson)
Any chance the ventura tag can be added to this ticket? I ran into this exact build error after upgrading macOS, and the port had previously been working on Monterey.
comment:4 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | ventura added |
---|---|
Summary: | py310-awscrt-0.14.0_0.darwin_22.arm64: build fatal warning: undefined dynamic_lookup may not work with chained fixups → py310-awscrt @0.14.0_0: build fatal warning: -undefined dynamic_lookup may not work with chained fixups |
comment:5 Changed 2 years ago by codebrewer (Mark Scott)
I'm getting the same error on Monterey (specifically 12.6) on an attempt to upgrade py310-awscrt from 0.13.11_0 to 0.14.0_0.
$ uname -a Darwin [snip] 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64 x86_64
Same MacPorts, Xcode and CLI tools versions as in this ticket's description.
comment:6 Changed 2 years ago by dgilman (David Gilman)
It seems like this is a broader issue with the linker in ventura and how Python is built, per https://github.com/python/cpython/issues/97524
FWIW there is a ticket upstream to track this https://github.com/awslabs/aws-crt-python/issues/410
comment:7 Changed 2 years ago by jre21 (Jacob Emmert-Aronson)
dgilman: Can you please update this port to the latest upstream version (currently 0.16.1)?
Per https://github.com/awslabs/aws-crt-python/issues/410#issuecomment-1347441002 and my own testing later in that thread, updating awscrt to 0.15.2 should resolve this build failure.
comment:8 Changed 2 years ago by dgilman (David Gilman)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
install log