Hi I tried to compile R-2.2.0 just now. configure worked fine, but compilation stopped with [snip] src/include -I/sw/include -I/usr/local/include -DHAVE_CONFIG_H -fno- common -g -O2 -c util.c -o util.lo gcc -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/ pcre -no-cpp-precomp -I. -I../../src/include -I../../src/include -I/ sw/include -I/usr/local/include -DHAVE_CONFIG_H -fno-common -g -O2 - c version.c -o version.lo gcc -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/ pcre -no-cpp-precomp -I. -I../../src/include -I../../src/include -I/ sw/include -I/usr/local/include -DHAVE_CONFIG_H -fno-common -g -O2 - c vfonts.c -o vfonts.lo g77 -fno-common -g -O2 -c xxxpr.f -o xxxpr.lo gcc -dynamiclib -L/sw/lib -L/usr/local/lib -dynamiclib -install_name libR.dylib -compatibility_version 2.2.0 -current_version 2.2.0 - headerpad_max_install_names -o libR.dylib Rembedded.lo CConverters.lo CommandLineArgs.lo Rdynload.lo Renviron.lo RNG.lo apply.lo arithmetic.lo apse.lo array.lo attrib.lo base.lo bind.lo builtin.lo character.lo coerce.lo colors.lo complex.lo connections.lo context.lo cov.lo cum.lo dcf.lo datetime.lo debug.lo deparse.lo deriv.lo dotcode.lo dounzip.lo dstruct.lo duplicate.lo engine.lo envir.lo errors.lo eval.lo format.lo fourier.lo gevents.lo gram.lo gram-ex.lo graphics.lo identical.lo internet.lo iosupport.lo lapack.lo list.lo logic.lo main.lo mapply.lo match.lo memory.lo model.lo names.lo objects.lo optim.lo optimize.lo options.lo par.lo paste.lo pcre.lo platform.lo plot.lo plot3d.lo plotmath.lo print.lo printarray.lo printvector.lo printutils.lo qsort.lo random.lo regex.lo registration.lo relop.lo saveload.lo scan.lo seq.lo serialize.lo size.lo sort.lo source.lo split.lo sprintf.lo startup.lo subassign.lo subscript.lo subset.lo summary.lo sysutils.lo unique.lo util.lo version.lo vfonts.lo xxxpr.lo `ls ../appl/*.lo ../nmath/ *.lo ../unix/*.lo 2>/dev/null` -framework vecLib -L/usr/local/lib/ gcc/powerpc-apple-darwin7.9.0/3.4.4 -lg2c -lgcc_s -lSystem ../extra/ zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a -lintl - liconv -lreadline -lm -liconv ld: warning multiple definitions of symbol _xerbla_ print.lo definition of _xerbla_ in section (__TEXT,__text) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ vecLib.framework/Versions/A/libBLAS.dylib(single module) definition of _xerbla_ ld: warning multiple definitions of symbol _locale_charset /sw/lib/libiconv.dylib(localcharset.o) definition of _locale_charset /sw/lib/libintl.dylib(localcharset.lo) definition of _locale_charset ld: warning multiple definitions of symbol _signgam ../nmath/lgamma.lo definition of _signgam in section (__DATA,__common) /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libSystem.dylib (gamma9.o) definition of _signgam ld: Undefined symbols: restFP saveFP /usr/bin/libtool: internal link edit command failed make[3]: *** [libR.dylib] Error 1 make[2]: *** [R] Error 2 make[1]: *** [R] Error 1 make: *** [R] Error 1 octopus:~/scratch/R-2.2.0% Any suggestions anyone? > R.Version() $platform [1] "powerpc-apple-darwin7.9.0" $arch [1] "powerpc" $os [1] "darwin7.9.0" $system [1] "powerpc, darwin7.9.0" $status [1] "Patched" $major [1] "2" $minor [1] "1.0" $year [1] "2005" $month [1] "05" $day [1] "12" $language [1] "R" > -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743
On Fri, 7 Oct 2005, Robin Hankin wrote:> Hi > > I tried to compile R-2.2.0 just now.On MacOS X.> configure worked fine, but > compilation stopped withPlease ask MacOS-specific questions on the r-sig-mac list. (Missing RestFP, SaveFP.) I believe this is well-known and indicates an incompatible mixture of compilers from different sources: just Google for RestFP. See e.g. https://stat.ethz.ch/pipermail/r-sig-mac/2005-July/002052.html http://tolstoy.newcastle.edu.au/~rking/R/help/05/06/7345.html I doubt if it has anything to do with R 2.2.0. -- 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
On 07/10/2005, at 8:00 PM, Robin Hankin wrote:> I tried to compile R-2.2.0 just now. configure worked fine, but > compilation stopped with> > ld: Undefined symbols: > restFP > saveFP > /usr/bin/libtool: internal link edit command failed > make[3]: *** [libR.dylib] Error 1 > make[2]: *** [R] Error 2 > make[1]: *** [R] Error 1 > make: *** [R] Error 1 > octopus:~/scratch/R-2.2.0%This has been written up many times already. It would be nice if it was in the documentation. g77 can only be used with gcc-3.x and earlier. The default compiler on Tiger is gcc-4. All you need to do to build with g77 on Tiger is use the command sudo gcc_select 3.3 which will make gcc-3.3 the default compiler and it will all work. Bill Northcott