omegahat / RDCOMClient

GNU General Public License v2.0
77 stars 34 forks source link

Non-Zero exit status installation R 4.0.2 2020-06-22 #25

Closed spsanderson closed 3 years ago

spsanderson commented 3 years ago

Tried installing RDCOMClient in R-Studio 1.3.1056 and R 4.0.2 by issuing the following command:

install.packages(pkgs = "RDCOMClient", repos = "http://www.stats.ox.ac.uk/pub/RWin/")

I get the following output with the error:

Installing package into ‘C:/Users/bha485/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.0:
  cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.0/PACKAGES'
Package which is only available in source form, and may need compilation of
  C/C++/Fortran: ‘RDCOMClient’
installing the source package ‘RDCOMClient’

trying URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/RDCOMClient_0.93-0.2.tar.gz'
Content type 'application/x-gzip' length 48929 bytes (47 KB)
downloaded 47 KB

* installing *source* package 'RDCOMClient' ...
** using staged installation
** libs

*** arch - i386
/mingw32/bin/g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-40~1.2/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I.      -Wno-deprecated    -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c COMError.cpp -o COMError.o
In file included from COMError.cpp:1:
RCOMObject.h: In member function 'virtual ULONG RCOMObject::Release()':
RCOMObject.h:61:50: warning: deleting object of abstract class type 'RCOMObject' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor]
                                           delete this;
                                                  ^~~~
/mingw32/bin/gcc  -I"C:/PROGRA~1/R/R-40~1.2/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I.         -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c RUtils.c -o RUtils.o
/mingw32/bin/g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-40~1.2/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I.      -Wno-deprecated    -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c connect.cpp -o connect.o
/mingw32/bin/g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-40~1.2/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I.      -Wno-deprecated    -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c converters.cpp -o converters.o
In file included from converters.cpp:1:
RCOMObject.h: In member function 'virtual ULONG RCOMObject::Release()':
RCOMObject.h:61:50: warning: deleting object of abstract class type 'RCOMObject' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor]
                                           delete this;
                                                  ^~~~
/mingw32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o RDCOMClient.dll tmp.def COMError.o RUtils.o connect.o converters.o -lole32 -loleaut32 -luuid -LC:/PROGRA~1/R/R-40~1.2/bin/i386 -lR
C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: converters.o:converters.cpp:(.text+0x16b6): undefined reference to `vtable for RCOMObject'
C:/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: converters.o:converters.cpp:(.text$_ZN10RCOMObject7ReleaseEv+0x2b): undefined reference to `vtable for RCOMObject'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'RDCOMClient'
* removing 'C:/Users/bha485/Documents/R/win-library/4.0/RDCOMClient'
Warning in install.packages :
  installation of package ‘RDCOMClient’ had non-zero exit status

Session Info:

> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

other attached packages:
 [1] janitor_2.0.1              tidyquant_1.0.1            quantmod_0.4.17           
 [4] TTR_0.23-6                 PerformanceAnalytics_2.0.4 xts_0.12-0                
 [7] zoo_1.8-8                  lubridate_1.7.9            forcats_0.5.0             
[10] stringr_1.4.0              dplyr_1.0.0                purrr_0.3.4               
[13] readr_1.3.1                tidyr_1.1.0                tibble_3.0.2              
[16] ggplot2_3.3.2              tidyverse_1.3.0            dbplyr_1.4.4              
[19] odbc_1.2.3                 DBI_1.1.0                  pacman_0.5.1              

loaded via a namespace (and not attached):
 [1] tidyselect_1.1.0 haven_2.3.1      lattice_0.20-41  snakecase_0.11.0 colorspace_1.4-1
 [6] vctrs_0.3.1      generics_0.0.2   blob_1.2.1       rlang_0.4.6      pillar_1.4.6    
[11] glue_1.4.1       withr_2.2.0      bit64_0.9-7      modelr_0.1.8     readxl_1.3.1    
[16] lifecycle_0.2.0  Quandl_2.10.0    munsell_0.5.0    gtable_0.3.0     cellranger_1.1.0
[21] rvest_0.3.5      curl_4.3         fansi_0.4.1      broom_0.7.0      Rcpp_1.0.5      
[26] scales_1.1.1     backports_1.1.7  jsonlite_1.7.0   fs_1.4.2         bit_1.1-15.2    
[31] hms_0.5.3        stringi_1.4.6    grid_4.0.2       quadprog_1.5-8   cli_2.0.2       
[36] tools_4.0.2      magrittr_1.5     crayon_1.3.4     pkgconfig_2.0.3  ellipsis_0.3.1  
[41] xml2_1.3.2       reprex_0.3.0     assertthat_0.2.1 httr_1.4.1       rstudioapi_0.11 
[46] R6_2.4.1         compiler_4.0.2