Opened 3 years ago

Last modified 3 years ago

#64785 new defect

jasper fails to build for ppc+ppc64: gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: powerpc, leopard, ppc64 Cc:
Port: jasper

Description

cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/build/src/libjasper && /usr/bin/gcc-4.2 -DJAS_BUILDING_DLL -D_GNU_SOURCE -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/build/src/libjasper/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-2.0.33/src/libjasper/include -I//System/Library/Frameworks/GLUT.framework/Headers -F//System/Library/Frameworks -I/opt/local/include -pipe -Os -Wall -pedantic -W -Wformat -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wredundant-decls -DNDEBUG -arch ppc -arch ppc64 -mmacosx-version-min=10.5 -fPIC -std=gnu99 -MD -MT src/libjasper/CMakeFiles/libjasper.dir/base/jas_cm.c.o -MF CMakeFiles/libjasper.dir/base/jas_cm.c.o.d -o CMakeFiles/libjasper.dir/base/jas_cm.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/jasper-2.0.33/src/libjasper/base/jas_cm.c
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[2]: *** [src/libjasper/CMakeFiles/libjasper.dir/base/jas_getopt.c.o] Error 1
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[2]: *** Waiting for unfinished jobs....
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[2]: *** [src/libjasper/CMakeFiles/libjasper.dir/base/jas_debug.c.o] Error 1
make[2]: *** [src/libjasper/CMakeFiles/libjasper.dir/base/jas_icc.c.o] Error 1
make[2]: *** [src/libjasper/CMakeFiles/libjasper.dir/base/jas_cm.c.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/build'
make[1]: *** [src/libjasper/CMakeFiles/libjasper.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_jasper/jasper/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
Exit code: 2
Error: Failed to build jasper: command execution failed

Attachments (1)

main.log (27.4 KB) - added by barracuda156 3 years ago.

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 3 years ago by kencu (Ken)

so for these, you either need to patch out all those options, or use the muniversal portgroup.

either works, both are easy to do usually..

the options gcc is complaining about are not needed for macports anyway. they are used for dependency tracking during repeated buils.

Version 0, edited 3 years ago by kencu (Ken) (next)
Note: See TracTickets for help on using tickets.