[R-SIG-Mac] compilation difficulties

Simon Urbanek simon.urbanek at r-project.org
Mon Jan 28 00:57:54 CET 2008


On Jan 23, 2008, at 4:10 AM, Robin Hankin wrote:

> hits=-2.6 tests=BAYES_00
> X-USF-Spam-Flag: NO
>
> Hi
>
>
> I am having difficulty compiling one of my packages.
> I have recently upgraded to macOSX10.5.1, and installed the latest
> Xcode 3.0.  I reinstalled R-2.6.1 just now from CRAN (binary), and
> then rebooted
> my machine.
>
> Any insights gratefully received.
>
>
> Robin
>
>
>
>
> R CMD INSTALL gives:
>
>
> 45-10:~/scratch% sudo R CMD INSTALL ./aylmer
> Password:
> * Installing to library '/Library/Frameworks/R.framework/Resources/
> library'
> * Installing *source* package 'aylmer' ...
> ** libs
> g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
> version-min=10.4 -no-cpp-precomp -I/Library/Frameworks/R.framework/
> Resources/include -I/Library/Frameworks/R.framework/Resources/include/
> ppc  -I/usr/local/include    -fPIC  -g -O2 -c aylmer.cpp -o aylmer.o
> g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
> version-min=10.4 -no-cpp-precomp -I/Library/Frameworks/R.framework/
> Resources/include -I/Library/Frameworks/R.framework/Resources/include/
> ppc  -I/usr/local/include    -fPIC  -g -O2 -c board.cpp -o board.o
> g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
> version-min=10.4 -dynamiclib -Wl,-headerpad_max_install_names -Wl,-
> macosx_version_min -Wl,10.4 -undefined dynamic_lookup -single_module -
> multiply_defined suppress -L/usr/local/lib -o aylmer.so aylmer.o
> board.o   -F/Library/Frameworks/R.framework/.. -framework R
> ld: warning, duplicate dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/ 
> local/
> lib/libgcc_s.1.dylib
> ** arch - i386
> g++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
> version-min=10.4 -no-cpp-precomp -I/Library/Frameworks/R.framework/
> Resources/include -I/Library/Frameworks/R.framework/Resources/include/
> i386  -msse3    -fPIC  -g -O2 -march=nocona -c aylmer.cpp -o aylmer.o
> g++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
> version-min=10.4 -no-cpp-precomp -I/Library/Frameworks/R.framework/
> Resources/include -I/Library/Frameworks/R.framework/Resources/include/
> i386  -msse3    -fPIC  -g -O2 -march=nocona -c board.cpp -o board.o
> g++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
> version-min=10.4 -dynamiclib -Wl,-headerpad_max_install_names -Wl,-
> macosx_version_min -Wl,10.4 -undefined dynamic_lookup -single_module -
> multiply_defined suppress -L/usr/local/lib -o aylmer.so aylmer.o
> board.o   -F/Library/Frameworks/R.framework/.. -framework R
> ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libreadline. 
> 5.2.dylib, file is not of required architecture

^^^ the error says it all (readline is not of required architecture) -  
you have some 3rd party version of readline (not ours) that is not  
universal. Either use readline supplied with R or compile/get an  
universal readline (see FAQ) or follow previous advice on disabling  
universal build of your package.

Cheers,
Simon



>
> collect2: ld returned 1 exit status
> make: *** [aylmer.so] Error 1
> chmod: /Library/Frameworks/R.framework/Resources/library/aylmer/libs/
> i386/*: No such file or directory
> ** arch - ppc
> g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
> version-min=10.4 -no-cpp-precomp -I/Library/Frameworks/R.framework/
> Resources/include -I/Library/Frameworks/R.framework/Resources/include/
> ppc  -I/usr/local/include    -fPIC  -g -O2 -c aylmer.cpp -o aylmer.o
> g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
> version-min=10.4 -no-cpp-precomp -I/Library/Frameworks/R.framework/
> Resources/include -I/Library/Frameworks/R.framework/Resources/include/
> ppc  -I/usr/local/include    -fPIC  -g -O2 -c board.cpp -o board.o
> g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-
> version-min=10.4 -dynamiclib -Wl,-headerpad_max_install_names -Wl,-
> macosx_version_min -Wl,10.4 -undefined dynamic_lookup -single_module -
> multiply_defined suppress -L/usr/local/lib -o aylmer.so aylmer.o
> board.o   -F/Library/Frameworks/R.framework/.. -framework R
> ld: warning, duplicate dylib /Developer/SDKs/MacOSX10.4u.sdk/usr/ 
> local/
> lib/libgcc_s.1.dylib
> ERROR: compilation failed for package 'aylmer'
> ** Removing '/Library/Frameworks/R.framework/Resources/library/aylmer'
> ** Restoring previous '/Library/Frameworks/R.framework/Resources/
> library/aylmer'
> 245-10:~/scratch%
>
>
>
>
>
>
>
> --
> Robin Hankin
> Uncertainty Analyst and Neutral Theorist,
> National Oceanography Centre, Southampton
> European Way, Southampton SO14 3ZH, UK
>  tel  023-8059-7743
>
> _______________________________________________
> 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