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

Joshua Root jmr at macports.org
Sun Sep 22 23:26:58 PDT 2013


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

- Josh


More information about the macports-dev mailing list