[MacPorts] #65495: Python 3.10 is now broken for Rosetta: Undefined symbols: "_pthread_threadid_np"

MacPorts noreply at macports.org
Sat Jul 16 14:22:20 UTC 2022


#65495: Python 3.10 is now broken for Rosetta: Undefined symbols:
"_pthread_threadid_np"
-------------------------------------------+-----------------------
 Reporter:  barracuda156                   |      Owner:  (none)
     Type:  defect                         |     Status:  new
 Priority:  Normal                         |  Milestone:
Component:  ports                          |    Version:  2.7.2
 Keywords:  powerpc, rosetta, snowleopard  |       Port:  python310
-------------------------------------------+-----------------------
 I believe it was working before, but now it is broken:

 {{{
 /usr/bin/ranlib: file: libpython3.10.a(dynamic_annotations.o) has no
 symbols
 /usr/bin/ranlib: file: libpython3.10.a(pymath.o) has no symbols
 /usr/bin/install -c -d -m 755 Python.framework/Versions/3.10
 /usr/bin/gcc-4.2 -o Python.framework/Versions/3.10/Python
 -L/opt/bootstrap/lib -Wl,-headerpad_max_install_names -arch ppc
 -dynamiclib \
                 -all_load libpython3.10.a -Wl,-single_module \
                 -install_name
 /opt/bootstrap/Library/Frameworks/Python.framework/Versions/3.10/Python \
                 -compatibility_version 3.10 \
                 -current_version 3.10 \
                 -framework CoreFoundation -lintl -ldl   -framework
 CoreFoundation;
 ld: warning: can't add line info to anonymous symbol anon-func-0x0 from
 /usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o)
 ld: warning: can't add line info to anonymous symbol anon-func-0x0 from
 /usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o)
 ld: warning: can't add line info to anonymous symbol anon-func-0x0 from
 /usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o)
 ld: warning: can't add line info to anonymous symbol anon-func-0x0 from
 /usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o)
 ld: warning: can't add line info to anonymous symbol anon-func-0x0 from
 /usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o)
 ld: warning: can't add line info to anonymous symbol anon-func-0x0 from
 /usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o)
 ld: warning: can't add line info to anonymous symbol anon-func-0x0 from
 /usr/lib/gcc/powerpc-apple-darwin10/4.2.1/libgcc.a(darwin-tramp.o)
 Undefined symbols:
   "_pthread_threadid_np", referenced from:
       _PyThread_get_thread_native_id in libpython3.10.a(thread.o)
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make: *** [Python.framework/Versions/3.10/Python] Error 1
 make: Leaving directory
 `/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.5'
 Command failed:  cd
 "/opt/bootstrap/var/macports/build/_opt_bootstrap_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.5"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65495>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list