swarm-lab / Rvision

Basic computer vision library for R
https://swarm-lab.github.io/Rvision/
GNU General Public License v3.0
142 stars 34 forks source link

Rvision installation failure (non-zero exit status) #97

Closed drefeld closed 3 months ago

drefeld commented 3 months ago

Bug description Rvision (0.8.0) install fails with non-zero exit status on Windows 10 (x64, build 19045, 22H2) with R (4.3.0), rtools43 and ROpenCVLite (4.90.1). See installation log below:

>   devtools::install_github("swarm-lab/Rvision")
Downloading GitHub repo swarm-lab/Rvision@HEAD
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\David\AppData\Local\Temp\RtmpE1ZaO0\remotes47404fe179d7\swarm-lab-Rvision-972627f/DESCRIPTION' (429ms)
─  preparing 'Rvision': (4.2s)
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts (584ms)
─  checking for empty or unneeded directories
─  building 'Rvision_0.8.0.tar.gz'
   Warning: file 'Rvision/configure' did not have execute permissions: corrected

Installing package into ‘C:/Users/David/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
* installing *source* package 'Rvision' ...
** using non-staged installation via StagedInstall field
+ set -e
+ C:/PROGRA~1/R/R-43~1.0/bin/x64/Rscript.exe -e 'if (nzchar(Sys.getenv('\''CI'\'')) & !ROpenCVLite::isOpenCVInstalled()) ROpenCVLite::installOpenCV(batch = TRUE)'
+ C:/PROGRA~1/R/R-43~1.0/bin/x64/Rscript.exe -e 'if (nzchar(Sys.getenv('\''CI'\'')) & ROpenCVLite::isOpenCVInstalled() & unlist(strsplit(as.character(utils::packageVersion('\''ROpenCVLite'\'')), '\''[.]'\''))[3] != gsub('\''[^0-9]'\'', '\'''\'', ROpenCVLite::opencvVersion())) ROpenCVLite::installOpenCV(batch = TRUE)'
+ C:/PROGRA~1/R/R-43~1.0/bin/x64/Rscript.exe -e 'if (!ROpenCVLite::isOpenCVInstalled()) { cat('\''------------------ OPENCV NOT FOUND --------------------\n'\'') ; cat('\''\n'\'') ; cat('\''OpenCV was not found in your library. Please install OpenCV as follows:'\'') ; cat('\''\n'\'') ; cat('\''\n'\'') ; cat('\''ROpenCVLite::installOpenCV(batch = TRUE)\n'\'') ; cat('\''\n'\'') ; cat('\''--------------------------------------------------------\n'\'') ; cat('\''\n'\'') ; stop('\''OpenCV not found.'\'') }'
+ C:/PROGRA~1/R/R-43~1.0/bin/x64/Rscript.exe -e '
  r_arch <- list.dirs(paste0(R.home(), '\''/bin'\''), FALSE, FALSE)
  opencv_arch <- ifelse(r_arch == '\''i386'\'', '\''x86'\'', '\''x64'\'')

  for (i in 1:length(opencv_arch)) {
    dest <- file.path('\''C:/Users/David/AppData/Local/R/win-library/4.3/Rvision'\'', paste0('\''libs/'\'', r_arch[i]))
    dir.create(dest, recursive = TRUE, showWarnings = FALSE)
    opencv_DLLs <- list.files(paste0(ROpenCVLite::OpenCVPath(), '\''/'\'', opencv_arch[i], '\''/mingw/bin'\''), '\''.dll'\'', full.names = TRUE)
    void <- lapply(opencv_DLLs, function(x) {
    file.copy(x, dest)
    })
  }
'
** libs
Warning: this package has a non-empty 'configure.ucrt' file,
so building only the main architecture

using C++ compiler: 'G__~1.EXE (GCC) 12.3.0'
g++ -std=gnu++17  -I"C:/PROGRA~1/R/R-43~1.0/include" -DNDEBUG -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\include\opencv2" -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\include" -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\x64\mingw\bin" -I'C:/Users/David/AppData/Local/R/win-library/4.3/Rcpp/include' -I'C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include'   -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -I"C:/Users/David/AppData/Local/R/win-library/4.3/Rcpp/include"   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17  -I"C:/PROGRA~1/R/R-43~1.0/include" -DNDEBUG -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\include\opencv2" -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\include" -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\x64\mingw\bin" -I'C:/Users/David/AppData/Local/R/win-library/4.3/Rcpp/include' -I'C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include'   -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -I"C:/Users/David/AppData/Local/R/win-library/4.3/Rcpp/include"   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c visionModule.cpp -o visionModule.o
g++ -std=gnu++17 -shared -s -static-libgcc -o Rvision.dll tmp.def RcppExports.o visionModule.o -LC:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\x64\mingw\lib -lopencv_calib3d490 -lopencv_core490 -lopencv_dnn490 -lopencv_features2d490 -lopencv_flann490 -lopencv_gapi490 -lopencv_highgui490 -lopencv_imgcodecs490 -lopencv_imgproc490 -lopencv_ml490 -lopencv_objdetect490 -lopencv_photo490 -lopencv_stitching490 -lopencv_video490 -lopencv_videoio490 -lopencv_wechat_qrcode490 -lopencv_ximgproc490 -LC:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools43/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-43~1.0/bin/x64 -lR
installing to C:/Users/David/AppData/Local/R/win-library/4.3/Rvision/libs/x64
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Creating a new generic function for 'exp' in package 'Rvision'
Creating a new generic function for 'log' in package 'Rvision'
Creating a new generic function for 'sqrt' in package 'Rvision'
Creating a new generic function for 'sum' in package 'Rvision'
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error: package or namespace load failed for 'Rvision' in .doLoadActions(where, attach):
 error in load action .__A__.12 for package Rvision: Rcpp::loadModule(module = "methods_Display", what = TRUE, env = ns, : Unable to load module "methods_Display": invalid type/length (symbol/0) in vector allocation
Error: loading failed
Execution halted
ERROR: loading failed
* removing 'C:/Users/David/AppData/Local/R/win-library/4.3/Rvision'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/David/AppData/Local/Temp/RtmpE1ZaO0/file474030452d7a/Rvision_0.8.0.tar.gz’ had non-zero exit status

To Reproduce devtools::install_github("swarm-lab/Rvision")

Expected behavior Installation should be successful.

Computer:

R:

Additional context Session Info:

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ROpenCVLite_4.90.1

loaded via a namespace (and not attached):
 [1] miniUI_0.1.1.1    compiler_4.3.0    promises_1.3.0    Rcpp_1.0.13       stringr_1.5.1     callr_3.7.6      
 [7] later_1.3.2       fastmap_1.2.0     mime_0.12         R6_2.5.1          curl_5.2.1        htmlwidgets_1.6.4
[13] desc_1.4.3        profvis_0.3.8     shiny_1.9.0       rlang_1.1.4       cachem_1.1.0      stringi_1.8.4    
[19] httpuv_1.6.15     fs_1.6.4          pkgload_1.4.0     memoise_2.0.1     cli_3.6.3         magrittr_2.0.3   
[25] ps_1.7.7          processx_3.8.4    digest_0.6.36     rstudioapi_0.16.0 xtable_1.8-4      remotes_2.5.0    
[31] devtools_2.4.5    lifecycle_1.0.4   vctrs_0.6.5       glue_1.7.0        urlchecker_1.0.1  sessioninfo_1.2.2
[37] pkgbuild_1.4.4    purrr_1.0.2       tools_4.3.0       usethis_3.0.0     ellipsis_0.3.2    htmltools_0.5.8.1
sjmgarnier commented 3 months ago

@drefeld I can confirm the problem. It looks similar to #96 on Mac. I haven't touched anything in a while so I guess that a recent update to Rcpp (maybe) messed things up. I'll have to investigate further. Not sure how soon that will be though.

sjmgarnier commented 3 months ago

@drefeld The problem is confirmed to come from Rcpp. It disappears if you revert to version 1.0.12 with:

devtools::install_version("Rcpp", "1.0.12")

I will report to the Rcpp devs, and see if they can explain the problem with the latest version (1.0.13) of their package.

drefeld commented 3 months ago

Thanks for getting back to the issue this quickly!

Reverting back to an older Rcpp version works for me, too.

sjmgarnier commented 3 months ago

@drefeld No problem. I found the guilty function and pushed a fix in 09d65a9. I will push it to the main branch soon but you can already install it from the develop branch.

drefeld commented 3 months ago

I updated to Rcpp 1.0.13 and tried to install the development branch but I encountered another issue that seems to come from RcppArmadillo (14.0.0-1) (see below).

>   # Rvision install
>   devtools::install_github("swarm-lab/Rvision@develop")
Downloading GitHub repo swarm-lab/Rvision@develop
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\David\AppData\Local\Temp\RtmpGSj3fW\remotes430426fb5584\swarm-lab-Rvision-64efea5/DESCRIPTION' (453ms)
─  preparing 'Rvision': (4.1s)
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts (554ms)
─  checking for empty or unneeded directories
─  building 'Rvision_0.8.0.tar.gz'
   Warning: file 'Rvision/configure' did not have execute permissions: corrected

Installing package into ‘C:/Users/David/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
* installing *source* package 'Rvision' ...
** using non-staged installation via StagedInstall field
+ set -e
+ C:/PROGRA~1/R/R-43~1.0/bin/x64/Rscript.exe -e 'if (nzchar(Sys.getenv('\''CI'\'')) & !ROpenCVLite::isOpenCVInstalled()) ROpenCVLite::installOpenCV(batch = TRUE)'
+ C:/PROGRA~1/R/R-43~1.0/bin/x64/Rscript.exe -e 'if (nzchar(Sys.getenv('\''CI'\'')) & ROpenCVLite::isOpenCVInstalled() & unlist(strsplit(as.character(utils::packageVersion('\''ROpenCVLite'\'')), '\''[.]'\''))[3] != gsub('\''[^0-9]'\'', '\'''\'', ROpenCVLite::opencvVersion())) ROpenCVLite::installOpenCV(batch = TRUE)'
+ C:/PROGRA~1/R/R-43~1.0/bin/x64/Rscript.exe -e 'if (!ROpenCVLite::isOpenCVInstalled()) { cat('\''------------------ OPENCV NOT FOUND --------------------\n'\'') ; cat('\''\n'\'') ; cat('\''OpenCV was not found in your library. Please install OpenCV as follows:'\'') ; cat('\''\n'\'') ; cat('\''\n'\'') ; cat('\''ROpenCVLite::installOpenCV(batch = TRUE)\n'\'') ; cat('\''\n'\'') ; cat('\''--------------------------------------------------------\n'\'') ; cat('\''\n'\'') ; stop('\''OpenCV not found.'\'') }'
+ C:/PROGRA~1/R/R-43~1.0/bin/x64/Rscript.exe -e '
  r_arch <- list.dirs(paste0(R.home(), '\''/bin'\''), FALSE, FALSE)
  opencv_arch <- ifelse(r_arch == '\''i386'\'', '\''x86'\'', '\''x64'\'')

  for (i in 1:length(opencv_arch)) {
    dest <- file.path('\''C:/Users/David/AppData/Local/R/win-library/4.3/Rvision'\'', paste0('\''libs/'\'', r_arch[i]))
    dir.create(dest, recursive = TRUE, showWarnings = FALSE)
    opencv_DLLs <- list.files(paste0(ROpenCVLite::OpenCVPath(), '\''/'\'', opencv_arch[i], '\''/mingw/bin'\''), '\''.dll'\'', full.names = TRUE)
    void <- lapply(opencv_DLLs, function(x) {
    file.copy(x, dest)
    })
  }
'
** libs
Warning: this package has a non-empty 'configure.ucrt' file,
so building only the main architecture

using C++ compiler: 'G__~1.EXE (GCC) 12.3.0'
g++ -std=gnu++17  -I"C:/PROGRA~1/R/R-43~1.0/include" -DNDEBUG -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\include\opencv2" -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\include" -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\x64\mingw\bin" -I'C:/Users/David/AppData/Local/R/win-library/4.3/Rcpp/include' -I'C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include'   -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -I"C:/Users/David/AppData/Local/R/win-library/4.3/Rcpp/include" -g -O3 -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17  -I"C:/PROGRA~1/R/R-43~1.0/include" -DNDEBUG -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\include\opencv2" -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\include" -I"C:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\x64\mingw\bin" -I'C:/Users/David/AppData/Local/R/win-library/4.3/Rcpp/include' -I'C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include'   -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -I"C:/Users/David/AppData/Local/R/win-library/4.3/Rcpp/include" -g -O3 -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c visionModule.cpp -o visionModule.o
g++ -std=gnu++17 -shared -s -static-libgcc -o Rvision.dll tmp.def RcppExports.o visionModule.o -LC:\Users\David\AppData\Local\R\WIN-LI~1\4.3\ROpenCV\x64\mingw\lib -lopencv_calib3d490 -lopencv_core490 -lopencv_dnn490 -lopencv_features2d490 -lopencv_flann490 -lopencv_gapi490 -lopencv_highgui490 -lopencv_imgcodecs490 -lopencv_imgproc490 -lopencv_ml490 -lopencv_objdetect490 -lopencv_photo490 -lopencv_stitching490 -lopencv_video490 -lopencv_videoio490 -lopencv_wechat_qrcode490 -lopencv_ximgproc490 -LC:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools43/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-43~1.0/bin/x64 -lR
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o: in function `arma::Cube<float>::get_mat_ptr(unsigned int) const':
C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o:C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: more undefined references to `GOMP_critical_name_end' follow
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o: in function `arma::Cube<double>::get_mat_ptr(unsigned int) const':
C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o: in function `arma::Cube<float>::get_mat_ptr(unsigned int) const':
C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o: in function `arma::Cube<double>::get_mat_ptr(unsigned int) const':
C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o: in function `arma::Cube<float>::get_mat_ptr(unsigned int) const':
C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o: in function `arma::Cube<double>::get_mat_ptr(unsigned int) const':
C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o:C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: more undefined references to `GOMP_critical_name_end' follow
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o: in function `arma::Cube<int>::get_mat_ptr(unsigned int) const':
C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o: in function `arma::Cube<float>::get_mat_ptr(unsigned int) const':
C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: visionModule.o: in function `arma::Cube<double>::get_mat_ptr(unsigned int) const':
C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_start'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
C:\rtools43\x86_64-w64-mingw32.static.posix\bin/ld.exe: C:/Users/David/AppData/Local/R/win-library/4.3/RcppArmadillo/include/armadillo_bits/Cube_meat.hpp:635: undefined reference to `GOMP_critical_name_end'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'Rvision'
* removing 'C:/Users/David/AppData/Local/R/win-library/4.3/Rvision'
* restoring previous 'C:/Users/David/AppData/Local/R/win-library/4.3/Rvision'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/David/AppData/Local/Temp/RtmpGSj3fW/file430423a0454/Rvision_0.8.0.tar.gz’ had non-zero exit status
sjmgarnier commented 3 months ago

@drefeld First, I need to push a fix to ROpenCVLite. An update to pkgbuild breaks the compilation process. Then I can look into this problem.

sjmgarnier commented 3 months ago

@drefeld Actually, I think I found the problem already. I pushed a fix on the develop branch if you want to give it another try.