[R] R-2.12.0 problem on Sparc Solaris 10

Zhang,Jun JHZhang at mdanderson.org
Wed Nov 10 15:58:58 CET 2010


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



More information about the R-help mailing list