[R] package building fails on OSX 10.4 with (lcc_dynamic error)

Dan Kelley Dan.Kelley at Dal.Ca
Sat Dec 10 23:29:42 CET 2005


I have a package that contains some fortran code.  It has been built  
in the past, but now I have an updated Apple OSX 10.4 (Tiger) system,  
and it fails.  The behaviour is as follows

	$ R CMD CHECK oce
	,,,
	gcc-3.3 -bundle -flat_namespace -undefined suppress -L/usr/local/lib  
-o oce.so geoddist.o ocecp.o rho.o spice.o strho.o theta.o tsrho.o  - 
L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2 -lg2c -lSystem - 
lcc_dynamic -F/Library/Frameworks/R.framework/.. -framework R
	ld: can't locate file for: -lcc_dynamic
	make: *** [oce.so] Error 1

and the system is as follows:
	R 2.2.0 (2005-10-06)
	gcc version 4.0.1 (Apple Computer, Inc. build 5247)
and the g77 is from the R-2.2 DMG.

I am getting the error on two machines.  One is a Tiger system that  
has been running for quite some time (since Tiger was released), and  
the other has had Tiger newly installed.  I just mention that because  
the older system may well have had tweaks of various types over the  
months, but the newer system is basically clean from the Apple DVDs,  
plus all the Apple updates, plus R 2.2 (and its g77) as downloaded  
today.

Can anyone suggest what I should try next?  I searched this mailing  
list, and the web generally, to try to figure this out.  I'm drawing  
a blank.  I would prefer not to downgrade my GCC to 3.x, since I also  
use the machine for GCC 4.x development, but I guess I could do  
gcc_select if there is no other option.

I imagine others are in the same boat, and I'd be happy to post a  
followup with the results of any tests that are suggested.

Dan E. Kelley, Assoc. Prof.		phone:(902)494-1694
Dept. Oceanography				fax:(902)494-2885
Dalhousie University				mailto:Dan.Kelley at Dal.CA
Halifax, NS, Canada B3H 4J1   	http://www.phys.ocean.dal.ca/~kelley/ 
Kelley_Dan.html




More information about the R-help mailing list