[MacPorts] #65241: muniversal 1.1 error: gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
MacPorts
noreply at macports.org
Sat May 28 21:53:25 UTC 2022
#65241: muniversal 1.1 error: gcc-4.2: -E, -S, -save-temps and -M options are not
allowed with multiple -arch flags
---------------------------+---------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.7.2
Resolution: | Keywords: leopard, muniversal
Port: |
---------------------------+---------------------------------
Comment (by barracuda156):
Then, running the build with `muniversal 1.1` and `gcc11` shows that PG
applies `-arch ppc` and `-arch ppc64` together, which obviously fails
(only Apple `gcc` allowed these together). Example:
{{{
[ 36%] Building C object
src/lib/openjp2/CMakeFiles/openjp2.dir/openjpeg.c.o
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openjpeg/openjpeg/work
/build-ppc/src/lib/openjp2 && /opt/local/bin/gcc-mp-11 -DMUTEX_pthread
-Dopenjp2_EXPORTS
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openjpeg/openjpeg/work
/build-ppc/src/lib/openjp2 -pipe -Os -arch ppc -DNDEBUG -arch ppc -arch
ppc64 -mmacosx-version-min=10.5 -fPIC -ffast-math -Wall -Wextra
-Wconversion -Wunused-parameter -Wdeclaration-after-statement -Werror
=declaration-after-statement -MD -MT
src/lib/openjp2/CMakeFiles/openjp2.dir/openjpeg.c.o -MF
CMakeFiles/openjp2.dir/openjpeg.c.o.d -o
CMakeFiles/openjp2.dir/openjpeg.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_openjpeg/openjpeg/work/openjpeg-2.5.0-ppc/src/lib/openjp2/openjpeg.c
gcc-mp-11: warning: ppc64 conflicts with ppc (arch flags ignored)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65241#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list