[R] Failed to install RQuantLib in Ubuntu machine

Christofer Bogaso bog@@o@chri@tofer @ending from gm@il@com
Wed Jan 2 22:46:58 CET 2019


Hi,

I was trying to install RQuantLib in my Ubuntu machine which failed with
below information :

*> install.packages('RQuantLib', INSTALL_opts = c('--no-lock'))*

*Installing package into ‘/usr/local/lib/R/site-library’*

*(as ‘lib’ is unspecified)*

*trying URL 'https://cloud.r-project.org/src/contrib/RQuantLib_0.4.7.tar.gz
<https://cloud.r-project.org/src/contrib/RQuantLib_0.4.7.tar.gz>'*

*Content type 'application/x-gzip' length 189726 bytes (185 KB)*

*==================================================*

*downloaded 185 KB*


** installing *source* package ‘RQuantLib’ ...*

*** package ‘RQuantLib’ successfully unpacked and MD5 sums checked*

*checking whether the C++ compiler works... yes*

*checking for C++ compiler default output file name... a.out*

*checking for suffix of executables... *

*checking whether we are cross compiling... no*

*checking for suffix of object files... o*

*checking whether we are using the GNU C++ compiler... yes*

*checking whether g++ accepts -g... yes*

*checking how to run the C++ preprocessor... g++ -E*

*checking whether we are using the GNU C++ compiler... (cached) yes*

*checking whether g++ accepts -g... (cached) yes*

*checking for R... yes*

*checking for quantlib-config... yes*

*checking for Boost development files... yes*

*checking for minimal Boost version... yes*

*configure: creating ./config.status*

*config.status: creating src/Makevars*

*Completed configuration and ready to build.*

*** libs*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
RcppExports.cpp -o RcppExports.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
affine.cpp -o affine.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
asian.cpp -o asian.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
barrier_binary.cpp -o barrier_binary.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
bermudan.cpp -o bermudan.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
bonds.cpp -o bonds.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
calendars.cpp -o calendars.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
curves.cpp -o curves.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
dates.cpp -o dates.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
daycounter.cpp -o daycounter.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
discount.cpp -o discount.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
hullwhite.cpp -o hullwhite.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
implieds.cpp -o implieds.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
modules.cpp -o modules.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
sabr.cpp -o sabr.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
schedule.cpp -o schedule.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
utils.cpp -o utils.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
vanilla.cpp -o vanilla.o*

*g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG
-I"/usr/local/lib/R/site-library/Rcpp/include"   -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -g  -I/usr/local/include -fpermissive -I../inst/include
-I. -DBOOST_NO_AUTO_PTR -fopenmp -fpic  -g -O2 -fstack-protector-strong
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c
zero.cpp -o zero.o*

*g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions
-Wl,-z,relro -o RQuantLib.so RcppExports.o affine.o asian.o
barrier_binary.o bermudan.o bonds.o calendars.o curves.o dates.o
daycounter.o discount.o hullwhite.o implieds.o modules.o sabr.o schedule.o
utils.o vanilla.o zero.o -L/usr/local/lib -lQuantLib -fopenmp
-L/usr/lib/R/lib -lR*

*installing to /usr/local/lib/R/site-library/RQuantLib/libs*

*** R*

*** data*

*** demo*

*** inst*

*** preparing package for lazy loading*

*** help*

**** installing help indices*

*** building package indices*

*** testing if installed package can be loaded*


* *** caught segfault ****

*address 0x7f57dba1d9a0, cause 'invalid permissions'*


*Traceback:*

* 1: dyn.load(file, DLLpath = DLLpath, ...)*

* 2: library.dynam(lib, package, package.lib)*

* 3: loadNamespace(package, lib.loc)*

* 4: doTryCatch(return(expr), name, parentenv, handler)*

* 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])*

* 6: tryCatchList(expr, classes, parentenv, handlers)*

* 7: tryCatch({    attr(package, "LibPath") <- which.lib.loc    ns <-
loadNamespace(package, lib.loc)    env <- attachNamespace(ns, pos = pos,
deps)}, error = function(e) {    P <- if (!is.null(cc <- conditionCall(e)))
        paste(" in", deparse(cc)[1L])    else ""    msg <-
gettextf("package or namespace load failed for %s%s:\n %s",
sQuote(package), P, conditionMessage(e))    if (logical.return)
message(paste("Error:", msg), domain = NA)    else stop(msg, call. = FALSE,
domain = NA)})*

* 8: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return
= TRUE)*

* 9: withCallingHandlers(expr, packageStartupMessage = function(c)
invokeRestart("muffleMessage"))*

*10: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,
character.only = TRUE, logical.return = TRUE))*

*11: doTryCatch(return(expr), name, parentenv, handler)*

*12: tryCatchOne(expr, names, parentenv, handlers[[1L]])*

*13: tryCatchList(expr, classes, parentenv, handlers)*

*14: 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
<http://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 &&
identical(getOption("show.error.messages"),         TRUE)) {
cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }
invisible(structure(msg, class = "try-error", condition = e))})*

*15: try(suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,
  character.only = TRUE, logical.return = TRUE)))*

*16: tools:::.test_load_package("RQuantLib",
"/usr/local/lib/R/site-library")*

*An irrecoverable exception occurred. R is aborting now ...*

*Segmentation fault (core dumped)*

*ERROR: loading failed*

** removing ‘/usr/local/lib/R/site-library/RQuantLib’*


*The downloaded source packages are in*

* ‘/tmp/RtmpPvzBa6/downloaded_packages’*

*Warning message:*

*In install.packages("RQuantLib", INSTALL_opts = c("--no-lock")) :*

*  installation of package ‘RQuantLib’ had non-zero exit status*


* Below is my SessionInfo :*


> sessionInfo()

R version 3.4.4 (2018-03-15)

Platform: x86_64-pc-linux-gnu (64-bit)

Running under: Ubuntu 16.04.4 LTS


Matrix products: default

BLAS: /usr/lib/libblas/libblas.so.3.6.0

LAPACK: /usr/lib/lapack/liblapack.so.3.6.0


locale:

 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C

 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8

 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8

 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C

 [9] LC_ADDRESS=C               LC_TELEPHONE=C

[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C


attached base packages:

[1] stats     graphics  grDevices utils     datasets  methods   base


loaded via a namespace (and not attached):

[1] compiler_3.4.4 tools_3.4.4


Any help will be highly appreciated. Thank,

	[[alternative HTML version deleted]]



More information about the R-help mailing list