[R-SIG-Mac] duplicate dylib ... libgcc_s.1.dylib

Hans-Peter gchappi at gmail.com
Thu Jul 10 17:31:01 CEST 2008


Thanks for your answer. What happened was, that 'R CMD CHECK helloC'
generated 3 shared object files at the following locations:
1) helloC/src/helloC.so
2) helloC.Rcheck/helloC/libs/i386/helloC.so
3) helloC.Rcheck/helloC/libs/ppc/helloC.so

It was a little unexpected that the shared object at 1) is for _ppc_
architecture even when I use an intel based MacBookPro.

Before checking the package I compiled/debuged the helloC/src/*.c code
with XCode and used 'R CMD SHLIB' to generate a helloC.so (which in
this case was for i386 and could be loaded by R).


> [...] If the problem still persists, please send me the
> full output of R CMD INSTALL.

Works fine now. Except for the warning message which is still the
same. But I can live with this.

Best,
Hans-Peter


>> * Warning message:
>> Macintosh:src chappi$ R CMD SHLIB hellocalc.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 hellocalc.c -o hellocalc.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 hellocalc.so hellocalc.o
>> -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
>> -Wl,CoreFoundation
>> ld: warning, duplicate dylib
>> /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib



More information about the R-SIG-Mac mailing list