An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20111114/f9a860df/attachment.pl>
suppress PowerPC package build on Lion with R-devel
3 messages · Simon Urbanek, Garth Howell
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.). 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
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