Hi,

I am running Lion which no longer supports the Power PC architecture.

I want to build a package from source using R-devel.

This is what happens:
$ R CMD INSTALL rjson_0.2.6.tar.gz
BiocInstaller version 1.3.3, ?biocLite for help
* installing to library
‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’
* installing *source* package ‘rjson’ ...
** package ‘rjson’ successfully unpacked and MD5 sums checked
** Creating default NAMESPACE file
** libs
*** arch - i386
gcc-4.2 -arch i386 -std=gnu99
-I/Library/Frameworks/R.framework/Versions/2.15/Resources/include
-I/Library/Frameworks/R.framework/Versions/2.15/Resources/include/i386
-DNDEBUG  -I/usr/local/include    -fPIC  -g -O2 -Wall -pedantic -c parser.c
-o parser.o
parser.c: In function ‘UTF8Encode2BytesUnicode’:
parser.c:102: warning: comparison is always true due to limited range of
data type
gcc-4.2 -arch i386 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
-undefined dynamic_lookup -single_module -multiply_defined suppress
-L/usr/local/lib -o rjson.so parser.o -F/Library/Frameworks/R.framework/..
-framework R -Wl,-framework -Wl,CoreFoundation
installing to
/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rjson/libs/i386
*** arch - ppc
gcc-4.2 -arch ppc -std=gnu99
-I/Library/Frameworks/R.framework/Versions/2.15/Resources/include
-I/Library/Frameworks/R.framework/Versions/2.15/Resources/include/ppc
-DNDEBUG  -I/usr/local/include    -fPIC  -g -O2 -Wall -pedantic -c parser.c
-o parser.o
gcc-4.2: error trying to exec '/usr/bin/powerpc-apple-darwin11-gcc-4.2.1':
execvp: No such file or directory
make: *** [parser.o] Error 255
ERROR: compilation failed for package ‘rjson’
* removing
‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rjson’
* restoring previous
‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/rjson’

If I add the option --no-multiarch, it builds fine.
But I would like to build the package for both the i386 and x86_64
architectures.

Is there some setting I can change so that by default, packages will be
built for both these architectures but never for ppc?

I am using the binary of R-devel from http://r.research.att.com.

sessionInfo()
R Under development (unstable) (2011-10-27 r57452)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

Thanks,
Garth Howell

	[[alternative HTML version deleted]]

