I'm trying to build a package. The machine is PowerPC G4 with Mac OS 10.4.8, and I'm using R2.4.1. I get "R CMD build roots" working, and it created roots.tar.gz. But I get the following message when I run "R CMD INSTALL -l ../myrlibrary roots.tar.gz" =====================================================================* Installing *source* package 'roots' ... ** libs ** arch - ppc gcc-4.0 -arch ppc -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/ppc -I/usr/local/include -fPIC -g -O2 -c fifrt.c -o fifrt.o gfortran-4.0 -arch ppc -fPIC -g -O2 -c fthrt.f -o fthrt.o gcc-4.0 -arch ppc -std=gnu99 -dynamiclib -Wl,-macosx_version_min -Wl,10.3 -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o roots.so fifrt.o fthrt.o -lgfortran -lgcc_s -lSystemStubs -lmx -lSystem -L/Library/Frameworks/R.framework/Resources/lib/ppc -lR -dylib_file libRblas.dylib:/Library/Frameworks/R.framework/Resources/lib/ppc/libRblas.dy lib /usr/bin/libtool: unknown option character `m' in: -macosx_version_min Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load] make: *** [roots.so] Error 1 chmod: /../myrlibrary/roots/libs/ppc/*: No such file or directory ERROR: compilation failed for package 'roots' ** Removing '/../myrlibrary/roots' =========================================================================== One thing I can see from above is the message "/usr/bin/libtool: unknown option character `m' in: -macosx_version_min", which I got when compiling other c programs to be called by R. How can I fix it or get around it? I appreciate your time and help very much. Lillian Yau
Please update your Xcode tools. According to http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html 2.2 or later is needed, and 2.4.1 is current. On Tue, 30 Jan 2007, C. Lillian Yau wrote:> I'm trying to build a package. The machine is PowerPC G4 with Mac OS 10.4.8, > and I'm using R2.4.1. > > I get "R CMD build roots" working, and it created roots.tar.gz. But I get > the following message when I run "R CMD INSTALL -l ../myrlibrary > roots.tar.gz" > > =====================================================================> * Installing *source* package 'roots' ... > ** libs > ** arch - ppc > gcc-4.0 -arch ppc -std=gnu99 > -I/Library/Frameworks/R.framework/Resources/include >-I/Library/Frameworks/R.framework/Resources/include/ppc> -I/usr/local/include -fPIC -g -O2 -c fifrt.c -o fifrt.o > gfortran-4.0 -arch ppc -fPIC -g -O2 -c fthrt.f -o fthrt.o > gcc-4.0 -arch ppc -std=gnu99 -dynamiclib -Wl,-macosx_version_min -Wl,10.3 > -undefined dynamic_lookup -single_module -multiply_defined suppress > -L/usr/local/lib -o roots.so fifrt.o fthrt.o -lgfortran -lgcc_s > -lSystemStubs -lmx -lSystem > -L/Library/Frameworks/R.framework/Resources/lib/ppc -lR -dylib_file > libRblas.dylib:/Library/Frameworks/R.framework/Resources/lib/ppc/libRblas.dy > lib > /usr/bin/libtool: unknown option character `m' in: -macosx_version_min[...] -- 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