renozao / RcppOctave

Seamless Interface to Octave -- and Matlab code
18 stars 9 forks source link

RcppOctave Install fails on Windows under Octave 4.0.0; can't find 'OctaveModule' #11

Open tds151 opened 8 years ago

tds151 commented 8 years ago
*** arch - i386
Checking octave-config BINDIR... C:/Octave/Octave-4.0.0/bin
Checking mkoctfile LFLAGS... -LC:/Octave/Octave-4.0.0/lib/octave/4.0.0 -LC:/Octave/Octave-4.0.0/lib
Checking mkoctfile OCTAVE_LIBS... -loctinterp -loctave 
Checking mkoctfile CPPFLAGS... -I/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/include
Checking mkoctfile INCFLAGS... -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave/.. -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave -IC:/Octave/Octave-4.0.0/include
Checking current Rtools compiler... C:/Rtools/gcc-4.6.3/bin/gcc.exe
Checking octave-config [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/octave-config.exe
Checking Octave version... 4.0.0
Checking Octave compiler [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/gcc.exe
Checking Rtools ... C:/Rtools
Checking all Rtools compiler(s) [in C:/Rtools]... multiple [3]
 * C:/Rtools/mingw_64/bin/x86_64-w64-mingw32-gcc-4.9.3.exe
 * C:/Rtools/mingw_32/bin/i686-w64-mingw32-gcc-4.9.3.exe
 * C:/Rtools/gcc-4.6.3/bin/gcc.exe
Checking Octave compiler version... i686-w64-mingw32-4.9.2
Checking compatible Rtools compiler... i686-w64-mingw32-gcc-4.9.3.exe [C:/Rtools/mingw_32/bin]
Checking gcc alias... C:/Rtools/mingw_32/bin/gcc.exe
Checking g++ [in C:/Rtools/mingw_32/bin]... C:/Rtools/mingw_32/bin/g++.exe
cd .. && RTOOLS_COMPILER_NO_LOOKUP=1 . exec/configure-win
Loading Windows autoconf-like macros ... OK
Auto-configure - Tue Mar 15 18:50:06 EDT 2016
Package RcppOctave - version 0.18.1
Checking R architecture... /i386
Checking R [in C:/R/R-32~1.3/bin/i386]... C:/R/R-3.2.3/bin/i386/R.exe
Checking Rscript [in C:/R/R-32~1.3/bin/i386]... C:/R/R-3.2.3/bin/i386/Rscript.exe
Checking R version... R version 3.2.3 (2015-12-10)
Checking R platform... i386-w64-mingw32
Checking R CC... gcc -m32
Checking gcc... C:/Rtools/mingw_32/bin/gcc.exe
Checking gcc version... i686-w64-mingw32-4.9.3
Checking R CFLAGS... -O3
Checking R CPPFLAGS... 
Checking R CXXLAGS... 
Checking system PATH...
 * C:\Rtools\mingw_32\bin
 * C:\R\R-3.2.3\bin\x64
 * C:\Rtools\bin
 * C:\Rtools\gcc-4.6.3\bin
 * C:\R\R-3.2.3\bin\x64
 * C:\ProgramData\Oracle\Java\javapath
 * C:\Rtools\bin
 * C:\Rtools\gcc-4.6.3\bin
 * C:\Octave\Octave-4.0.0\bin
 * C:\Program Files (x86)\Intel\iCLS Client
 * C:\Program Files\Intel\iCLS Client
 * C:\Windows\System32
 * C:\Windows
 * C:\Windows\System32\wbem
 * C:\Windows\System32\WindowsPowerShell\v1.0
 * C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
 * C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
 * C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
 * C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
 * C:\Program Files (x86)\Common Files\Check Point\UIFramework 3.0\bin
 * C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Common\bin
 * C:\Program Files\MiKTeX 2.9\miktex\bin\x64
 * C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia AUX
 * C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia AUX\Support binaries
 * C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Broker
 * C:\Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tectia Client
 * C:\Program Files (x86)\Skype\Phone
Checking octave-config... C:/Octave/Octave-4.0.0/bin/octave-config.exe
Checking Octave binary directory... C:/Octave/Octave-4.0.0/bin
Checking mkoctfile [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/mkoctfile.exe
Loading Windows autoconf-like macros for Octave ... 
  * Checking Octave path to home directory... C:/Octave/Octave-4.0.0
  * Checking mkoctfile home directory... /scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32
OK
Checking octave [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/octave.exe
Checking current Rtools compiler... C:/Rtools/mingw_32/bin/gcc.exe
Checking octave-config [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/octave-config.exe
Checking Octave version... 4.0.0
Checking Octave compiler [in C:/Octave/Octave-4.0.0/bin]... C:/Octave/Octave-4.0.0/bin/gcc.exe
Checking Rtools ... C:/Rtools
Checking Octave compiler version... i686-w64-mingw32-4.9.2
Checking compatible Rtools compiler... gcc.exe [C:/Rtools/mingw_32/bin]
Checking gcc alias... C:/Rtools/mingw_32/bin/gcc.exe
Checking g++ [in C:/Rtools/mingw_32/bin]... C:/Rtools/mingw_32/bin/g++.exe
Checking RcppOctave system-specific cpp flags... -fmax-errors=10
Checking PATH changes... none
Checking Octave module make target... win${R_ARCH}
Checking mkoctfile compile command... mkoctfile
Checking mkoctfile cpp flags... -IC:/Octave/Octave-4.0.0/include [*]
Checking mkoctfile include flags... -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave/.. -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave -IC:/Octave/Octave-4.0.0/include [*]
Checking mkoctfile -L flags... -LC:/Octave/Octave-4.0.0/lib/octave/4.0.0 -LC:/Octave/Octave-4.0.0/lib [*]
Checking mkoctfile libraries... -loctinterp -loctave 
Checking mkoctfile C compiler... gcc -m32
Checking mkoctfile Fortran compiler... gfortran
Checking Octave platform... i686-w64-mingw32
Checking Octave API version... api-v50+
Checking Octave version... 4.0.0
Checking whether to infer output names for Octave function (Octave >= 3.4.3?)... yes
configure: Using Octave LDFLAGS:  -LC:/Octave/Octave-4.0.0/lib/octave/4.0.0 -LC:/Octave/Octave-4.0.0/lib -loctinterp -loctave 
configure: Using Octave CPPFLAGS: -IC:/Octave/Octave-4.0.0/include -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave/.. -IC:/Octave/Octave-4.0.0/include/octave-4.0.0/octave -IC:/Octave/Octave-4.0.0/include -DOCT_POST_3_4_0=1
Checking RcppOctave Octave module directory... C:/R/R-3.2.3/library/RcppOctave/modules
config.status: creating R/config-vars.R (31 variables)
config.status: creating src-i386/Makevars (31 variables)
config.status: creating src-i386/modules/Makefile (31 variables)

# Making Octave module [r_arch: win/i386]
make[1]: Entering directory `/cygdrive/c/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules'
# Building 32bit-Windows RcppOctave modules in C:/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules/
make[2]: Entering directory `/cygdrive/c/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules'
*** Building octave module: utils.oct
'C:/Octave/Octave-4.0.0/bin/octave' --quiet --eval 'cd("C:/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules"); mkoctfile -v utils.cc'
g++ -m32 -std=c++0x -c -I/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/include  -IC:\Octave\Octave-4.0.0\include\octave-4.0.0\octave\.. -IC:\Octave\Octave-4.0.0\include\octave-4.0.0\octave -IC:\Octave\Octave-4.0.0\include -pthread -mieee-fp -g -O2    utils.cc -o utils.o
g++ -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc  -o utils.oct  utils.o   -LC:\Octave\Octave-4.0.0\lib\octave\4.0.0 -LC:\Octave\Octave-4.0.0\lib -loctinterp -loctave -Wl,-rpath-link,/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/lib -L/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/lib -Wl,--export-all-symbols  
*** Building octave module: Rrng.oct
'C:/Octave/Octave-4.0.0/bin/octave' --quiet --eval 'cd("C:/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules"); mkoctfile -v -IC:/R/R-32~1.3/include -IC:/R/R-32~1.3/include/i386   -LC:/R/R-32~1.3/bin/i386 -lR -lm Rrng.cc'
g++ -m32 -std=c++0x -c -I/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/include  -IC:\Octave\Octave-4.0.0\include\octave-4.0.0\octave\.. -IC:\Octave\Octave-4.0.0\include\octave-4.0.0\octave -IC:\Octave\Octave-4.0.0\include -pthread -mieee-fp -g -O2   -IC:/R/R-32~1.3/include -IC:/R/R-32~1.3/include/i386  Rrng.cc -o Rrng.o
g++ -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc  -o Rrng.oct  Rrng.o   -LC:/R/R-32~1.3/bin/i386 -lR -lm -LC:\Octave\Octave-4.0.0\lib\octave\4.0.0 -LC:\Octave\Octave-4.0.0\lib -loctinterp -loctave -Wl,-rpath-link,/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/lib -L/scratch/jwe/src/mxe-octave/usr/i686-w64-mingw32/lib -Wl,--export-all-symbols  
make[2]: Leaving directory `/cygdrive/c/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules'
make[1]: Leaving directory `/cygdrive/c/Users/Savitsky_TNT/AppData/Local/Temp/2/RtmpyAsrby/devtools84f411013970/renozao-RcppOctave-29e5e23/src-i386/modules'
# Copying Octave modules to directory 'C:/R/R-3.2.3/library/RcppOctave/modules/i386'
 -fmax-errors=10   -I"C:/R/R-3.2.3/library/Rcpp/include" -I"d:/RCompile/r-compiling/local/local323/include"     -O2 -Wall  -mtune=core2 -c conversion.cpp -o conversion.o
 -fmax-errors=10   -I"C:/R/R-3.2.3/library/Rcpp/include" -I"d:/RCompile/r-compiling/local/local323/include"     -O2 -Wall  -mtune=core2 -c rcpp_octave.cpp -o rcpp_octave.o
C:\Rtools\mingw_32\bin\nm.exe: 'OctaveModule': No such file
 -Ld:/RCompile/r-compiling/local/local323/lib/i386 -Ld:/RCompile/r-compiling/local/local323/lib -LC:/R/R-32~1.3/bin/i386 -lR4.0.0 -LC:/Octave/Octave-4.0.0/lib
: Invalid argument
no DLL was created
ERROR: compilation failed for package 'RcppOctave'
* removing 'C:/R/R-3.2.3/library/RcppOctave'
Error: Command failed (1)
In addition: Warning message:
Username parameter is deprecated. Please use renozao/RcppOctave 
renozao commented 8 years ago

It is hard to read this log (I edited it to make it verbatim). On R 3.3, I could install the CRAN and Github master version with:

R CMD INSTALL --no-clean-on-error RcppOctave

run on the unpacked tar.gz. The package then loads and runs fine under R 32bit, but R crashes when exiting, which is hard to debug. I will need to investigate further.