JuliaInterop / JuliaCall

Embed Julia in R
https://non-contradiction.github.io/JuliaCall/index.html
Other
267 stars 36 forks source link

Compilation issue with latest Rtools #147

Closed ChrisRackauckas closed 3 years ago

ChrisRackauckas commented 3 years ago
> devtools::install_github("Non-Contradiction/JuliaCall")
Downloading GitHub repo Non-Contradiction/JuliaCall@HEAD
√  checking for file 'C:\Users\accou\AppData\Local\Temp\Rtmp2J7w5p\remotesdb9c7aca50b4\Non-Contradiction-JuliaCall-cc3dfe1/DESCRIPTION' (916ms)
-  preparing 'JuliaCall': (9.2s)
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  checking for LF line-endings in source and make files and shell scripts (922ms)
-  checking for empty or unneeded directories
-  building 'JuliaCall_0.17.1.9000.tar.gz'

Installing package into ‘D:/OneDrive/Computer/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'JuliaCall' ...
** using staged installation
** libs

*** arch - i386
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-40~1.3/include" -DNDEBUG  -I'D:/OneDrive/Computer/Documents/R/win-library/4.0/Rcpp/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c JuliaCall.cpp -o JuliaCall.o
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-40~1.3/include" -DNDEBUG  -I'D:/OneDrive/Computer/Documents/R/win-library/4.0/Rcpp/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
"C:/rtools40/mingw32/bin/"g++ -std=gnu++11  -I"C:/PROGRA~1/R/R-40~1.3/include" -DNDEBUG  -I'D:/OneDrive/Computer/Documents/R/win-library/4.0/Rcpp/include'        -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c libjulia.cpp -o libjulia.o
In file included from libjulia.cpp:2:
libjulia.h:93:95: error: redefinition of 'void (* libjulia::jl_init_with_image)(const char*, const char*)'
 JL_EXTERN void (*jl_init_with_image)(const char *julia_bindir, const char *image_relative_path);
                                                                                               ^
libjulia.h:90:18: note: 'void (* libjulia::jl_init_with_image)(const char*, const char*)' previously declared here
 JL_EXTERN void (*jl_init_with_image)(const char *julia_bindir,
                  ^~~~~~~~~~~~~~~~~~
make: *** [C:/PROGRA~1/R/R-40~1.3/etc/i386/Makeconf:229: libjulia.o] Error 1
ERROR: compilation failed for package 'JuliaCall'
* removing 'D:/OneDrive/Computer/Documents/R/win-library/4.0/JuliaCall'
* restoring previous 'D:/OneDrive/Computer/Documents/R/win-library/4.0/JuliaCall'
Error: Failed to install 'JuliaCall' from GitHub:
  (converted from warning) installation of package ‘C:/Users/accou/AppData/Local/Temp/Rtmp2J7w5p/filedb9c72af7fb2/JuliaCall_0.17.1.9000.tar.gz’ had non-zero exit status
Non-Contradiction commented 3 years ago

Yes, I already found the mistake. It should be fixed on the master.

ChrisRackauckas commented 3 years ago

Fixed!