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

Bruce Mitchener bruce.mitchener at gmail.com
Fri Apr 8 18:48:25 PDT 2011


This is documented in one of the README files, but this should work:

CFLAGS="-arch ppc -arch i386 -arch x86_64" ./configure
--disable-dependency-tracking

Alternatively, cmake works out of the box as a Universal build, IIRC.

 - Bruce

On Sat, Apr 9, 2011 at 5:06 AM, Andrew Pennebaker <
andrew.pennebaker at gmail.com> wrote:

>
> 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.
>
> Cheers,
>
> Andrew Pennebaker
> www.yellosoft.us
>
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/gc/attachments/20110409/31fe12ea/attachment.htm


More information about the Gc mailing list