multiple arch flags won't work with -E
ryandesign at macports.org
Wed Feb 2 23:44:04 PST 2011
On Feb 2, 2011, at 19:49, James Gregurich wrote:
> I"m not sure what to do about this one. The expat port does not use muniversal to do a universal build. The configure script fails when it attempts to invoke the preprocessor. Is the correct answer to switch the port to muniversal or is there another flaw for which I should be looking? I suppose this is happening because I modified the system to put the arch flags in CPPFLAGS. However, if you don't supply an arch flag of some kind when building ppc on i386, it seems that should be incorrect behavior even if it happens to work. It definitely doesn't work without the -arch flag when building armv6 on x86_64. Can I get some guidance on what this system SHOULD be doing?
> configure:4028: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 -E -traditional-cpp -I/iopt/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -arch armv6 -arch armv7 conftest.c
> llvm-gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
The error message is correct...
Per the previous thread, I'm not aware of any existing problems with the expat port on any Mac OS X architectures, so I'm not sure why you're seeing a lack of -arch flags now, though I have not attempted to evaluate the MacPorts base changes you've made.
More information about the macports-dev