py-pendulum 3.2.0 与当前工具链之间存在构建错误
- I am on the latest Pendulum version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- OS version and name: macOS 15.8 24H23 arm64 Xcode 26.3 17C529 Note: this issue was first encountered on macOS 28.0/Xcode 28.0 when reinstalling MacPorts packages. I can also reproduce on an Intel Mac running macOS 13.7.8 and Xcode 15.1.
- Pendulum version: 3.2.0
Issue
Since the release of 3.2.0, major portion of the tool chain have been updated. I get the following build error:
:info:build Compiling _pendulum v3.2.0 (/opt/local/var/macports/build/py314-pendulum-027eaab9/work/pendulum-3.2.0/Rust) :info:build error: linking with
ccfailed: exit status: 1 :info:build | :info:build = note: "cc" "-Wl,-exported_symbols_list" "-Wl,/var/macports/build/py314-pendulum-027eaab9/work/pendulum-3.2.0/Rust/target/release/deps/rustcsnFAeY/list" "<1 object files omitted>" "/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-*.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-arch" "arm64" "-mmacosx-version-min=15.0.0" "-o" "/var/macports/build/py314-pendulum-027eaab9/work/pendulum-3.2.0/Rust/target/release/deps/lib_pendulum.dylib" "-Wl,-dead_strip" "-dynamiclib" "-nodefaultlibs" "-Wl,-install_name,@rpath/pendulum._pendulum.cpython-314-darwin.so" :info:build = note: some arguments are omitted. use--verboseto show all linker arguments :info:build = note: Undefined symbols for architecture arm64: :info:build "_PyBaseObject_Type", referenced from: :info:build _RINvNtNtCsgpHvFgTEoCR_4pyo37pyclass18create_type_object18create_type_objectNtNtNtNtCs3gOu5SnkXO9_9__pendulum6python5types12precise_diff11PreciseDiffEB1j in _pendulum._pendulum.261a06dd2ee27863-cgu.0.rcgu.o :info:build _RINvNtNtCsgpHvFgTEoCR_4pyo37pyclass18create_type_object18create_type_objectNtNtNtNtCs3gOu5SnkXO9_9__pendulum6python5types8duration8DurationEB1j in _pendulum._pendulum.261a06dd2ee27863-cgu.0.rcgu.o :info:build __RNvNtNtCs3gOu5SnkXO9_9__pendulum6python7helpers25___pyfunction_precise_diff in _pendulum._pendulum.261a06dd2ee27863-cgu.0.rcgu.o :info:build …
内容来源: python-pendulum/pendulum