[Gc] Re[2]: Build with -m32 on 64bits OSX

Yi Lin qinsoon at gmail.com
Mon Jul 1 16:10:04 PDT 2013


I have built libgc.a with CFLAGS=-m32. Though there are complaints, the 
test script passes and it seems working fine with my program as well.

Regards,
Yi

On 2/07/2013 7:28 AM, Margaret Fleck wrote:
>
> I just compiled an old 32-bit code package under OSX (10.7.5).
> I'm getting the same error messages about libgc.a not containing
> any symbols, when I compile gc 7.2.   However, my code using
> libgc.a seems to compile and run just fine.    So I suspect the
> error messages are bogus.  E.g. maybe there is a mac-specific
> issue with whatever routine is being called to try to check
> whether libgc.a is ok?
>
> I'm passing -arch i386 to CFLAGS but not to LDFLAGS, for the
> record.
>
> Margaret Fleck
>
> On 7/1/13 3:26 PM, Ivan Maidanski wrote:
>> Hi Yi,
>>
>> I haven't tried compiling GC for OSX for a long time. As I recall, 
>> you should pass "-arch i386" both to CFLAGS and LDFLAGS.
>>
>> Someone on the list should know better.
>>
>> Regards,
>> Ivan
>>
>> Tue, 25 Jun 2013, 11:46 +10:00 from Yi Lin <qinsoon at gmail.com>:
>>
>>     I think my question should be how to get a static library (gc.a)
>>     from
>>     configure/make.
>>     I used to use Makefire.direct to generate gc.a
>>
>>     Thanks very much.
>>
>>     Regards,
>>     Yi
>>
>>     On 24/06/13 14:59 , Yi Lin wrote:
>>     > Hi,
>>     >
>>     > I am trying to build gc with -m32 flag under 64bits OSX. I use
>>     > 'CFLAGS=-m32 LDFLAGS=-m32 ./configure;make'. However, no error
>>     > message, but no 'gc.a' was generated.
>>     >
>>     > I noticed there were some complaints during building:
>>     > /opt/local/bin/ranlib: file: .libs/libgc.a(checksums.o) has no
>>     symbols
>>     > /opt/local/bin/ranlib: file: .libs/libgc.a(gc_dlopen.o) has no
>>     symbols
>>     > /opt/local/bin/ranlib: file: .libs/libgc.a(pcr_interface.o) has no
>>     > symbols
>>     > /opt/local/bin/ranlib: file: .libs/libgc.a(real_malloc.o) has
>>     no symbols
>>     > /opt/local/bin/ranlib: file: .libs/libgc.a(specific.o) has no
>>     symbols
>>     > /opt/local/bin/ranlib: file: .libs/libgc.a(backgraph.o) has no
>>     symbols
>>     > /opt/local/bin/ranlib: file:
>>     .libs/libgc.a(pthread_stop_world.o) has
>>     > no symbols
>>     >
>>     > Can anyone give a hint?
>>     >
>>     > I want to get a 32bits library so I can link it with my program
>>     (32
>>     > bits). Thanks very much.
>>     >
>>     > Regards,
>>     > Yi Lin
>>
>>     _______________________________________________
>>     Gc mailing list
>>     Gc at linux.hpl.hp.com <sentmsg?compose&To=Gc at linux.hpl.hp.com>
>>     http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
>>
>>
>>
>> -- 
>> ???? ??????????
>>
>>
>> _______________________________________________
>> 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/20130702/fca1383b/attachment-0001.htm


More information about the Gc mailing list