[R-SIG-Mac] problem with SHLIB
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Dec 19 15:42:32 CET 2008
I think you need to update your Xcode. What version is it, and how does
it compare with the FAQ's prescriptions?
On Fri, 19 Dec 2008, Thibault Helleputte wrote:
> Hello,
>
> I'm using R 2.8.0 on a Macbook Pro running Tiger on it.
>
> I have a simple C file named hello.c and when I try to generate the .so
> file like that:
>
> $ R CMD SHLIB hello.c
>
> I get the following output:
>
> gcc -arch i386 -std=gnu99
> -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/i386
> -I/usr/local/include -fPIC -g -O2 -c hello.c -o hello.o
> gcc -arch i386 -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 hello.so hello.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: *** [hello.so] Error 1
>
>
> What is this error? How can I fix it?
>
> Thank you
>
> Thibault
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-SIG-Mac
mailing list