Skip to content

Bug in R-install -- sysdata.rda

5 messages · Jeff Newmiller, Manu goswami, Ivan Krylov

#
Dear R Developers,

Building R from source has never been straight forward but now it has become impossible. Even when one compiles and links all files
Still below error is stopping completing build process. This certainly is deplorably mischievous. Please support to resolve immediately.

Cygwin  + win 10 -> error installing sysdata.rda , 64 BIT.


make[4]: Entering directory '/cygdrive/c/ons_1/e2/4.1.2/src/library/tools'
installing 'sysdata.rda'

*** caught segfault ***
address 0x18, cause 'memory not mapped'

Traceback:
1: .Call(PS_sigs, 1L)
2: eval(exprs[i], envir)
3: eval(exprs[i], envir)
4: sys.source(codeFile, env, keep.source = keep.source, keep.parse.data = keep.parse.data)
5: doTryCatch(return(expr), name, parentenv, handler)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: tryCatchList(expr, classes, parentenv, handlers)
8: 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, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\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 <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
9: try(sys.source(codeFile, env, keep.source = keep.source, keep.parse.data = keep.parse.data))
10: loadNamespace(x)
An irrecoverable exception occurred. R is aborting now ...
/bin/sh: line 1: 52047 Done                    echo "tools:::sysdata2LazyLoadDB(\"./R/sysdata.rda\",\"../../../library/tools/R\")"
     52048 Segmentation fault      (core dumped) | R_DEFAULT_PACKAGES=NULL LC_ALL=C R_ENABLE_JIT=0 TZ=UTC ../../../bin/R --vanilla --no-echo
make[4]: *** [../../../share/make/basepkg.mk:151: sysdata] Error 139
make[4]: Leaving directory '/cygdrive/c/ons_1/e2/4.1.2/src/library/tools'
make[3]: *** [Makefile:36: all] Error 2
make[3]: Leaving directory '/cygdrive/c/ons_1/e2/4.1.2/src/library/tools'
make[2]: *** [Makefile:37: R] Error 1
make[2]: Leaving directory '/cygdrive/c/ons_1/e2/4.1.2/src/library'
make[1]: *** [Makefile:28: R] Error 1
make[1]: Leaving directory '/cygdrive/c/ons_1/e2/4.1.2/src'
make: *** [Makefile:61: R] Error 1

Warm Regards,
Manu
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
#
Please don't post to multiple lists at once... this is widely frowned on by many mailing lists. If you simply read the Posting Guide it will inform you that you should post questions "related to compiling" on r-devel.

I also recommend that you read the R Administration and Installation manual, because I don't think cygwin is actually a supported platform... the Rtools development tool chain is the supported approach for building on Windows.
On March 20, 2022 12:54:59 AM PDT, Manu goswami <manugoswami at hotmail.com> wrote:

  
    
#
Hi Jeff,

Thanks for the reply.

It's really a maze just getting any sort of developer related help for r. I am still not able to understand where to post what.


There is a cygwin port of r. I have managed to build in cygwin till r executional file though it fails to run. Rscript and rcmd also run.

How to get around this sysdata.rda problem? Any hint will be greatly appreciated.

Warm regards,
Manu

Get Outlook for Android<https://aka.ms/ghei36>
#
I have no idea. As I said, you posted in the wrong mailing lists... you don't have the right audience here. As for a maze, the Posting Guide seems clear enough to me.
On March 21, 2022 4:33:36 AM PDT, Manu goswami <manugoswami at hotmail.com> wrote:

  
    
#
On Mon, 21 Mar 2022 11:33:36 +0000
Manu goswami <manugoswami at hotmail.com> wrote:

            
We don't have an "R administration" mailing list, so R-devel
<https://www.r-project.org/mail.html#r-devel> seems to be a good bet.

Two bits of advice (but we should really continue in R-devel):

1. You're on Windows 10, so if you really need R running in a
Linux-like environment ASAP (why else run Cygwin?), consider Windows
Subsystem for Linux. It's not as slow as a virtual machine. 

2. Have you tried following the cygport for R-4.1.2? If you download
the source package (R-4.1.2-1-src.tar.xz) from your preferred mirror,
there's a few patches that may be needed to adjust the compiler flags to
get your build of R working.