Skip to content
Prev 60817 / 63424 Next

Trying to compile R 4.2.x on Linux as 32bit sub-architecture

G'day all,

On Sat, 18 Jun 2022 22:58:19 +0800
Berwin A Turlach <Berwin.Turlach at gmail.com> wrote:

            
Mmh, on the web-interface to the mailing list I see that the attachment
might have been deleted.  Perhaps because it was too large?

So below the start and the final part from reg-tests-1d.Rout.fail which
shows where the error occurs.

Cheers,
	
	Berwin

----------------------------
R version 4.2.1 RC (2022-06-17 r82501) -- "Funny-Looking Kid"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu/32 (32-bit)

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 and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[...very large snip...]
[1] Inf
[1] -1e+308   0e+00  1e+308
[1] -1e+308 -5e+307   0e+00  5e+307  1e+308
+           is.finite(mdp <- mean(dps)),
+           all.equal(dd, mdp, tolerance=1e-15))
+           -8 <= relD, relD <= 8) # seen [-1.5,.., 3.0]; w/o long-double: [-5, .., 4]
+     n <- ns[i.n]
+     cat("n = ", n,":\n--------\n")
+     pBL <- lapply(f., function(f) structure(pretty(c(f*1e308, 2^1023.9), n), f=f))
+     ## -> a warning per f
+     n.s <- lengths(pBL) # how close to target 'n' ??
+     cat("lengths(.) in [", fmtRng(n.s), "]\n")
+     if(n <= 15) stopifnot(n.s <= 20)# seen {14,..,17}
+     else stopifnot(abs(n.s/n - 1) <= 1/2)
+     if(n) cat("length(.) <> n relative err in [", fmtRng(n.s/n - 1), "]\n")
+     ## .pretty(*, bounds=FALSE) :
+     prM <- t(sapply(f.nm, function(f)
+         unlist( .pretty(c(f*1e308, 2^1023.9), n, bounds=FALSE) )))
+     print(prM)
+     luM <- prM[,c("ns","nu")] * prM[,"unit"] # the pretty-scaled unit
+     r1 <- luM[,"ns"] / (f.nm*1e308)
+     rr[i.n, 1:2] <- r1 <- range(r1)
+     cat(sprintf("range(r1): [%g, %g]\n", r1[1], r1[2]))
+     r2 <- luM[,"nu"] / 2^1023.9
+     rr[i.n, 3:4] <- r2 <- range(r2)
+     cat(sprintf("range(r2): [%g, %g]\n", r2[1], r2[2]))
+     stopifnot(exprs = { is.matrix(prM)
+             prM[,"nu"] - prM[,"ns"] == prM[,"n"] # could differ, but not for this data
+             identical(colnames(prM), c("ns", "nu", "n", "unit"))
+             ## These bounds depend on 'n' :
+             r1 >= if(n <= 12) 0.55 else 0.89
+             r1 <= if(n <= 15) 1.4  else 1.1
+             r2 >= if(n <= 12) 0.58 else 0.95
+             r2 <= if(n <= 15) 1    else 1.025
+     })
+     invisible(lapply(pBL, function(ps) {
+         mdB <- sum((dB <- diff(ps))/length(dB))
+         rd <- dB/mdB - 1 # relative differences
+         ## print(range(rd))
+         x <- c(attr(ps,"f")*1e308, 2^1023.9)
+         stopifnot(if(n >= 1) abs(rd) <= n * 3e-15 else TRUE,
+                   ps[1] <= x[1] , x[2] <= ps[length(ps)])
+     }))
+ }
n =  2 :
--------
Warning in pretty.default(c(f * 1e+308, 2^1023.9), n) :
  R_pretty(): very large range 'cell'=1.73715e+308, corrected to 1.43815e+308
Warning in pretty.default(c(f * 1e+308, 2^1023.9), n) :
  R_pretty(): very large range 'cell'=1.73365e+308, corrected to 1.43815e+308
Warning in pretty.default(c(f * 1e+308, 2^1023.9), n) :
  R_pretty(): very large range 'cell'=1.71365e+308, corrected to 1.43815e+308
Warning in pretty.default(c(f * 1e+308, 2^1023.9), n) :
  R_pretty(): very large range 'cell'=1.68865e+308, corrected to 1.43815e+308
Warning in pretty.default(c(f * 1e+308, 2^1023.9), n) :
  R_pretty(): very large range 'cell'=1.63865e+308, corrected to 1.43815e+308
Warning in pretty.default(c(f * 1e+308, 2^1023.9), n) :
  R_pretty(): very large range 'cell'=1.58865e+308, corrected to 1.43815e+308
Warning in pretty.default(c(f * 1e+308, 2^1023.9), n) :
  R_pretty(): very large range 'cell'=1.53865e+308, corrected to 1.43815e+308
Warning in pretty.default(c(f * 1e+308, 2^1023.9), n) :
  R_pretty(): very large range 'cell'=1.48865e+308, corrected to 1.43815e+308
Warning in pretty.default(c(f * 1e+308, 2^1023.9), n) :
  R_pretty(): very large range 'cell'=1.43865e+308, corrected to 1.43815e+308
lengths(.) in [ 1, 3 ]
length(.) <> n relative err in [ -0.5,  0.5 ]
Warning in .pretty(c(f * 1e+308, 2^1023.9), n, bounds = FALSE) :
  R_pretty(): very large range 'cell'=1.73715e+308, corrected to 1.43815e+308
Warning in .pretty(c(f * 1e+308, 2^1023.9), n, bounds = FALSE) :
  R_pretty(): very large range 'cell'=1.73365e+308, corrected to 1.43815e+308
Warning in .pretty(c(f * 1e+308, 2^1023.9), n, bounds = FALSE) :
  R_pretty(): very large range 'cell'=1.71365e+308, corrected to 1.43815e+308
Warning in .pretty(c(f * 1e+308, 2^1023.9), n, bounds = FALSE) :
  R_pretty(): very large range 'cell'=1.68865e+308, corrected to 1.43815e+308
Warning in .pretty(c(f * 1e+308, 2^1023.9), n, bounds = FALSE) :
  R_pretty(): very large range 'cell'=1.63865e+308, corrected to 1.43815e+308
Warning in .pretty(c(f * 1e+308, 2^1023.9), n, bounds = FALSE) :
  R_pretty(): very large range 'cell'=1.58865e+308, corrected to 1.43815e+308
Warning in .pretty(c(f * 1e+308, 2^1023.9), n, bounds = FALSE) :
  R_pretty(): very large range 'cell'=1.53865e+308, corrected to 1.43815e+308
Warning in .pretty(c(f * 1e+308, 2^1023.9), n, bounds = FALSE) :
  R_pretty(): very large range 'cell'=1.48865e+308, corrected to 1.43815e+308
Warning in .pretty(c(f * 1e+308, 2^1023.9), n, bounds = FALSE) :
  R_pretty(): very large range 'cell'=1.43865e+308, corrected to 1.43815e+308
       ns nu n   unit
-1.797  0  0 0    Inf
-1.79   0  0 0    Inf
-1.75   0  0 0    Inf
-1.7    0  0 0    Inf
-1.6    0  0 0    Inf
-1.5    0  0 0    Inf
-1.4    0  0 0    Inf
-1.3    0  0 0    Inf
-1.2    0  0 0    Inf
-1.1   -1  1 2 1e+308
-1     -1  1 2 1e+308
range(r1): [NaN, NaN]
range(r2): [NaN, NaN]
Error: r1 >= if (n <= 12) 0.55 else 0.89 are not all TRUE
Execution halted