[R-SIG-Mac] compilation difficulties
Robin Hankin
r.hankin at noc.soton.ac.uk
Wed Jan 23 10:10:58 CET 2008
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
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
More information about the R-SIG-Mac
mailing list