An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20101109/279ea8d1/attachment.pl>
R-2.12.0 problem on Solaris 10
6 messages · Dr. David Kirkby, Brian Ripley, Zhang,Jun
On 11/ 9/10 09:22 PM, Zhang,Jun wrote:
It's been a few days I cannot compile to get R-2.12.0 working at sparc Solaris 10. Seems the R software installation is OK, but the recommended package called Matrix stopped me, since I can finish the installation with the configure option -with-recommended-packages=no. I then run
Is this a 32-bit or 64-bit build? Is it Sun Studio or gcc? There are issues with the R libraries when built with Sun Studio - they have relocations to read-only segments. So info at http://trac.sagemath.org/sage_trac/ticket/9040 However, the issues I have seem to be different to yours, so I expect you are either using Sun Studio or you are using a 32-bit build. Dave
On 11/ 9/10 10:30 PM, Dr. David Kirkby wrote:
On 11/ 9/10 09:22 PM, Zhang,Jun wrote:
It's been a few days I cannot compile to get R-2.12.0 working at sparc Solaris 10. Seems the R software installation is OK, but the recommended package called Matrix stopped me, since I can finish the installation with the configure option -with-recommended-packages=no. I then run
Is this a 32-bit or 64-bit build? Is it Sun Studio or gcc? There are issues with the R libraries when built with Sun Studio - they have relocations to read-only segments.
I meant the issues are with gcc - SunStudio is ok. I would be nice to be able to build R with gcc though. I know the gcc compiler is inferior, but some systems don't have SunStudio. For a project like Sage, we have 100 packages, and R is the only one that needs SunStudio to build. (I'd rather build the whole of Sage with SunStudio, but there are too many GNUisms for that). So I might have to use two compilers, which is a real pain in the butt Dave
I don't see enough information to help here, and this is rather an R-devel topic (see the posting guide for the difference). Which compiler and which version? What level of optimization and other compiler flags? 32- or 64-bit build? The Sun Studio compiler works (see the R-admin manual and the package tests on CRAN), but Matrix does segfault in its tests on 32-bit Sparc. 32-bit gcc is less reliable, but it is currently working for me with gcc 4.3.3 from OpenCSW. As a first step, compare the flags you used with those documented in the R-admin manual, and perhaps try minimal levels of optimization. And please follow up to R-devel.
On Tue, 9 Nov 2010, Zhang,Jun wrote:
It's been a few days I cannot compile to get R-2.12.0 working at
sparc Solaris 10. Seems the R software installation is OK, but the
recommended package called Matrix stopped me, since I can finish the
installation with the configure option
-with-recommended-packages=no. I then run
? Install.packages("Matrix")
Then last few lines of output are the following,
28: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call)[1L] prefix <- paste("Error in", dcall, ": ") LONG <- 75L msg <- conditionMessage(e) sm <- strsplit(msg, "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste(prefix, "\n ", sep = "") } else prefix <- "Error : " msg <- paste(prefix, conditionMessage(e), "\n", sep = "") .Internal(seterrmessage(msg[1L])) if (!silent && identical(getOption("show.error.messages"), TRUE)) { cat(msg, file = stderr()) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error"))})
29: try(.install_package_indices(".", instdir))
30: do_install_source(pkg_name, instdir, pkg, desc)
31: do_install(pkg)
32: tools:::.install_packages()
aborting ...
Segmentation Fault - core dumped
The downloaded packages are in
'/tmp/RtmpVwIBsr/downloaded_packages'
Updating HTML index of packages in '.Library'
Warning message:
In install.packages("Matrix") :
installation of package 'Matrix' had non-zero exit status
Library() will show Matrix as an entry.
require(Matrix)
Loading required package: Matrix
Loading required package: lattice
*** caught segfault ***
address 1800000, cause 'memory not mapped'
Segmentation Fault (core dumped)
Jun Zhang
[[alternative HTML version deleted]]
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
Thank you Dave for the reply. I used solstudio12.2, and followed the R admin installation instruction for Solaris. When I run R as the compiled result, there is a line "Platform: sparc-sun-solaris2.10 (32-bit)". Jun CC="cc -xc99" CPPFLAGS="-I/opt/csw/include" CFLAGS="-O -xlibmieee" F77=f95 FFLAGS=-O4 CXX="CC -library=stlport4" CXXFLAGS=-O FC=f95 FCFLAGS=$FFLAGS LDFLAGS="-L/opt/csw/lib" export CC CPPFLAGS CFLAGS F77 FFLAGS CXX CXXFLAGS FC FCFLAGS LDFLAGS ./configure --prefix=/apps/R-2.12.0 --with-tcl-config=/opt/csw/lib/tclConfig.sh --with-tk-config=/opt/csw/lib/tkConfig.sh --disable-nls --with-recommended-packages=no -----Original Message----- From: Dr. David Kirkby [mailto:david.kirkby at onetel.net] Sent: Tuesday, November 09, 2010 5:07 PM To: Zhang,Jun; r-help at r-project.org Subject: Re: [R] R-2.12.0 problem on Solaris 10
On 11/ 9/10 10:30 PM, Dr. David Kirkby wrote:
On 11/ 9/10 09:22 PM, Zhang,Jun wrote:
It's been a few days I cannot compile to get R-2.12.0 working at sparc Solaris 10. Seems the R software installation is OK, but the recommended package called Matrix stopped me, since I can finish the installation with the configure option -with-recommended-packages=no. I then run
Is this a 32-bit or 64-bit build? Is it Sun Studio or gcc? There are issues with the R libraries when built with Sun Studio - they have relocations to read-only segments.
I meant the issues are with gcc - SunStudio is ok. I would be nice to be able to build R with gcc though. I know the gcc compiler is inferior, but some systems don't have SunStudio. For a project like Sage, we have 100 packages, and R is the only one that needs SunStudio to build. (I'd rather build the whole of Sage with SunStudio, but there are too many GNUisms for that). So I might have to use two compilers, which is a real pain in the butt Dave
I used solstudio12.2 to build 32-bit R. How do you get around the Matrix segfault? -----Original Message----- From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Sent: Wednesday, November 10, 2010 12:46 AM To: Zhang,Jun Cc: 'r-help at r-project.org' Subject: Re: [R] R-2.12.0 problem on Sparc Solaris 10 I don't see enough information to help here, and this is rather an R-devel topic (see the posting guide for the difference). Which compiler and which version? What level of optimization and other compiler flags? 32- or 64-bit build? The Sun Studio compiler works (see the R-admin manual and the package tests on CRAN), but Matrix does segfault in its tests on 32-bit Sparc. 32-bit gcc is less reliable, but it is currently working for me with gcc 4.3.3 from OpenCSW. As a first step, compare the flags you used with those documented in the R-admin manual, and perhaps try minimal levels of optimization. And please follow up to R-devel.
On Tue, 9 Nov 2010, Zhang,Jun wrote:
It's been a few days I cannot compile to get R-2.12.0 working at
sparc Solaris 10. Seems the R software installation is OK, but the
recommended package called Matrix stopped me, since I can finish the
installation with the configure option
-with-recommended-packages=no. I then run
? Install.packages("Matrix")
Then last few lines of output are the following,
28: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call)[1L] prefix <- paste("Error in", dcall, ": ") LONG <- 75L msg <- conditionMessage(e) sm <- strsplit(msg, "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste(prefix, "\n ", sep = "") } else prefix <- "Error : " msg <- paste(prefix, conditionMessage(e), "\n", sep = "") .Internal(seterrmessage(msg[1L])) if (!silent && identical(getOption("show.error.messages"), TRUE)) { cat(msg, file = stderr()) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error"))})
29: try(.install_package_indices(".", instdir))
30: do_install_source(pkg_name, instdir, pkg, desc)
31: do_install(pkg)
32: tools:::.install_packages()
aborting ...
Segmentation Fault - core dumped
The downloaded packages are in
'/tmp/RtmpVwIBsr/downloaded_packages'
Updating HTML index of packages in '.Library'
Warning message:
In install.packages("Matrix") :
installation of package 'Matrix' had non-zero exit status
Library() will show Matrix as an entry.
require(Matrix)
Loading required package: Matrix
Loading required package: lattice
*** caught segfault ***
address 1800000, cause 'memory not mapped'
Segmentation Fault (core dumped)
Jun Zhang
[[alternative HTML version deleted]]
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