Opened 2 months ago

Last modified 2 months ago

#70370 new defect

py312-bcrypt fails to build on mavericks

Reported by: tehcog (tehcog) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: stromnov (Andrey Stromnov)
Port: py312-bcrypt

Description

Please see attached main.log

:info:build    Compiling parking_lot v0.12.1
:info:build      Running `/opt/local/bin/rustc --crate-name parking_lot --edition=2018 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/.home/.cargo/macports/parking_lot-0.12.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C overflow-checks=on --cfg 'feature="default"' -C metadata=c973291b5646a382 -C extra-filename=-c973291b5646a382 --out-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/x86_64-apple-darwin/release/deps --target x86_64-apple-darwin -C linker=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/compwrap/ld/opt/local/bin/clang-mp-16 -L dependency=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/x86_64-apple-darwin/release/deps -L dependency=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/deps --extern lock_api=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/x86_64-apple-darwin/release/deps/liblock_api-36421925c500ca95.rmeta --extern parking_lot_core=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/x86_64-apple-darwin/release/deps/libparking_lot_core-4007ff0275124b2c.rmeta --cap-lints allow --remap-path-prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2= --remap-path-prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/.home/.cargo=`
:info:build error: linking with `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/compwrap/ld/opt/local/bin/clang-mp-16` failed: exit status: 1
:info:build   |
:info:build   = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/opt/local/lib/rustlib/x86_64-apple-darwin/bin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin" VSLANG="1033" ZERO_AR_DATE="1" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/compwrap/ld/opt/local/bin/clang-mp-16" "-arch" "x86_64" "-m64" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/.tmp/rustc3koY9n/symbols.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.build_script_build.8ac14ed76f4f03ba-cgu.0.rcgu.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.build_script_build.8ac14ed76f4f03ba-cgu.1.rcgu.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.build_script_build.8ac14ed76f4f03ba-cgu.2.rcgu.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.build_script_build.8ac14ed76f4f03ba-cgu.3.rcgu.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.build_script_build.8ac14ed76f4f03ba-cgu.4.rcgu.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.build_script_build.8ac14ed76f4f03ba-cgu.5.rcgu.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.build_script_build.8ac14ed76f4f03ba-cgu.6.rcgu.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.build_script_build.8ac14ed76f4f03ba-cgu.7.rcgu.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.build_script_build.8ac14ed76f4f03ba-cgu.8.rcgu.o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76.4f7v9ebftyzkf2rf.rcgu.o" "-L" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/deps" "-L" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/deps/libtarget_lexicon-0dc66199add4971e.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-dea1dec033daebae.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-8a16a9800e8eb5d5.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libobject-ed2fae08af38af63.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-ad30dbe5543890f1.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-a92202059fb2c05a.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libgimli-c6fd99f6da5d2cd7.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-3878c0c16b2e24d6.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-83f760b4f41c1a90.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-c900f9d3f7ee7498.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-4d9ba7b292248885.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libminiz_oxide-d654275f0274bd58.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libadler-f7ab866b8e98582f.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libunwind-5c036fcd0daf8ed0.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-022e73c1e541898f.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-643513c7a6d509cd.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-8c0bcc0cfbf7864b.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-627028f40d3c37da.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-47d045a852ea8ead.rlib" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-9cb18af985855d85.rlib" "-lSystem" "-lc" "-lm" "-L" "/opt/local/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76/build_script_build-0d7ce08202004f76" "-Wl,-dead_strip" "-nodefaultlibs"
:info:build   = note: Undefined symbols for architecture x86_64:
:info:build             "_getentropy", referenced from:
:info:build                 std::sys::pal::unix::rand::imp::fill_bytes::h39617d8376b4a809 in libstd-dea1dec033daebae.rlib(std-dea1dec033daebae.std.4e58b1c7d3f5f121-cgu.14.rcgu.o)
:info:build           ld: symbol(s) not found for architecture x86_64
:info:build           clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build           
:info:build error: could not compile `pyo3-build-config` (build script) due to 1 previous error
:info:build Caused by:
:info:build   process didn't exit successfully: `/opt/local/bin/rustc --crate-name build_script_build --edition=2021 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/.home/.cargo/macports/pyo3-build-config-0.20.0/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on --cfg 'feature="abi3"' --cfg 'feature="default"' --cfg 'feature="extension-module"' --cfg 'feature="resolve-config"' -C metadata=0d7ce08202004f76 -C extra-filename=-0d7ce08202004f76 --out-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/build/pyo3-build-config-0d7ce08202004f76 -C linker=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/compwrap/ld/opt/local/bin/clang-mp-16 -L dependency=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/deps --extern target_lexicon=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2/src/_bcrypt/target/release/deps/libtarget_lexicon-0dc66199add4971e.rlib --cap-lints allow` (exit status: 1)
:info:build warning: build failed, waiting for other jobs to finish...
:info:build     =============================DEBUG ASSISTANCE=============================
:info:build     If you are seeing a compilation error please try the following steps to
:info:build     successfully install bcrypt:
:info:build     1) Upgrade to the latest pip and try again. This will fix errors for most
:info:build        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
:info:build     2) Ensure you have a recent Rust toolchain installed. bcrypt requires
:info:build        rustc >= 1.64.0. (1.63 may be used by setting the BCRYPT_ALLOW_RUST_163
:info:build        environment variable)
:info:build     
:info:build     Python: 3.12.4
:info:build     platform: macOS-10.9.5-x86_64-i386-64bit
:info:build     pip: 24.1.1
:info:build     setuptools: 70.2.0
:info:build     setuptools_rust: 1.9.0
:info:build     rustc: 1.78.0 (9b00956e5 2024-04-29) (built from a source tarball)
:info:build     =============================DEBUG ASSISTANCE=============================
:info:build     
:info:build error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/_bcrypt/Cargo.toml --target x86_64-apple-darwin --release -v --features pyo3/extension-module --crate-type cdylib -- -C 'link-args=-undefined dynamic_lookup -Wl,-install_name,@rpath/_bcrypt.cpython-312-darwin.so'` failed with code 101
:info:build ERROR Backend subprocess exited when trying to invoke build_wheel
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work/bcrypt-4.1.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/work 
:info:build Exit code: 1
:error:build Failed to build py312-bcrypt: command execution failed
:debug:build Error code: CHILDSTATUS 5447 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 10)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-bcrypt/py312-bcrypt/main.log for details.

Attachments (1)

py312-bcrypt_main.log (115.4 KB) - added by tehcog (tehcog) 2 months ago.
main.log

Download all attachments as: .zip

Change History (3)

Changed 2 months ago by tehcog (tehcog)

Attachment: py312-bcrypt_main.log added

main.log

comment:1 Changed 2 months ago by jmroot (Joshua Root)

getentropy was added in 10.12.

comment:2 in reply to:  1 Changed 2 months ago by tehcog (tehcog)

Replying to jmroot:

getentropy was added in 10.12.

Is there any way we can get a version of deluge (for 10.9) - that will build with the recently upgraded versions of the following py311 components:

py311-bcrypt
py311-cryptography
py311-fido2
py311-service_identity

provided that they are rquired for the deluge build?

We finally got rust working, and When I upgraded these these crypto-related components, the previous version of deluge (2.0.5_1) broke.

Thanks

Note: See TracTickets for help on using tickets.