cberry@tajo.ucsd.edu
2002-Jul-17 20:22 UTC
[R] Build on Solaris 8 gcc-3.1 fails make check
Dear R-help, I am trying to build R-1.5.1 on a Sun Blade 100 (sparc). It fails make check when var(1) returns NaN instead of NA. Using gcc-2.95.3 from sunfreeware.com, the build succeeds and passes make check I have: Solaris 8 gcc-3.1 (built on that machine from sources and installed in /usr/local/gcc-3.1 with binaries symlink'ed to /usr/local/bin) A synopsis is at the bottom of this message. The web page http://hacuna.ucsd.edu/Rbuild-Problem/ has these files from this attempt Makeconf 3k Makefile 4k Makefrag.cc 1k Makefrag.cxx 1k Makefrag.f77 1k R-build-session 140k <<=== terminal output from session base-Ex.Rout.fail 376k <<== from /tests/Examples config.log 104k config.status 56k gcc-v--help.out 35k <<== details about compiler files not labelled '<<==' are from the top source dir. A briefer synopsis is below. Please cc replies to me - I subscribe to DIGEST form of R-help. Thanks, Chuck p.s. On that same machine using gcc-2.95.3 from sunfreeware.com, the build succeeds and passes make check. Using gcc-3.1 from sunfreeware.com, it fails in the same way as decribed above. Briefly, I did this: # ./configure R_PAPERSIZE=letter CPPFLAGS= LDFLAGS= ( CPPFLAGS= suppresses annoying messages like these: cpp0: warning: changing search order for system directory "/usr/local/include" cpp0: warning: as it has already been specified as a non-system directory) [deleted] R is now configured for sparc-sun-solaris2.8 Source directory: . Installation directory: /usr/local C compiler: gcc -g -O2 C++ compiler: g++ -g -O2 FORTRAN compiler: g77 -g -O2 X11 support: yes Gnome support: no Tcl/Tk support: yes Readline support: no R profiling support: yes R as a shared library: no # make [deleted] # make check make[1]: Entering directory `/space/local/src/R-1.5.1/tests' make[2]: Entering directory `/space/local/src/R-1.5.1/tests' make[3]: Entering directory `/space/local/src/R-1.5.1/tests/Examples' make[4]: Entering directory `/space/local/src/R-1.5.1/tests/Examples' make[4]: Leaving directory `/space/local/src/R-1.5.1/tests/Examples' make[4]: Entering directory `/space/local/src/R-1.5.1/tests/Examples' collecting examples for package 'base' ... make[5]: Entering directory `/space/local/src/R-1.5.1/src/library' >>> Building/Updating help pages for package `base' Formats: text example make[5]: Leaving directory `/space/local/src/R-1.5.1/src/library' running code in 'base-Ex.R' ...make[4]: *** [base-Ex.Rout] Error 1 make[4]: Leaving directory `/space/local/src/R-1.5.1/tests/Examples' make[3]: *** [test-Examples] Error 2 make[3]: Leaving directory `/space/local/src/R-1.5.1/tests/Examples' make[2]: *** [test-Examples] Error 2 make[2]: Leaving directory `/space/local/src/R-1.5.1/tests' make[1]: *** [test-all-basics] Error 1 make[1]: Leaving directory `/space/local/src/R-1.5.1/tests' make: *** [check] Error 2 [deleted] # bin/R R : Copyright 2002, The R Development Core Team Version 1.5.1 (2002-06-17) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type `license()' or `licence()' for distribution details. R is a collaborative project with many contributors. Type `contributors()' for more information. Type `demo()' for some demos, `help()' for on-line help, or `help.start()' for a HTML browser interface to help. Type `q()' to quit R. Type `q()' to quit R.> stopifnot( is.na(var(1)), !is.na(var(1)) )Error: !is.na(var(1)) is not TRUE> var(1)[1] NaN> q()Charles C. Berry (858) 534-2098 Dept of Family/Preventive Medicine E mailto:cberry at tajo.ucsd.edu UC San Diego http://hacuna.ucsd.edu/members/ccb.html La Jolla, San Diego 92093-0645 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
cberry at tajo.ucsd.edu writes:> Dear R-help, > > > I am trying to build R-1.5.1 on a Sun Blade 100 (sparc). > > It fails make check when var(1) returns NaN instead of NA. > > Using gcc-2.95.3 from sunfreeware.com, the build succeeds and passes > make check > > I have: > > Solaris 8 > gcc-3.1 (built on that machine from sources and installed in > /usr/local/gcc-3.1 with binaries symlink'ed to /usr/local/bin) > > > A synopsis is at the bottom of this message. > > The web page > > http://hacuna.ucsd.edu/Rbuild-Problem/ > > has these files from this attempt > > Makeconf 3k > Makefile 4k > Makefrag.cc 1k > Makefrag.cxx 1k > Makefrag.f77 1k > R-build-session 140k <<=== terminal output from session > base-Ex.Rout.fail 376k <<== from /tests/Examples > config.log 104k > config.status 56k > gcc-v--help.out 35k <<== details about compiler > > files not labelled '<<==' are from the top source dir. > > A briefer synopsis is below. > > Please cc replies to me - I subscribe to DIGEST form of R-help. > > Thanks, > > Chuck > > p.s. On that same machine using gcc-2.95.3 from sunfreeware.com, the > build succeeds and passes make check. Using gcc-3.1 from > sunfreeware.com, it fails in the same way as decribed above.Hmm... gcc-3.0.3 on Solaris 7 works OK for me (passes make check anyway). Anyone else tried 3.1? I suspect that Brian would. I trust that you made sure that you did a clean build and didn't get libraries mixed up or something? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi, I also seem to have the same problem. A related question -- are NAs and NaNs supposed to be the same in R? If they are not, wouldn't it be more appropriate for var(1) to return NaN and to take out the test "stopifnot( is.na(var(1)), !is.nan(var(1)) )"? (Presumably NA is used to denote a missing value, and var(1) is not missing.) Excluding this test, I also found that make check fails at the step "stopifnot( ..., !is.nan(c(1,NA)), ... )" or line 7877 of base-Ex.R. Could someone please comment on this as well? On this compiled version of R, I get !is.nan(c(1,NA)) returns TRUE FALSE although !is.nan(NA) returns TRUE. Thanks very much! ____________________________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._