Re: [Gc] Re: Failure to build on OS X Lion

Ivan Maidanski ivmai at mail.ru
Sun Aug 21 23:51:24 PDT 2011


Hi Juan,

I'm a bit surprised that you that I've spent your time finding out the workaround instead of first try the latest BDWGC snapshot. Thanks to Jeremy this is already solved (I had an attempt to fix this too but mine patch was only a half of the required solution). See the excerpt  from "git log x86_64.h":

commit d923334022938240c43c167d66549b1211aed2ba
Author: ivmai <ivmai>
Date:   Mon Jun 27 06:48:12 2011 +0000

    2011-06-27  Ivan Maidanski <ivmai at mail.ru> (really Jeremy Huddleston)

        * src/atomic_ops/sysdeps/gcc/x86.h (AO_test_and_set_full):
        Explicitly cast 0xff to unsigned char (otherwise LLVM v2.7 GAS
        reports an error); don't recognize AO_XCHGB_RET_WORD.
        * src/atomic_ops/sysdeps/gcc/x86_64.h (AO_test_and_set_full):
        Ditto.

Regards.

22 08 2011, 00:48 Juan Jose Garcia-Ripoll <juanjose.garciaripoll at googlemail.com>:
> I attach one fix for this error. We have been using this patch with gc-7.1
> in ECL for some time.
> 
> Juanjo
> 
> On Sun, Aug 21, 2011 at 10:01 PM, Juan Jose Garcia-Ripoll <
> juanjose.garciaripoll at googlemail.com> wrote:
> 
> > ../gc-7.2alpha6/libatomic_ops/src/atomic_ops/sysdeps/gcc/x86_64.h:111:
> > error: unsupported inline asm: input constraint with a matching output
> > constraint of incompatible type!
> >
> > This is with an alpha release, I know, but the stable release is also
> > having the same problem:
> >
> > libatomic_ops/src/atomic_ops/sysdeps/gcc/x86_64.h: In function
> > ‘AO_test_and_set_full’:
> > libatomic_ops/src/atomic_ops/sysdeps/gcc/x86_64.h:127: error: unsupported
> > inline asm: input constraint with a matching output constraint of
> > incompatible type!
> >
> > I believe this is due to XCode 4.1 using LLVM instead of the more relaxed
> > gcc 4.0 that was default in previous editions.
> >
> > Juanjo
> >
> > --
> > Instituto de Física Fundamental, CSIC
> > c/ Serrano, 113b, Madrid 28006 (Spain)
> > http://juanjose.garciaripoll.googlepages.com
> >
> 
> 
> 
> -- 
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
> http://juanjose.garciaripoll.googlepages.com
> 
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/



More information about the Gc mailing list