MacPorts Base doesn't build on 10.5 with GCC < 4.2 (Was: Re: MacPorts Test Framework - GSoC 13)

Bradley Giesbrecht pixilla at macports.org
Mon Sep 23 08:41:48 PDT 2013


On Sep 22, 2013, at 11:26 PM, Joshua Root wrote:

> On 2013-9-23 05:22 , Clemens Lang wrote:
>> On Sun, Sep 22, 2013 at 10:41:00AM -0700, Bradley Giesbrecht wrote:
>>> $ sw_vers -productVersion
>>> 10.5.8
>>> $ ./configure --prefix=/opt/local --enable-readline
>>> ...
>>> $ make
>>> ...
>>> ===> making all in src/darwintracelib1.0
>>> gcc -g -O2 -std=c99 -Wextra -Wall   -fPIC -Wno-deprecated-declarations -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"  -c -o darwintrace.o darwintrace.c
>>> darwintrace.c:507:2: error: #error Please build with gcc-4.2 or later
>>> darwintrace.c: In function '__darwintrace_get_filemap':
>>> darwintrace.c:524: warning: implicit declaration of function '__sync_bool_compare_and_swap'
>>> make[2]: *** [darwintrace.o] Error 1
>>> ...
>> 
>> That's not related to the test code but is caused by other changes made
>> by me while working on the trace mode code. Please file a bug about
>> this, if there isn't one already, because I won't have time to look at
>> it before at least tomorrow afternoon, but probably rather Thursday the
>> week after next week.
> 
> Right, this is specifically a problem with gcc-4.0 not supporting
> __sync_bool_compare_and_swap. Any other system compiler should work
> (e.g. CC=gcc-4.2).

Yes this works:
./configure CC=gcc-4.2


> Do file that ticket, and Cc jeremyhu as well since he
> said he would work on it "later". :-)


https://trac.macports.org/ticket/40564


Regards,
Bradley Giesbrecht (pixilla)



More information about the macports-dev mailing list