[MacPorts] #50821: python24, python25, python26, python27, python31, python32, python33, python34, python35: Fix building for strange architecture combinations

MacPorts noreply at macports.org
Tue Jan 4 12:42:23 UTC 2022


#50821: python24, python25, python26, python27, python31, python32, python33,
python34, python35: Fix building for strange architecture combinations
-------------------------------------------------+-------------------------
  Reporter:  land.apfel@…                        |      Owner:
                                                 |  jyrkiwahlstedt
      Type:  defect                              |     Status:  new
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:  2.3.4
Resolution:                                      |   Keywords:
      Port:  python24, python25, python26,       |
  python27, python31, python32, python33,        |
  python34, python35                             |
-------------------------------------------------+-------------------------

Comment (by barracuda156):

 Replying to [comment:8 kencu]:
 > the toolchain sometimes does not see ppc and ppc7400 as the same arch.
 >
 > I needed to fix that in legacysupport a few years ago.
 >
 > #60147

 I tried to use portgroup legacysupport 1.0 now for Python310 (and
 discarding my patches), however I got these errors:


 {{{
 /usr/bin/gcc-4.2 -c -fno-strict-aliasing -Wsign-compare -fno-common
 -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch ppc -arch ppc64 -pipe -Os
 -I/opt/local/include/LegacySupport -arch ppc -arch ppc64   -std=c99
 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror
 =implicit-function-declaration -fvisibility=hidden  -I./Include/internal
 -I. -I./Include -I/opt/local/include -I/opt/local/include/LegacySupport
 -DPy_BUILD_CORE -o Python/structmember.o Python/structmember.c
 In file included from /opt/local/include/LegacySupport/sys/random.h:25,
                  from Python/bootstrap_hash.c:17:
 /usr/include/sys/random.h:37: error: expected declaration specifiers or
 ‘...’ before ‘u_int’
 /usr/bin/gcc-4.2 -c -fno-strict-aliasing -Wsign-compare -fno-common
 -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch ppc -arch ppc64 -pipe -Os
 -I/opt/local/include/LegacySupport -arch ppc -arch ppc64   -std=c99
 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror
 =implicit-function-declaration -fvisibility=hidden  -I./Include/internal
 -I. -I./Include -I/opt/local/include -I/opt/local/include/LegacySupport
 -DPy_BUILD_CORE -o Python/symtable.o Python/symtable.c
 In file included from /opt/local/include/LegacySupport/sys/random.h:25,
                  from Python/bootstrap_hash.c:17:
 /usr/include/sys/random.h:37: error: expected declaration specifiers or
 ‘...’ before ‘u_int’
 /usr/bin/gcc-4.2 -c -fno-strict-aliasing -Wsign-compare -fno-common
 -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch ppc -arch ppc64 -pipe -Os
 -I/opt/local/include/LegacySupport -arch ppc -arch ppc64   -std=c99
 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror
 =implicit-function-declaration -fvisibility=hidden  -I./Include/internal
 -I. -I./Include -I/opt/local/include -I/opt/local/include/LegacySupport
 -DPy_BUILD_CORE \
                 -DABIFLAGS='""' \
                 -DMULTIARCH=\"darwin\" \
                 -o Python/sysmodule.o ./Python/sysmodule.c
 fatal error: lipo: can't open input file:
 /opt/local/var/macports/build/_opt_PPCLeopardPorts_lang_python310/python310/work/.tmp/ccimd9EN.out
 (No such file or directory)
 make: *** [Python/bootstrap_hash.o] Error 1
 make: *** Waiting for unfinished jobs....
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCLeopardPorts_lang_python310/python310/work/Python-3.10.1'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_PPCLeopardPorts_lang_python310/python310/work/Python-3.10.1"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build python310: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_PPCLeopardPorts_lang_python310/python310/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there
 is a bug.
 Error: Processing of port python310 failed

 }}}

 This is on 10.5.8 PPC trying to build functional python3* as universal.

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


More information about the macports-tickets mailing list