Skip to content
Prev 2015 / 15075 Next

(hopefully last) R 2.1.1 available in DarwinPorts

I figured out the problem.  There is a small bug with Apple's default  
installation.  On a clean install of Tiger + Xcode 2.1 you get:

[muffin] kjell> sudo gcc_select
Current default compiler:
gcc version 4.0.0 (Apple Computer, Inc. build 5026)
[muffin] kjell> ls /usr/lib/libcc_dynamic.a
/usr/lib/libcc_dynamic.a

That library should not be there when gcc 4.0 is the default compiler.

After running gcc_select to switch to 3.3 then back to 4.0 you get:

[muffin] kjell> sudo gcc_select 3.3
Default compiler has been set to:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)
[muffin] kjell> gcc_select
Current default compiler:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)
[muffin] kjell> sudo gcc_select 4.0
Default compiler has been set to:
gcc version 4.0.0 (Apple Computer, Inc. build 5026)
[muffin] kjell> gcc_select
Current default compiler:
gcc version 4.0.0 (Apple Computer, Inc. build 5026)
[muffin] kjell> ls /usr/lib/libcc_dynamic.a
ls: /usr/lib/libcc_dynamic.a: No such file or directory

which is correct.

The result is that if you try to compile R on a virgin OS X + Xcode  
with GCC=gcc-3.3 and GXX=g++-3.3 set in your environment it will  
work.  After you have run gcc_select 4.0 the same build will fail.

Amazing what a good night sleep will do (:

Kjell
On 8 Sep 2005, at 06:19, Simon Urbanek wrote:

            
That's what I meant by 'and associated libraries'.