[MacPorts] #64229: python27 fails to build for ppc64 on 10.5.8

MacPorts noreply at macports.org
Thu Dec 16 11:39:06 UTC 2021


#64229: python27 fails to build for ppc64 on 10.5.8
-------------------------------------+----------------------
 Reporter:  barracuda156             |      Owner:  (none)
     Type:  defect                   |     Status:  new
 Priority:  Normal                   |  Milestone:
Component:  ports                    |    Version:  2.7.1
 Keywords:  PowerPC, Leopard, ppc64  |       Port:  python27
-------------------------------------+----------------------
 {{{
 ranlib libpython2.7.a
 ranlib: archive member: libpython2.7.a(getbuildinfo.o) fat object file's
 offset in archive not a multiple of 8) (must be since member is a 64-bit
 object file)
 ranlib: for architecture: ppc64 file: libpython2.7.a(pymath.o) has no
 symbols
 ranlib: for architecture: ppc file: libpython2.7.a(pymath.o) has no
 symbols
 /usr/bin/install -c -d -m 755 Python.framework/Versions/2.7
 /usr/bin/gcc-4.2 -o Python.framework/Versions/2.7/Python -arch ppc64 -arch
 ppc -L/opt/local/libexec/openssl11/lib -L/opt/local/lib
 -Wl,-headerpad_max_install_names -L/opt/local/lib/db48 -arch ppc64 -arch
 ppc  -dynamiclib \
                 -all_load libpython2.7.a -Wl,-single_module \
                 -install_name
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python \
                 -compatibility_version 2.7 \
                 -current_version 2.7;
 /usr/bin/install -c -d -m 755  \
                 Python.framework/Versions/2.7/Resources/English.lproj
 /usr/bin/install -c -m 644 Mac/Resources/framework/Info.plist \
                 Python.framework/Versions/2.7/Resources/Info.plist
 ln -fsn 2.7 Python.framework/Versions/Current
 ln -fsn Versions/Current/Python Python.framework/Python
 ln -fsn Versions/Current/Headers Python.framework/Headers
 ln -fsn Versions/Current/Resources Python.framework/Resources
 /usr/bin/gcc-4.2 -arch ppc64 -arch ppc -L/opt/local/libexec/openssl11/lib
 -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db48
 -arch ppc64 -arch ppc -u _PyMac_Error Python.framework/Versions/2.7/Python
 -o python.exe \
                         Modules/python.o \
                          -lintl -ldl  -framework CoreFoundation
 DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18
 ./python.exe -E -S -m sysconfig --generate-posix-vars ;\
         if test $? -ne 0 ; then \
                 echo "generate-posix-vars failed" ; \
                 rm -f ./pybuilddir.txt ; \
                 exit 1 ; \
         fi
 Traceback (most recent call last):
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18/Lib/runpy.py",
 line 174, in _run_module_as_main
     "__main__", fname, loader, pkg_name)
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18/Lib/runpy.py",
 line 72, in _run_code
     exec code in run_globals
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18/Lib/sysconfig.py",
 line 645, in <module>
     _main()
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18/Lib/sysconfig.py",
 line 633, in _main
     _generate_posix_vars()
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18/Lib/sysconfig.py",
 line 339, in _generate_posix_vars
     pybuilddir = 'build/lib.%s-%s' % (get_platform(), sys.version[:3])
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18/Lib/sysconfig.py",
 line 614, in get_platform
     osname, release, machine)
   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18/Lib/_osx_support.py",
 line 498, in get_platform_osx
     "Don't know machine value for archs=%r" % (archs,))
 ValueError: Don't know machine value for archs=('ppc', 'ppc64')
 generate-posix-vars failed
 make: *** [pybuilddir.txt] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/work/Python-2.7.18"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build python27: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there
 is a bug.
 36-138:~ arjuna$ port installed python27
 The following ports are currently installed:
   python27 @2.7.18_5 (active)

 }}}

 32-bit version builds and installs normally, 64-bit one fail. (Due to that
 I cannot build Cmake in 64-bit.)

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


More information about the macports-tickets mailing list