Opened 7 months ago
Closed 7 months ago
#69769 closed defect (invalid)
ninja fails to compile on PPC for bad -arch
Reported by: | rmottola (Riccardo) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | powerpc | Cc: | |
Port: | ninja |
Description
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
Change History (5)
comment:1 Changed 7 months ago by rmottola (Riccardo)
comment:2 Changed 7 months ago by kencu (Ken)
as of gcc6 (I believe) one arch argument is accepted.
gcc48 doesn't take it.
comment:3 Changed 7 months ago by rmottola (Riccardo)
Actually this is a dependency, openssl3! sorry for the confusion... let me clean and rebuild with no compiler, then retry ninja as on intel
comment:4 Changed 7 months ago by rmottola (Riccardo)
This bug is invalid if macports run with the compiler it selects, sorry for the noise.
comment:5 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
is -arch=ppc acceptable at all?