[R] Error message when building a package

C. Lillian Yau cyau at tulane.edu
Tue Jan 30 07:12:28 CET 2007

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

* Installing *source* package 'roots' ...
** libs
** arch - ppc
gcc-4.0 -arch ppc -std=gnu99
-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
/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]
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

Lillian Yau

More information about the R-help mailing list