[MINC-development] multi-architecture builds of minc2 on OSX

Richard Beare richard.beare at gmail.com
Thu Jan 10 17:16:57 EST 2008


Hi,

I suspect this isn't a major problem for most people, but it does
cause slight headaches.

If I attempt to build a combined 32/64 bit library using the following
configure command:
(export CFLAGS="-arch i386 -arch x86_64 -I/opt/local/include"; export
LDFLAGS="-arch i386 -arch x86_64 -L/opt/local/lib";./configure
--enable-minc2)

I get this error:

 gcc -DHAVE_CONFIG_H -I. -I./libsrc -I./volume_io/Include
-I./volume_io/Include -I./progs/Proglib -I./conversion/Acr_nema
-I./libsrc2 -arch i386 -arch x86_64 -I/opt/local/include -MT
libsrc/ParseArgv.lo -MD -MP -MF libsrc/.deps/ParseArgv.Tpo -c
libsrc/ParseArgv.c -o libsrc/ParseArgv.o
gcc-4.0: -E, -S, -save-temps and -M options are not allowed with
multiple -arch flags


looks like some minor configure tweaks should fix things. I've created
the 32 and 64 bit libraries separately and merged them.


More information about the MINC-development mailing list