[R-SIG-Mac] R CMD SHLIB

Simon Urbanek simon.urbanek at r-project.org
Sun Aug 10 23:33:00 CEST 2008


On Aug 8, 2008, at 7:02 PM, Sourya Shrestha wrote:

> Hi,
>
> I am using osx 10.4.11 with R version 2.7.1. I am trying to create a
> share lib from a little C code and I am getting some errors, which I
> cannot make anything out of. The code written is fine, since I am able
> to compile it on a linux elsewhere. Any help would be appreciated.
>
> Here's the error --

My guess would be some 3rd party compilers that don't work properly.  
Make sure you're using Xcode 2.4 or higher (2.5 is the current version  
for Tiger) and that you don't have any broken compilers (e.g. from  
HPC) in /usr/local. If in doubt rename (or delete) /usr/local and try  
again.

Cheers,
Simon



> ===
> R CMD SHLIB mckvf.c
>
> gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -mmacosx-version-min=10.4 -std=gnu99
> -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/i386  -msse3
> -fPIC  -g -O2 -march=nocona -c mckvf.c -o mckvf.o
> gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -mmacosx-version-min=10.4 -std=gnu99 -dynamiclib
> -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 -undefined
> dynamic_lookup -single_module -multiply_defined suppress
> -L/usr/local/lib -o mckvf.so mckvf.o
> -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
> -Wl,CoreFoundation
> /usr/bin/libtool: for architecture cputype (16777223) cpusubtype (3)
> object: /usr/local/lib/libgcc_s.10.4.dylib malformed object (unknown
> load command 4)
> make: *** [mckvf.so] Error 1
> ===
>
> Thanks,
>
> Sourya
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>



More information about the R-SIG-Mac mailing list