[R-SIG-Mac] suppress PowerPC package build on Lion with R-devel

Garth Howell howell.garth at gmail.com
Tue Nov 15 00:54:33 CET 2011


On Mon, Nov 14, 2011 at 3:40 PM, Simon Urbanek
<simon.urbanek at r-project.org> wrote:
> Garth,
>
> I bet you didn't use the Installer. The tar ball contains more than your system can handle, that's why the installed removes ppc binaries on Lion. You can do the same by hand with something like
> sudo rm -rf `find /Library/Frameworks/R.framework -name ppc`
>
> However, I'd recommend using the Installer instead since there are other Lion-specific actions (such as changing the default arch etc.).

That did the trick. Thanks!
Garth Howell


>
> Cheers,
> Simon
>
>
> On Nov 14, 2011, at 3:38 PM, Garth Howell wrote:
>
>> 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]]
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>



More information about the R-SIG-Mac mailing list