Hello I'm having trouble building R under Unix. I've searched for information about it on google or the R database but I didn't find any answer on my problem. I would be thankful if somebody could help me working that out. The version of R I'm trying to build is R-2.4.0 and the architecture of solaris is sparc. Here's what I type. PATH=/opt/sfw/bin:$PATH export PATH That's for the C compiler ./configure LDFLAGS="-L/opt/sfw/lib:/opt/sfw/lib/sparcv9" Then I get : Source directory: . Installation directory: /usr/local C compiler: gcc -g -O2 -std=gnu99 Fortran 77 compiler: g77 -g -O2 C++ compiler: g++ -g -O2 Fortran 90/95 compiler: g77 -g -O2 Interfaces supported: X11 External libraries: readline Additional capabilities: PNG, JPEG, NLS Options enabled: shared BLAS, R profiling Recommended packages: yes configure: WARNING: you cannot build DVI versions of the R manuals configure: WARNING: you cannot build PDF versions of the R manuals gmake and then I get this error message gmake[3]: Entering directory `/usr/local/R_HOME/R-2.4.0/src/main' gcc -L/opt/sfw/lib:/opt/sfw/lib/sparcv9 -o R.bin Rmain.o CConverters.o CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o apse.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate.o engine.o envir.o errors.o eval.o format.o fourier.o gevents.o gram.o gram-ex.o graphics.o identical.o internet.o iosupport.o lapack.o list.o localecharset.o logic.o main.o mapply.o match.o memory.o model.o names.o objects.o optim.o optimize.o options.o par.o paste.o pcre.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o qsort.o random.o regex.o registration.o relop.o rlocale.o saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o unique.o util.o version.o vfonts.o xxxpr.o mkdtemp.o ../unix/libunix.a ./appl/libappl.a ../nmath/libnmath.a -L../../lib -lRblas -L/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2 -L/usr/ccs/bin -L/opt/sfw/lib -lg2c -lm -lgcc_s ./extra/zlib/libz.a ../extra/bzip2/libbz2.a ./extra/pcre/libpcre.a ../extra/intl/libintl.a -lreadline -lncurses -lnsl -lsocket -ldl -lm Undefined first referenced symbol in file __builtin_isnan arithmetic.o ld: fatal: Symbol referencing errors. No output written to R.bin collect2: ld returned 1 exit status gmake[3]: *** [R.bin] Error 1 gmake[3]: Leaving directory `/usr/local/R_HOME/R-2.4.0/src/main' gmake[2]: *** [R] Error 2 gmake[2]: Leaving directory `/usr/local/R_HOME/R-2.4.0/src/main' gmake[1]: *** [R] Error 1 gmake[1]: Leaving directory `/usr/local/R_HOME/R-2.4.0/src' gmake: *** [R] Error 1 In advance, thanks a lot if you mind helping me. Juien [[alternative HTML version deleted]]
Steiner, Julien wrote:> Hello > > > > I'm having trouble building R under Unix. I've searched for information > about it on google or the R database but I didn't find any answer on my > problem. I would be thankful if somebody could help me working that out. > > > > The version of R I'm trying to build is R-2.4.0 and the architecture of > solaris is sparc. > > > > Here's what I type. > > > > PATH=/opt/sfw/bin:$PATH > > export PATH > > That's for the C compiler > > > > ./configure LDFLAGS="-L/opt/sfw/lib:/opt/sfw/lib/sparcv9" > > >That doesn't look like correct syntax for LDFLAGS. Should it not be "-L/opt/sfw/lib -L/opt/sfw/lib/sparcv9" ?> Then I get : > > > > Source directory: . > > Installation directory: /usr/local > > > > C compiler: gcc -g -O2 -std=gnu99 > > Fortran 77 compiler: g77 -g -O2 > > > > C++ compiler: g++ -g -O2 > > Fortran 90/95 compiler: g77 -g -O2 > > > > Interfaces supported: X11 > > External libraries: readline > > Additional capabilities: PNG, JPEG, NLS > > Options enabled: shared BLAS, R profiling > > > > Recommended packages: yes > > > > configure: WARNING: you cannot build DVI versions of the R manuals > > configure: WARNING: you cannot build PDF versions of the R manuals > > > > gmake > > > > and then I get this error message > > > > gmake[3]: Entering directory > > `/usr/local/R_HOME/R-2.4.0/src/main' > > gcc -L/opt/sfw/lib:/opt/sfw/lib/sparcv9 -o R.bin Rmain.o CConverters.o > CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o > apse.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o > colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o > debug.o deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate.o > engine.o envir.o errors.o eval.o format.o fourier.o gevents.o gram.o > gram-ex.o graphics.o identical.o internet.o iosupport.o lapack.o list.o > localecharset.o logic.o main.o mapply.o match.o memory.o model.o names.o > objects.o optim.o optimize.o options.o par.o paste.o pcre.o platform.o > plot.o plot3d.o plotmath.o print.o printarray.o printvector.o > printutils.o qsort.o random.o regex.o registration.o relop.o rlocale.o > saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o > sprintf.o startup.o subassign.o subscript.o subset.o summary.o > sysutils.o unique.o util.o version.o vfonts.o xxxpr.o mkdtemp.o > ../unix/libunix.a ./appl/libappl.a ../nmath/libnmath.a -L../../lib > -lRblas > > -L/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2 > > -L/usr/ccs/bin -L/opt/sfw/lib -lg2c -lm -lgcc_s ./extra/zlib/libz.a > ../extra/bzip2/libbz2.a ./extra/pcre/libpcre.a ../extra/intl/libintl.a > -lreadline -lncurses -lnsl -lsocket -ldl -lm > > Undefined first referenced > > symbol in file > > __builtin_isnan arithmetic.o > > ld: fatal: Symbol referencing errors. No output written to R.bin > > collect2: ld returned 1 exit status > > gmake[3]: *** [R.bin] Error 1 > > gmake[3]: Leaving directory > > `/usr/local/R_HOME/R-2.4.0/src/main' > > gmake[2]: *** [R] Error 2 > > gmake[2]: Leaving directory > > `/usr/local/R_HOME/R-2.4.0/src/main' > > gmake[1]: *** [R] Error 1 > > gmake[1]: Leaving directory `/usr/local/R_HOME/R-2.4.0/src' > > gmake: *** [R] Error 1 > > > > > > In advance, thanks a lot if you mind helping me. > > > > > > Juien > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
On Wed, 29 Nov 2006, Steiner, Julien wrote:> I'm having trouble building R under Unix. I've searched for information > about it on google or the R database but I didn't find any answer on my > problem. I would be thankful if somebody could help me working that out.It has been discussed several times on the R lists. http://finzi.psych.upenn.edu/R/Rhelp02a/archive/86605.html is one such discussion. No one has come back to say they still have a problem after checking the compiler in use (and others have reported using R 2.4.0 on Solaris 10).> The version of R I'm trying to build is R-2.4.0 and the architecture of > solaris is sparc.And gcc is 3.4.2 (far from current) on Solaris 10, it appears from> -L/opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2[...] -- 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