Skip to content

ld: can't locate file for: -lcc_dynamic error after update to OS 10.4

2 messages · Ingmar Visser, Simon Urbanek

#
After updating to 10.4.5 and reinstalling the corresponding developer tools
(from the install dvd) I get the following error when compiling packages
containing c-code (it happens with several packages, among them MNP from
which the error below resulted).

The compilation does the following:
** libs
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include
-I/usr/local/include   -fno-common  -g -O2 -c MNP.c -o MNP.o
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include
-I/usr/local/include   -fno-common  -g -O2 -c rand.c -o rand.o
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include
-I/usr/local/include   -fno-common  -g -O2 -c subroutines.c -o subroutines.o

The downloaded packages are in
    /private/tmp/RtmpDmpAfk/downloaded_packages
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include
-I/usr/local/include   -fno-common  -g -O2 -c vector.c -o vector.o
gcc-3.3 -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o
MNP.so MNP.o rand.o subroutines.o vector.o  -framework vecLib
-L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2 -lg2c -lSystem
-lcc_dynamic -F/Library/Frameworks/R.framework/.. -framework R

and then halts with:

** Removing '/Users/ivisser/Library/R/library/MNP'
ld: can't locate file for: -lcc_dynamic
make: *** [MNP.so] Error 1
ERROR: compilation failed for package 'MNP'

Can anyone tell me what lcc_dynamic does and how I can obtain it/install it?

best, ingmar

i.visser at uva.nl
#
Ingmar,
On 27.2.2006, at 17:42, Ingmar Visser wrote:

            
Please read the R for Mac OS X FAQ (reading this list would help,  
too) - you need to run
sudo gcc_select 3.3
before you compile R packages from sources.

Cheers,
Simon