[R-SIG-Mac] further compilation difficulties

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 24 11:36:10 CET 2008


You would need to remove/rename the ${R_HOME}/bin/exec/i386 directory to 
stop it trying.  But I suspect this is a setup issue; and I've no access 
to a PPC Mac -- at least that comment might get you some respite.

On Thu, 24 Jan 2008, Robin Hankin wrote:

> 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
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>

-- 
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