[MacPorts] #52079: gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
#52079: gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.99 Keywords: leopard tiger | Port: ---------------------------+-------------------------------- MacPorts base fails to build with gcc-4.0 (Tiger, Leopard) or gcc-4.2 (Snow Leopard): {{{ ===> making all in src/darwintracelib1.0 cc -g -O2 -std=c99 -Wextra -Wall -fPIC -arch i386 -arch ppc -DHAVE_CONFIG_H -I/opt/macports-base/src -I/opt/macports-base/src -I. -I/opt/macports-base/vendor/vendor- destroot//opt/bblocal/libexec/macports/include -MMD -MP -c -o access.o access.c cc -g -O2 -std=c99 -Wextra -Wall -fPIC -arch i386 -arch ppc -DHAVE_CONFIG_H -I/opt/macports-base/src -I/opt/macports-base/src -I. -I/opt/macports-base/vendor/vendor- destroot//opt/bblocal/libexec/macports/include -MMD -MP -c -o close.o close.c gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags make[2]: *** [access.o] Error 1 make[2]: *** Waiting for unfinished jobs.... gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags make[2]: *** [close.o] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1 }}} The problem only occurs when building MacPorts base universal, but MacPorts automatically builds base for the configured set of universal archs. The problem is masked on Snow Leopard due to the use of clang, if available, ever since r111382. But clang is not available on Leopard or Tiger. -- Ticket URL: <https://trac.macports.org/ticket/52079> MacPorts <https://www.macports.org/> Ports system for OS X
#52079: gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.99 Resolution: | Keywords: leopard tiger Port: | ---------------------------+-------------------------------- Changes (by ryandesign@…): * cc: cal@… (added) Comment: The use of the `-M` flag was introduced in r141420. Maybe we can avoid using the `-M` flag, or otherwise we could build separately for each arch, then `lipo`. -- Ticket URL: <https://trac.macports.org/ticket/52079#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#52079: gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.3.99 Resolution: | Keywords: leopard tiger Port: | ---------------------------+-------------------------------- Comment (by ryandesign@…): https://build.macports.org/builders/base-10.5_ppc/builds/0 -- Ticket URL: <https://trac.macports.org/ticket/52079#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts