[R-SIG-Mac] Making Fortran shared objects on Mac

Emmanuel Sharef ess28 at cornell.edu
Sun Dec 17 02:55:48 CET 2006


On Dec 16, 2006, at 6:50 PM, elw at stderr.org wrote:

>
>
>> I get the following error when trying to compile some Fortran code  
>> to a shared object using R CMD SHLIB:
>>
>> R CMD SHLIB test3.f
>> gfortran-4.0 -arch ppc   -fPIC  -g -O2 -c test3.f -o test3.o
>> gcc-4.0 -arch ppc -dynamiclib -Wl,-macosx_version_min -Wl,10.3 -
>
>> It looks like it's having some trouble with libtool, but I don't know
>> what it means. I have installed
>> - the Apple developer tools
>> - the gcc included with the R installer
>> - g77 from hpc.sourceforge.net
>
> where'd that gfortran come from?  last time i checked, apple wasn't  
> shipping a fortran compiler... have things changed, on that front?
>

I think the gfortran is what was installed by the R 2.4.0 installer  
package. After installing it, I noticed that I didn't have a g77 yet,  
so I downloaded the one from hpc.sourceforge.net. Hm, is there some  
reason that R CMD SHLIB is calling gfortran instead of g77?

> --e



More information about the R-SIG-Mac mailing list