[R-SIG-Mac] further compilation difficulties

Robin Hankin r.hankin at noc.soton.ac.uk
Thu Jan 24 11:00:03 CET 2008


hits=-2.6 tests=BAYES_00
X-USF-Spam-Flag: NO

Hi

I'm still having difficulty compiling a package on my desktop,
  that works fine on my laptop. [thanks for the offline help, guys!]

The desktop machine is a ppc architecture but I can't seem to
stop R CMD build from trying to do the i386 compilations;
script cut-and-pasted below.



I have even removed

/Library/Frameworks/R.framework/Resources/etc/i386/Makeconf

[with a view to stopping any 386 architecture compilations].

but R CMD build complains about not being able to find it.


How to get round this?



245-10:~/scratch% sudo R CMD INSTALL aylmer_0.4-3.tar.gz
Password:
* Installing to library '/Library/Frameworks/R.framework/Resources/ 
library'
* Installing *source* package 'aylmer' ...
** libs
g++-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -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++-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -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++-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -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.5.sdk/usr/local/ 
lib/libgcc_s.1.dylib
** arch - i386
/Library/Frameworks/R.framework/Resources/share/make/shlib.mk:3: / 
Library/Frameworks/R.framework/Resources/etc/i386/Makeconf: No such  
file or directory
make: *** No rule to make target `/Library/Frameworks/R.framework/ 
Resources/etc/i386/Makeconf'.  Stop.
chmod: /Library/Frameworks/R.framework/Resources/library/aylmer/libs/ 
i386/*: No such file or directory
** arch - ppc
g++-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -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++-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -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++-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -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.5.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