[Gc] Fwd: Boem GC fails to compile on Mac OS X

Andrew Pennebaker andrew.pennebaker at gmail.com
Fri Apr 8 15:06:11 PDT 2011

I'd like to be able to use libgc in x86 and x86_64 programs, but I can't get
libgc to compile universally.

$ cvs -d:pserver:anonymous at bdwgc.cvs.sourceforge.net:/cvsroot/bdwgc login
$ cvs -z3 -d:pserver:anonymous at bdwgc.cvs.sourceforge.net:/cvsroot/bdwgc co
-P bdwgc
$ cd bdwgc/bdwgc

$ export CFLAGS="-arch i386 -arch x86_64"

$ ./configure
$ make
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src
-fexceptions -arch i386 -arch x86_64 -MT allchblk.lo -MD -MP -MF
.deps/allchblk.Tpo -c -o allchblk.lo allchblk.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I./include -I./include
-I./libatomic_ops/src -I./libatomic_ops/src -fexceptions -arch i386 -arch
x86_64 -MT allchblk.lo -MD -MP -MF .deps/allchblk.Tpo -c allchblk.c
-fno-common -DPIC -o .libs/allchblk.o
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple
-arch flags

make[1]: *** [allchblk.lo] Error 1
make: *** [all-recursive] Error 1

Oddly, MacPorts' boehmgc-devel compiles just fine.


Andrew Pennebaker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://napali.hpl.hp.com/pipermail/gc/attachments/20110408/60e4504b/attachment.htm

More information about the Gc mailing list