[MacPorts] #69769: ninja fails to compile on PPC for bad -arch

MacPorts noreply at macports.org
Wed Apr 17 22:54:30 UTC 2024


#69769: ninja fails to compile on PPC for bad -arch
----------------------+--------------------
 Reporter:  rmottola  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:  powerpc   |       Port:  ninja
----------------------+--------------------
 On 10.5 PPC when forcing compiler gcc4.8 (default compiler is not good
 enough) compilation fails with:


 {{{
 /opt/local/bin/gcc-mp-4.8  -I. -Iinclude -Iapps/include  -fPIC -fno-common
 -arch ppc -std=gnu9x -Wa,-force_cpusubtype_ALL -pipe -Os -arch ppc
 -DB_ENDIAN -DOPENSSL_PIC
 -DOPENSSLDIR="\"/opt/local/libexec/openssl3/etc/openssl\""
 -DENGINESDIR="\"/opt/local/libexec/openssl3/lib/engines-3\""
 -DMODULESDIR="\"/opt/local/libexec/openssl3/lib/ossl-modules\""
 -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DZLIB -DNDEBUG
 -I/opt/local/include  -c -o apps/lib/libapps-lib-app_libctx.o
 apps/lib/app_libctx.c
 gcc-mp-4.8: error: unrecognized command line option '-arch'
 gcc-mp-4.8: error: unrecognized command line option '-arch'
 make[1]: *** [apps/lib/libapps-lib-app_libctx.o] Error 1
 }}}

 I think a '=' is missing

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


More information about the macports-tickets mailing list