Primary informations
Username: $cottierf
Cluster: $bamboo
Description
Hello. I am trying to install the packages sf, and its dependencies “units” on R/4.4.2
When I trying to run the command, I am running into the error, below. Spefically, when attempting to load the package after built, R throws a *** caught illegal operation ***
address 0x15004256bc0d, cause illegal operand error. No sure what is going wrong…
Steps to Reproduce
module load GCC/13.3.0 OpenMPI/5.0.3 GEOS/3.12.2 GDAL/3.10.0 PROJ/9.4.1 CMake/3.29.3 UDUNITS/2.2.26 R/4.4.2
R
install.packages(“sf”)
Expected Result
The R sf packages includes the critical dependency R “units” should install correctly. However, it fails (see error message below and sessionInfo() outputs at the bottom).
Actual Results
Error message received, when installing R dependency package “units” (depends on system library udunits2):
trying URL ‘https://stat.ethz.ch/CRAN/src/contrib/units_1.0-0.tar.gz’
Content type ‘application/x-gzip’ length 367179 bytes (358 KB)downloaded 358 KB
trying URL ‘https://stat.ethz.ch/CRAN/src/contrib/sf_1.0-22.tar.gz’
Content type ‘application/x-gzip’ length 9874803 bytes (9.4 MB)downloaded 9.4 MB
- installing source package ‘units’ …
** package ‘units’ successfully unpacked and MD5 sums checked
** using staged installation
configure: units: 1.0-0
checking for default C++ standard… 201703
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 the compiler supports GNU C++… yes
checking whether g++ -std=gnu++17 accepts -g… yes
checking for g++ -std=gnu++17 option to enable C++11 features… none needed
checking for stdio.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for strings.h… yes
checking for sys/stat.h… yes
checking for sys/types.h… yes
checking for unistd.h… yes
checking for _Bool… no
checking for stdbool.h that conforms to C99 or later… yes
checking for error_at_line… yes
checking for gcc… gcc
checking whether the compiler supports GNU C… yes
checking whether gcc accepts -g… yes
checking for gcc option to enable C11 features… none needed
checking for brew… no
checking for XML_ParserCreate in -lexpat… yes
checking for udunits2.h… yes
checking for ut_read_xml in -ludunits2… yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C++ compiler: ‘g++ (GCC) 13.3.0’
g++ -std=gnu++17 -I"/opt/ebsofts/R/4.4.2-gfbf-2024a/lib64/R/include" -DNDEBUG -DUDUNITS2_DIR=0 -I’/home/users/c/cottierf/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include’ -I/opt/ebsofts/FriBidi/1.0.15-GCCcore-13.3.0/include -I/opt/ebsofts/HarfBuzz/9.0.0-GCCcore-13.3.0/include -I/opt/ebsofts/Tk/8.6.14-GCCcore-13.3.0/include -I/opt/ebsofts/cURL/8.7.1-GCCcore-13.3.0/include -I/opt/ebsofts/OpenSSL/3/include -I/opt/ebsofts/libgit2/1.8.1-GCCcore-13.3.0/include -I/opt/ebsofts/Java/17.0.2/include -I/opt/ebsofts/LibTIFF/4.6.0-GCCcore-13.3.0/include -I/opt/ebsofts/libjpeg-turbo/3.0.1-GCCcore-13.3.0/include -I/opt/ebsofts/libpng/1.6.43-GCCcore-13.3.0/include -I/opt/ebsofts/PCRE2/10.43-GCCcore-13.3.0/include -I/opt/ebsofts/SQLite/3.45.3-GCCcore-13.3.0/include -I/opt/ebsofts/zlib/1.3.1-GCCcore-13.3.0/include -I/opt/ebsofts/XZ/5.4.5-GCCcore-13.3.0/include -I/opt/ebsofts/bzip2/1.0.8-GCCcore-13.3.0/include -I/opt/ebsofts/ncurses/6.5-GCCcore-13.3.0/include -I/opt/ebsofts/libreadline/8.2-GCCcore-13.3.0/include -I/opt/ebsofts/cairo/1.18.0-GCCcore-13.3.0/include -I/opt/ebsofts/libGLU/9.0.3-GCCcore-13.3.0/include -I/opt/ebsofts/Mesa/24.1.3-GCCcore-13.3.0/include -I/opt/ebsofts/X11/20240607-GCCcore-13.3.0/include -I/opt/ebsofts/pkgconf/2.2.0-GCCcore-13.3.0/include -I/opt/ebsofts/FFTW/3.3.10-GCC-13.3.0/include -I/opt/ebsofts/FlexiBLAS/3.4.4-GCC-13.3.0/include -I/opt/ebsofts/FlexiBLAS/3.4.4-GCC-13.3.0/include/flexiblas -fpic -O2 -ftree-vectorize -march=native -fno-math-errno -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17 -I"/opt/ebsofts/R/4.4.2-gfbf-2024a/lib64/R/include" -DNDEBUG -DUDUNITS2_DIR=0 -I’/home/users/c/cottierf/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include’ -I/opt/ebsofts/FriBidi/1.0.15-GCCcore-13.3.0/include -I/opt/ebsofts/HarfBuzz/9.0.0-GCCcore-13.3.0/include -I/opt/ebsofts/Tk/8.6.14-GCCcore-13.3.0/include -I/opt/ebsofts/cURL/8.7.1-GCCcore-13.3.0/include -I/opt/ebsofts/OpenSSL/3/include -I/opt/ebsofts/libgit2/1.8.1-GCCcore-13.3.0/include -I/opt/ebsofts/Java/17.0.2/include -I/opt/ebsofts/LibTIFF/4.6.0-GCCcore-13.3.0/include -I/opt/ebsofts/libjpeg-turbo/3.0.1-GCCcore-13.3.0/include -I/opt/ebsofts/libpng/1.6.43-GCCcore-13.3.0/include -I/opt/ebsofts/PCRE2/10.43-GCCcore-13.3.0/include -I/opt/ebsofts/SQLite/3.45.3-GCCcore-13.3.0/include -I/opt/ebsofts/zlib/1.3.1-GCCcore-13.3.0/include -I/opt/ebsofts/XZ/5.4.5-GCCcore-13.3.0/include -I/opt/ebsofts/bzip2/1.0.8-GCCcore-13.3.0/include -I/opt/ebsofts/ncurses/6.5-GCCcore-13.3.0/include -I/opt/ebsofts/libreadline/8.2-GCCcore-13.3.0/include -I/opt/ebsofts/cairo/1.18.0-GCCcore-13.3.0/include -I/opt/ebsofts/libGLU/9.0.3-GCCcore-13.3.0/include -I/opt/ebsofts/Mesa/24.1.3-GCCcore-13.3.0/include -I/opt/ebsofts/X11/20240607-GCCcore-13.3.0/include -I/opt/ebsofts/pkgconf/2.2.0-GCCcore-13.3.0/include -I/opt/ebsofts/FFTW/3.3.10-GCC-13.3.0/include -I/opt/ebsofts/FlexiBLAS/3.4.4-GCC-13.3.0/include -I/opt/ebsofts/FlexiBLAS/3.4.4-GCC-13.3.0/include/flexiblas -fpic -O2 -ftree-vectorize -march=native -fno-math-errno -c tokenizer.cpp -o tokenizer.o
g++ -std=gnu++17 -I"/opt/ebsofts/R/4.4.2-gfbf-2024a/lib64/R/include" -DNDEBUG -DUDUNITS2_DIR=0 -I’/home/users/c/cottierf/R/x86_64-pc-linux-gnu-library/4.4/Rcpp/include’ -I/opt/ebsofts/FriBidi/1.0.15-GCCcore-13.3.0/include -I/opt/ebsofts/HarfBuzz/9.0.0-GCCcore-13.3.0/include -I/opt/ebsofts/Tk/8.6.14-GCCcore-13.3.0/include -I/opt/ebsofts/cURL/8.7.1-GCCcore-13.3.0/include -I/opt/ebsofts/OpenSSL/3/include -I/opt/ebsofts/libgit2/1.8.1-GCCcore-13.3.0/include -I/opt/ebsofts/Java/17.0.2/include -I/opt/ebsofts/LibTIFF/4.6.0-GCCcore-13.3.0/include -I/opt/ebsofts/libjpeg-turbo/3.0.1-GCCcore-13.3.0/include -I/opt/ebsofts/libpng/1.6.43-GCCcore-13.3.0/include -I/opt/ebsofts/PCRE2/10.43-GCCcore-13.3.0/include -I/opt/ebsofts/SQLite/3.45.3-GCCcore-13.3.0/include -I/opt/ebsofts/zlib/1.3.1-GCCcore-13.3.0/include -I/opt/ebsofts/XZ/5.4.5-GCCcore-13.3.0/include -I/opt/ebsofts/bzip2/1.0.8-GCCcore-13.3.0/include -I/opt/ebsofts/ncurses/6.5-GCCcore-13.3.0/include -I/opt/ebsofts/libreadline/8.2-GCCcore-13.3.0/include -I/opt/ebsofts/cairo/1.18.0-GCCcore-13.3.0/include -I/opt/ebsofts/libGLU/9.0.3-GCCcore-13.3.0/include -I/opt/ebsofts/Mesa/24.1.3-GCCcore-13.3.0/include -I/opt/ebsofts/X11/20240607-GCCcore-13.3.0/include -I/opt/ebsofts/pkgconf/2.2.0-GCCcore-13.3.0/include -I/opt/ebsofts/FFTW/3.3.10-GCC-13.3.0/include -I/opt/ebsofts/FlexiBLAS/3.4.4-GCC-13.3.0/include -I/opt/ebsofts/FlexiBLAS/3.4.4-GCC-13.3.0/include/flexiblas -fpic -O2 -ftree-vectorize -march=native -fno-math-errno -c udunits.cpp -o udunits.o
g++ -std=gnu++17 -shared -L/opt/ebsofts/R/4.4.2-gfbf-2024a/lib64/R/lib -L/opt/ebsofts/FriBidi/1.0.15-GCCcore-13.3.0/lib64 -L/opt/ebsofts/FriBidi/1.0.15-GCCcore-13.3.0/lib -L/opt/ebsofts/HarfBuzz/9.0.0-GCCcore-13.3.0/lib64 -L/opt/ebsofts/HarfBuzz/9.0.0-GCCcore-13.3.0/lib -L/opt/ebsofts/Tk/8.6.14-GCCcore-13.3.0/lib64 -L/opt/ebsofts/Tk/8.6.14-GCCcore-13.3.0/lib -L/opt/ebsofts/cURL/8.7.1-GCCcore-13.3.0/lib64 -L/opt/ebsofts/cURL/8.7.1-GCCcore-13.3.0/lib -L/opt/ebsofts/OpenSSL/3/lib64 -L/opt/ebsofts/OpenSSL/3/lib -L/opt/ebsofts/libgit2/1.8.1-GCCcore-13.3.0/lib64 -L/opt/ebsofts/libgit2/1.8.1-GCCcore-13.3.0/lib -L/opt/ebsofts/Java/17.0.2/lib64 -L/opt/ebsofts/Java/17.0.2/lib -L/opt/ebsofts/LibTIFF/4.6.0-GCCcore-13.3.0/lib64 -L/opt/ebsofts/LibTIFF/4.6.0-GCCcore-13.3.0/lib -L/opt/ebsofts/libjpeg-turbo/3.0.1-GCCcore-13.3.0/lib64 -L/opt/ebsofts/libjpeg-turbo/3.0.1-GCCcore-13.3.0/lib -L/opt/ebsofts/libpng/1.6.43-GCCcore-13.3.0/lib64 -L/opt/ebsofts/libpng/1.6.43-GCCcore-13.3.0/lib -L/opt/ebsofts/PCRE2/10.43-GCCcore-13.3.0/lib64 -L/opt/ebsofts/PCRE2/10.43-GCCcore-13.3.0/lib -L/opt/ebsofts/SQLite/3.45.3-GCCcore-13.3.0/lib64 -L/opt/ebsofts/SQLite/3.45.3-GCCcore-13.3.0/lib -L/opt/ebsofts/zlib/1.3.1-GCCcore-13.3.0/lib64 -L/opt/ebsofts/zlib/1.3.1-GCCcore-13.3.0/lib -L/opt/ebsofts/XZ/5.4.5-GCCcore-13.3.0/lib64 -L/opt/ebsofts/XZ/5.4.5-GCCcore-13.3.0/lib -L/opt/ebsofts/bzip2/1.0.8-GCCcore-13.3.0/lib64 -L/opt/ebsofts/bzip2/1.0.8-GCCcore-13.3.0/lib -L/opt/ebsofts/ncurses/6.5-GCCcore-13.3.0/lib64 -L/opt/ebsofts/ncurses/6.5-GCCcore-13.3.0/lib -L/opt/ebsofts/libreadline/8.2-GCCcore-13.3.0/lib64 -L/opt/ebsofts/libreadline/8.2-GCCcore-13.3.0/lib -L/opt/ebsofts/cairo/1.18.0-GCCcore-13.3.0/lib64 -L/opt/ebsofts/cairo/1.18.0-GCCcore-13.3.0/lib -L/opt/ebsofts/libGLU/9.0.3-GCCcore-13.3.0/lib64 -L/opt/ebsofts/libGLU/9.0.3-GCCcore-13.3.0/lib -L/opt/ebsofts/Mesa/24.1.3-GCCcore-13.3.0/lib64 -L/opt/ebsofts/Mesa/24.1.3-GCCcore-13.3.0/lib -L/opt/ebsofts/X11/20240607-GCCcore-13.3.0/lib64 -L/opt/ebsofts/X11/20240607-GCCcore-13.3.0/lib -L/opt/ebsofts/pkgconf/2.2.0-GCCcore-13.3.0/lib64 -L/opt/ebsofts/pkgconf/2.2.0-GCCcore-13.3.0/lib -L/opt/ebsofts/FFTW/3.3.10-GCC-13.3.0/lib64 -L/opt/ebsofts/FFTW/3.3.10-GCC-13.3.0/lib -L/opt/ebsofts/FlexiBLAS/3.4.4-GCC-13.3.0/lib64 -L/opt/ebsofts/FlexiBLAS/3.4.4-GCC-13.3.0/lib -L/opt/ebsofts/GCCcore/13.3.0/lib64 -L/opt/ebsofts/GCCcore/13.3.0/lib -o units.so RcppExports.o tokenizer.o udunits.o -lexpat -lexpat -ludunits2 -L/opt/ebsofts/R/4.4.2-gfbf-2024a/lib64/R/lib -lR
installing to /home/users/c/cottierf/R/x86_64-pc-linux-gnu-library/4.4/00LOCK-units/00new/units/libs
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location*** caught illegal operation ***
address 0x15004256bc0d, cause ‘illegal operand’Traceback:
1: ud_init(path)
2: load_units_xml()
3: fun(libname, pkgname)
4: doTryCatch(return(expr), name, parentenv, handler)
5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
6: tryCatchList(expr, classes, parentenv, handlers)
7: tryCatch(fun(libname, pkgname), error = identity)
8: runHook(“.onLoad”, env, package.lib, package)
9: loadNamespace(package, lib.loc)
10: doTryCatch(return(expr), name, parentenv, handler)
11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
12: tryCatchList(expr, classes, parentenv, handlers)
13: tryCatch({ attr(package, “LibPath”) ← which.lib.loc ns ← loadNamespace(package, lib.loc) env ← attachNamespace(ns, pos = pos, deps, exclude, include.only)}, 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 && !quietly) message(paste(“Error:”, msg), domain = NA) else stop(msg, call. = FALSE, domain = NA)})
14: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)
15: withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart(“muffleMessage”))
16: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE))
17: doTryCatch(return(expr), name, parentenv, handler)
18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
19: tryCatchList(expr, classes, parentenv, handlers)
20: 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))})
21: try(suppressPackageStartupMessages(library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)))
22: tools:::.test_load_package(“units”, “/home/users/c/cottierf/R/x86_64-pc-linux-gnu-library/4.4/00LOCK-units/00new”)
An irrecoverable exception occurred. R is aborting now …
ERROR: loading failed
- removing ‘/home/users/c/cottierf/R/x86_64-pc-linux-gnu-library/4.4/units’
ERROR: dependency ‘units’ is not available for package ‘sf’- removing ‘/home/users/c/cottierf/R/x86_64-pc-linux-gnu-library/4.4/sf’
The downloaded source packages are in
‘/tmp/RtmpmgD2OA/downloaded_packages’
Warning messages:
1: In install.packages(“sf”) :
installation of package ‘units’ had non-zero exit status
2: In install.packages(“sf”) :
installation of package ‘sf’ had non-zero exit status
Some additional informations:
R> sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Rocky Linux 9.6 (Blue Onyx)Matrix products: default
BLAS/LAPACK: FlexiBLAS OPENBLAS; LAPACK version 3.12.0locale:
[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=Ctime zone: Europe/Zurich
tzcode source: system (glibc)attached base packages:
[1] stats graphics grDevices utils datasets methods baseother attached packages:
[1] Rcpp_1.1.0loaded via a namespace (and not attached):
[1] compiler_4.4.2 tools_4.4.2