[MacPorts] #71730: Fails to build Python313 on Sequoia

MacPorts noreply at macports.org
Fri Jan 3 00:42:52 UTC 2025


#71730: Fails to build Python313 on Sequoia
-------------------------+--------------------
  Reporter:  mouse07410  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  python313   |
-------------------------+--------------------
Description changed by mouse07410:

Old description:

> Apple Silicon M2 Max running MacOS Sequoia 15.2. Xcode-16.2.
>
> In short:
> {{{
> :debug:build build phase started at Thu Jan  2 19:30:39 EST 2025
> :notice:build --->  Building python313
> :debug:build Executing org.macports.build (python313)
> :debug:build Environment:
> :debug:build CC_PRINT_OPTIONS='YES'
> :debug:build
> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/.CC_PRINT_OPTIONS'
> :debug:build CPATH='/opt/local/include'
> :debug:build DEVELOPER_DIR='/Applications/Xcode.app/Contents/Developer'
> :debug:build LIBRARY_PATH='/opt/local/lib'
> :debug:build MACOSX_DEPLOYMENT_TARGET='15.0'
> :debug:build
> SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.sdk'
> :debug:build SOURCE_DATE_EPOCH='1733567849'
> :info:build Executing:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1"
> && /usr/bin/make -j4 -w all
> :debug:build system:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1"
> && /usr/bin/make -j4 -w all
> :info:build make: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1'
> :info:build Running code to generate profile data (this can take a
> while):
> :info:build # First, we need to create a clean build with profile
> generation
> :info:build # enabled.
> :info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make
> profile-gen-stamp
> :info:build make[1]: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1'
> :info:build make[1]: `profile-gen-stamp' is up to date.
> :info:build make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1'
> :info:build # Next, run the profile task to generate the profile
> information.
> :info:build
> LLVM_PROFILE_FILE="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1/code-%p.profclangr"
> DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1
> ./python.exe -m test --pgo --timeout=
> :info:build Using random seed: 1733567849
> :info:build 0:00:00 load avg: 3.89 Run 44 tests sequentially in a single
> process
> :info:build 0:00:00 load avg: 3.89 [ 1/44] test_array
> :info:build 0:00:00 load avg: 3.98 [ 2/44] test_base64
> :info:build 0:00:00 load avg: 3.98 [ 3/44] test_binascii
> :info:build 0:00:00 load avg: 3.98 [ 4/44] test_binop
> :info:build 0:00:00 load avg: 3.98 [ 5/44] test_bisect
> :info:build 0:00:00 load avg: 3.98 [ 6/44] test_bytes
> :info:build 0:00:01 load avg: 3.98 [ 7/44] test_bz2
> :info:build 0:00:02 load avg: 3.98 [ 8/44] test_cmath
> :info:build 0:00:02 load avg: 3.98 [ 9/44] test_codecs
> :info:build 0:00:03 load avg: 3.98 [10/44] test_collections
> :info:build 0:00:03 load avg: 3.98 [11/44] test_complex
> :info:build 0:00:03 load avg: 3.98 [12/44] test_dataclasses
> :info:build 0:00:04 load avg: 3.98 [13/44] test_datetime
> :info:build 0:00:06 load avg: 4.14 [14/44] test_decimal
> :info:build -------------------------------------------------- NOTICE
> --------------------------------------------------
> :info:build test_decimal may generate "malloc can't allocate region"
> :info:build warnings on macOS systems. This behavior is known. Do not
> :info:build report a bug unless tests are also failing.
> :info:build See https://github.com/python/cpython/issues/85100
> :info:build
> ------------------------------------------------------------------------------------------------------------
> :info:build 0:00:08 load avg: 4.14 [15/44] test_difflib
> :info:build 0:00:08 load avg: 4.14 [16/44] test_embed
> :info:build 0:00:12 load avg: 4.05 [17/44] test_float
> :info:build 0:00:12 load avg: 4.05 [18/44] test_fstring
> :info:build 0:00:14 load avg: 4.05 [19/44] test_functools
> :info:build 0:00:14 load avg: 4.05 [20/44] test_generators
> :info:build 0:00:14 load avg: 4.05 [21/44] test_hashlib
> :info:build test test_hashlib failed
> :info:build 0:00:14 load avg: 4.05 [22/44] test_heapq -- test_hashlib
> failed (1 error)
> :info:build 0:00:15 load avg: 4.05 [23/44] test_int
> :info:build 0:00:15 load avg: 3.88 [24/44] test_itertools
> :info:build 0:00:16 load avg: 3.88 [25/44] test_json
> :info:build 0:00:18 load avg: 3.88 [26/44] test_long
> :info:build 0:00:19 load avg: 3.88 [27/44] test_lzma
> :info:build 0:00:19 load avg: 3.88 [28/44] test_math
> :info:build 0:00:20 load avg: 3.73 [29/44] test_memoryview
> :info:build 0:00:21 load avg: 3.73 [30/44] test_operator
> :info:build 0:00:21 load avg: 3.73 [31/44] test_ordered_dict
> :info:build 0:00:21 load avg: 3.73 [32/44] test_patma
> :info:build 0:00:21 load avg: 3.73 [33/44] test_pickle
> :info:build 0:00:23 load avg: 3.73 [34/44] test_pprint
> :info:build 0:00:23 load avg: 3.73 [35/44] test_re
> :info:build 0:00:23 load avg: 3.73 [36/44] test_set
> :info:build 0:00:25 load avg: 3.67 [37/44] test_sqlite3
> :info:build 0:00:25 load avg: 3.67 [38/44] test_statistics
> :info:build 0:00:27 load avg: 3.67 [39/44] test_str
> :info:build 0:00:28 load avg: 3.67 [40/44] test_struct
> :info:build 0:00:28 load avg: 3.67 [41/44] test_tabnanny
> :info:build 0:00:29 load avg: 3.67 [42/44] test_time
> :info:build 0:00:31 load avg: 3.78 [43/44] test_xml_etree
> :info:build 0:00:31 load avg: 3.78 [44/44] test_xml_etree_c
> :info:build Total duration: 31.8 sec
> :info:build Total tests: run=9,394 skipped=198
> :info:build Total test files: run=44/44 failed=1
> :info:build Result: FAILURE
> :info:build make: *** [profile-run-stamp] Error 2
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1'
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1"
> && /usr/bin/make -j4 -w all
> :info:build Exit code: 2
> :error:build Failed to build python313: command execution failed
> :debug:build Error code: CHILDSTATUS 32425 2
> :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_macports_release_tarballs_ports_lang_python313/python313/main.log
> for details.
> }}}
>
> Full {{{main.log}}} is attached.
>
> Also, I'm rather surprised it doesn't pull the build from a buildbot - or
> are there no buildbots for Apple Silicon?

New description:

 Apple Silicon M2 Max running MacOS Sequoia 15.2. Xcode-16.2.

 In short:
 {{{
 :debug:build build phase started at Thu Jan  2 19:30:39 EST 2025
 :notice:build --->  Building python313
 :debug:build Executing org.macports.build (python313)
 :debug:build Environment:
 :debug:build CC_PRINT_OPTIONS='YES'
 :debug:build
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/.CC_PRINT_OPTIONS'
 :debug:build CPATH='/opt/local/include'
 :debug:build DEVELOPER_DIR='/Applications/Xcode.app/Contents/Developer'
 :debug:build LIBRARY_PATH='/opt/local/lib'
 :debug:build MACOSX_DEPLOYMENT_TARGET='15.0'
 :debug:build
 SDKROOT='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.sdk'
 :debug:build SOURCE_DATE_EPOCH='1733567849'
 :info:build Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1"
 && /usr/bin/make -j4 -w all
 :debug:build system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1"
 && /usr/bin/make -j4 -w all
 :info:build make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1'
 :info:build Running code to generate profile data (this can take a while):
 :info:build # First, we need to create a clean build with profile
 generation
 :info:build # enabled.
 :info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make
 profile-gen-stamp
 :info:build make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1'
 :info:build make[1]: `profile-gen-stamp' is up to date.
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1'
 :info:build # Next, run the profile task to generate the profile
 information.
 :info:build
 LLVM_PROFILE_FILE="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1/code-%p.profclangr"
 DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1
 ./python.exe -m test --pgo --timeout=
 :info:build Using random seed: 1733567849
 :info:build 0:00:00 load avg: 3.89 Run 44 tests sequentially in a single
 process
 :info:build 0:00:00 load avg: 3.89 [ 1/44] test_array
 :info:build 0:00:00 load avg: 3.98 [ 2/44] test_base64
 :info:build 0:00:00 load avg: 3.98 [ 3/44] test_binascii
 :info:build 0:00:00 load avg: 3.98 [ 4/44] test_binop
 :info:build 0:00:00 load avg: 3.98 [ 5/44] test_bisect
 :info:build 0:00:00 load avg: 3.98 [ 6/44] test_bytes
 :info:build 0:00:01 load avg: 3.98 [ 7/44] test_bz2
 :info:build 0:00:02 load avg: 3.98 [ 8/44] test_cmath
 :info:build 0:00:02 load avg: 3.98 [ 9/44] test_codecs
 :info:build 0:00:03 load avg: 3.98 [10/44] test_collections
 :info:build 0:00:03 load avg: 3.98 [11/44] test_complex
 :info:build 0:00:03 load avg: 3.98 [12/44] test_dataclasses
 :info:build 0:00:04 load avg: 3.98 [13/44] test_datetime
 :info:build 0:00:06 load avg: 4.14 [14/44] test_decimal
 :info:build -------------------------------------------------- NOTICE
 --------------------------------------------------
 :info:build test_decimal may generate "malloc can't allocate region"
 :info:build warnings on macOS systems. This behavior is known. Do not
 :info:build report a bug unless tests are also failing.
 :info:build See https://github.com/python/cpython/issues/85100
 :info:build
 ------------------------------------------------------------------------------------------------------------
 :info:build 0:00:08 load avg: 4.14 [15/44] test_difflib
 :info:build 0:00:08 load avg: 4.14 [16/44] test_embed
 :info:build 0:00:12 load avg: 4.05 [17/44] test_float
 :info:build 0:00:12 load avg: 4.05 [18/44] test_fstring
 :info:build 0:00:14 load avg: 4.05 [19/44] test_functools
 :info:build 0:00:14 load avg: 4.05 [20/44] test_generators
 :info:build 0:00:14 load avg: 4.05 [21/44] test_hashlib
 :info:build test test_hashlib failed
 :info:build 0:00:14 load avg: 4.05 [22/44] test_heapq -- test_hashlib
 failed (1 error)
 :info:build 0:00:15 load avg: 4.05 [23/44] test_int
 :info:build 0:00:15 load avg: 3.88 [24/44] test_itertools
 :info:build 0:00:16 load avg: 3.88 [25/44] test_json
 :info:build 0:00:18 load avg: 3.88 [26/44] test_long
 :info:build 0:00:19 load avg: 3.88 [27/44] test_lzma
 :info:build 0:00:19 load avg: 3.88 [28/44] test_math
 :info:build 0:00:20 load avg: 3.73 [29/44] test_memoryview
 :info:build 0:00:21 load avg: 3.73 [30/44] test_operator
 :info:build 0:00:21 load avg: 3.73 [31/44] test_ordered_dict
 :info:build 0:00:21 load avg: 3.73 [32/44] test_patma
 :info:build 0:00:21 load avg: 3.73 [33/44] test_pickle
 :info:build 0:00:23 load avg: 3.73 [34/44] test_pprint
 :info:build 0:00:23 load avg: 3.73 [35/44] test_re
 :info:build 0:00:23 load avg: 3.73 [36/44] test_set
 :info:build 0:00:25 load avg: 3.67 [37/44] test_sqlite3
 :info:build 0:00:25 load avg: 3.67 [38/44] test_statistics
 :info:build 0:00:27 load avg: 3.67 [39/44] test_str
 :info:build 0:00:28 load avg: 3.67 [40/44] test_struct
 :info:build 0:00:28 load avg: 3.67 [41/44] test_tabnanny
 :info:build 0:00:29 load avg: 3.67 [42/44] test_time
 :info:build 0:00:31 load avg: 3.78 [43/44] test_xml_etree
 :info:build 0:00:31 load avg: 3.78 [44/44] test_xml_etree_c
 :info:build Total duration: 31.8 sec
 :info:build Total tests: run=9,394 skipped=198
 :info:build Total test files: run=44/44 failed=1
 :info:build Result: FAILURE
 :info:build make: *** [profile-run-stamp] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python313/python313/work/Python-3.13.1"
 && /usr/bin/make -j4 -w all
 :info:build Exit code: 2
 :error:build Failed to build python313: command execution failed
 :debug:build Error code: CHILDSTATUS 32425 2
 :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_macports_release_tarballs_ports_lang_python313/python313/main.log
 for details.
 }}}

 Full {{{main.log}}} is attached.

 Also, I'm rather surprised it doesn't pull the build from a buildbot - or
 are there no buildbots for Sequoia on Apple Silicon?

--

-- 
Ticket URL: <https://trac.macports.org/ticket/71730#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list