* installing *source* package ‘spNetwork’ ... ** using staged installation ** libs using C++ compiler: ‘Debian clang version 19.1.1 (1)’ using C++17 clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c RcppExports.cpp -o RcppExports.o clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c base_kernel_funtions.cpp -o base_kernel_funtions.o clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c border_correction.cpp -o border_correction.o clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c bw_selection_nkde.cpp -o bw_selection_nkde.o bw_selection_nkde.cpp:37:7: warning: unused variable 'depth' [-Wunused-variable] 37 | int depth = 0; | ^~~~~ bw_selection_nkde.cpp:145:7: warning: unused variable 'depth' [-Wunused-variable] 145 | int depth = 0; | ^~~~~ bw_selection_nkde.cpp:267:7: warning: unused variable 'depth' [-Wunused-variable] 267 | int depth = 0; | ^~~~~ 3 warnings generated. clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c bw_selection_tnkde.cpp -o bw_selection_tnkde.o bw_selection_tnkde.cpp:41:7: warning: unused variable 'depth' [-Wunused-variable] 41 | int depth = 0; | ^~~~~ bw_selection_tnkde.cpp:172:8: warning: unused variable 'depth' [-Wunused-variable] 172 | int depth = 0; | ^~~~~ bw_selection_tnkde.cpp:188:11: warning: unused variable 'bw_net' [-Wunused-variable] 188 | double bw_net, bw_time; | ^~~~~~ bw_selection_tnkde.cpp:188:19: warning: unused variable 'bw_time' [-Wunused-variable] 188 | double bw_net, bw_time; | ^~~~~~~ bw_selection_tnkde.cpp:325:7: warning: unused variable 'depth' [-Wunused-variable] 325 | int depth = 0; | ^~~~~ bw_selection_tnkde.cpp:475:8: warning: unused variable 'depth' [-Wunused-variable] 475 | int depth = 0; | ^~~~~ bw_selection_tnkde.cpp:489:11: warning: unused variable 'bw_net' [-Wunused-variable] 489 | double bw_net, bw_time; | ^~~~~~ bw_selection_tnkde.cpp:489:19: warning: unused variable 'bw_time' [-Wunused-variable] 489 | double bw_net, bw_time; | ^~~~~~~ bw_selection_tnkde.cpp:643:7: warning: unused variable 'depth' [-Wunused-variable] 643 | int depth = 0; | ^~~~~ bw_selection_tnkde.cpp:846:8: warning: unused variable 'depth' [-Wunused-variable] 846 | int depth = 0; | ^~~~~ bw_selection_tnkde.cpp:856:8: warning: unused variable 'n_bw_net' [-Wunused-variable] 856 | int n_bw_net = bws_net.n_rows; | ^~~~~~~~ bw_selection_tnkde.cpp:857:8: warning: unused variable 'n_bw_time' [-Wunused-variable] 857 | int n_bw_time = bws_time.n_cols; | ^~~~~~~~~ bw_selection_tnkde.cpp:866:19: warning: unused variable 'bw_time' [-Wunused-variable] 866 | double bw_net, bw_time; | ^~~~~~~ bw_selection_tnkde.cpp:997:8: warning: unused variable 'n_net' [-Wunused-variable] 997 | int n_net = bws_net.n_rows; | ^~~~~ 14 warnings generated. clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c geometrical_functions.cpp -o geometrical_functions.o geometrical_functions.cpp:232:22: warning: unused variable 'x3' [-Wunused-variable] 232 | double x2,y2,x1,y1,x3,y3,dd; | ^~ geometrical_functions.cpp:232:25: warning: unused variable 'y3' [-Wunused-variable] 232 | double x2,y2,x1,y1,x3,y3,dd; | ^~ geometrical_functions.cpp:296:13: warning: unused variable 'dd' [-Wunused-variable] 296 | double d, dd, totald, dt, t; | ^~ geometrical_functions.cpp:296:17: warning: unused variable 'totald' [-Wunused-variable] 296 | double d, dd, totald, dt, t; | ^~~~~~ geometrical_functions.cpp:296:25: warning: unused variable 'dt' [-Wunused-variable] 296 | double d, dd, totald, dt, t; | ^~ geometrical_functions.cpp:296:29: warning: unused variable 't' [-Wunused-variable] 296 | double d, dd, totald, dt, t; | ^ geometrical_functions.cpp:298:7: warning: unused variable 'j' [-Wunused-variable] 298 | int j; | ^ geometrical_functions.cpp:299:10: warning: unused variable 'x2' [-Wunused-variable] 299 | double x2,y2,x1,y1,x3,y3; | ^~ geometrical_functions.cpp:299:13: warning: unused variable 'y2' [-Wunused-variable] 299 | double x2,y2,x1,y1,x3,y3; | ^~ geometrical_functions.cpp:299:16: warning: unused variable 'x1' [-Wunused-variable] 299 | double x2,y2,x1,y1,x3,y3; | ^~ geometrical_functions.cpp:299:19: warning: unused variable 'y1' [-Wunused-variable] 299 | double x2,y2,x1,y1,x3,y3; | ^~ geometrical_functions.cpp:299:22: warning: unused variable 'x3' [-Wunused-variable] 299 | double x2,y2,x1,y1,x3,y3; | ^~ geometrical_functions.cpp:299:25: warning: unused variable 'y3' [-Wunused-variable] 299 | double x2,y2,x1,y1,x3,y3; | ^~ geometrical_functions.cpp:412:31: warning: unused variable 'diff' [-Wunused-variable] 412 | float start_dist, end_dist, diff, line_length; | ^~~~ geometrical_functions.cpp:412:37: warning: unused variable 'line_length' [-Wunused-variable] 412 | float start_dist, end_dist, diff, line_length; | ^~~~~~~~~~~ geometrical_functions.cpp:943:9: warning: unused variable 'j' [-Wunused-variable] 943 | int i,j; | ^ geometrical_functions.cpp:1010:9: warning: unused variable 'j' [-Wunused-variable] 1010 | int i,j; | ^ 17 warnings generated. clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c k_and_g_func.cpp -o k_and_g_func.o k_and_g_func.cpp:295:13: warning: unused variable 'dtime' [-Wunused-variable] 295 | float dtime = breaks_time[j]; | ^~~~~ 1 warning generated. clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c k_and_g_func_time.cpp -o k_and_g_func_time.o k_and_g_func_time.cpp:248:7: warning: unused variable 'pts_number' [-Wunused-variable] 248 | int pts_number = wr.size(); | ^~~~~~~~~~ 1 warning generated. clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c matrices_functions.cpp -o matrices_functions.o clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c nkde_continuous.cpp -o nkde_continuous.o clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c nkde_discontinuous.cpp -o nkde_discontinuous.o clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c spatial_indexing.cpp -o spatial_indexing.o clang++-19 -stdlib=libc++ -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-lcxx/include" -DNDEBUG -I../inst/i -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppProgress/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -DSTRICT_R_HEADERS=1 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c spatial_indexing_export.cpp -o spatial_indexing_export.o clang++-19 -stdlib=libc++ -std=gnu++17 -shared -L/home/hornik/tmp/R-d-clang-lcxx/lib -Wl,-O1 -o spNetwork.so RcppExports.o base_kernel_funtions.o border_correction.o bw_selection_nkde.o bw_selection_tnkde.o geometrical_functions.o k_and_g_func.o k_and_g_func_time.o matrices_functions.o nkde_continuous.o nkde_discontinuous.o spatial_indexing.o spatial_indexing_export.o -L/home/hornik/tmp/R-d-clang-lcxx/lib -lR installing to /home/hornik/tmp/CRAN_special_clang19/spNetwork.Rcheck/00LOCK-spNetwork/00new/spNetwork/libs ** R ** data *** moving datasets to lazyload DB ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location *** caught segfault *** address (nil), cause 'unknown' Traceback: 1: Module(module, mustStart = TRUE, where = env) 2: doTryCatch(return(expr), name, parentenv, handler) 3: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 4: tryCatchList(expr, classes, parentenv, handlers) 5: tryCatch(Module(module, mustStart = TRUE, where = env), error = function(e) e) 6: loadModule(module = "spatial_index_cpp", what = TRUE, env = ns, loadNow = TRUE) 7: (function (ns) loadModule(module = "spatial_index_cpp", what = TRUE, env = ns, loadNow = TRUE))() 8: doTryCatch(return(expr), name, parentenv, handler) 9: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10: tryCatchList(expr, classes, parentenv, handlers) 11: tryCatch((function (ns) loadModule(module = "spatial_index_cpp", what = TRUE, env = ns, loadNow = TRUE))(), error = function(e) e) 12: eval(substitute(tryCatch(FUN(WHERE), error = function(e) e), list(FUN = f, WHERE = where)), where) 13: eval(substitute(tryCatch(FUN(WHERE), error = function(e) e), list(FUN = f, WHERE = where)), where) 14: .doLoadActions(where, attach) 15: methods::cacheMetaData(ns, TRUE, ns) 16: loadNamespace(package, lib.loc) 17: doTryCatch(return(expr), name, parentenv, handler) 18: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 19: tryCatchList(expr, classes, parentenv, handlers) 20: 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)}) 21: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) 22: withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage")) 23: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)) 24: doTryCatch(return(expr), name, parentenv, handler) 25: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 26: tryCatchList(expr, classes, parentenv, handlers) 27: 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))}) 28: try(suppressPackageStartupMessages(library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE))) 29: tools:::.test_load_package("spNetwork", "/home/hornik/tmp/CRAN_special_clang19/spNetwork.Rcheck/00LOCK-spNetwork/00new") An irrecoverable exception occurred. R is aborting now ... Segmentation fault ERROR: loading failed * removing ‘/home/hornik/tmp/CRAN_special_clang19/spNetwork.Rcheck/spNetwork’