renozao / RcppOctave

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

Does not install on Windows 7 #15

Open gregorp90 opened 7 years ago

gregorp90 commented 7 years ago

I'm trying to install RcppOctave on Windows 7. I followed the instructions in the README, installed Rtools, extracted the Windows native gcc 4.9.2 toolchain and installed Octave as described on the link. The package does not install. What could be the problem? I get the following log in R:

install.packages("RcppOctave") Installing package into ‘C:/Users/Gregor/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘RcppOctave’ Do you want to attempt to install these from sources? y/n: y installing the source package ‘RcppOctave’

trying URL 'https://cran.rstudio.com/src/contrib/RcppOctave_0.18.1.tar.gz' Content type 'application/x-gzip' length 777692 bytes (759 KB) downloaded 759 KB

installing source package 'RcppOctave' ... package 'RcppOctave' successfully unpacked and MD5 sums checked


WARNING: this package has a configure script It probably needs manual configuration


** libs

*** arch - i386 Checking octave-config BINDIR... C:/Octave/Octave3.6.4_gcc4.6.2/bin Checking mkoctfile LFLAGS... -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib Checking mkoctfile OCTAVE_LIBS... -loctinterp -loctave -lcruft Checking mkoctfile CPPFLAGS... -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include Checking mkoctfile INCFLAGS... -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include Checking current Rtools compiler... C:/Rtools/gcc-4.6.3/bin/gcc.exe Checking octave-config [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe Checking Octave version... 3.6.4 Checking Octave compiler... C:/Octave/Octave3.6.4_gcc4.6.2/mingw/bin/gcc.exe Checking Rtools ... C:/Rtools Checking all Rtools compiler(s) [in C:/Rtools]... multiple [4]

  • C:/Rtools/mingw_64/bin/x86_64-w64-mingw32-gcc-4.9.2.exe
  • 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... mingw32-4.6.2 Checking compatible Rtools compiler... gcc.exe [C:/Rtools/gcc-4.6.3/bin] Checking gcc alias... C:/Rtools/gcc-4.6.3/bin/gcc.exe Checking g++ [in C:/Rtools/gcc-4.6.3/bin]... C:/Rtools/gcc-4.6.3/bin/g++.exe cd .. && RTOOLS_COMPILER_NO_LOOKUP=1 . exec/configure-win Loading Windows autoconf-like macros ... OK Auto-configure - Fri Dec 2 18:29:31 CEST 2016 Package RcppOctave - version 0.18.1 Checking R architecture... /i386 Checking R [in C:/Programs/R/R-331.2/bin/i386]... C:/Programs/R/R-3.3.2/bin/i386/R.exe Checking Rscript [in C:/Programs/R/R-331.2/bin/i386]... C:/Programs/R/R-3.3.2/bin/i386/Rscript.exe Checking R version... R version 3.3.2 (2016-10-31) Checking R platform... i386-w64-mingw32 Checking R CC... c:/Rtools/mingw_32/bin/gcc Checking c:/Rtools/mingw_32/bin/gcc... c:/Rtools/mingw_32/bin/gcc.exe Checking c:/Rtools/mingw_32/bin/gcc version... i686-w64-mingw32-4.9.3 Checking R CFLAGS... -O3 Checking R CPPFLAGS... Checking R CXXLAGS... Checking system PATH...
  • C:\Rtools\gcc-4.6.3\bin
  • C:\Programs\R\R-3.3.2\bin\x64
  • C:\Programs\R\R-3.3.2\bin\x64
  • C:\Rtools\bin
  • C:\Rtools\gcc-4.6.3\bin
  • C:\Rtools\mingw_64\bin
  • C:\Rtools\mingw_32\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\WiFi\bin
  • C:\Program Files\Common Files\Intel\WirelessCommon
  • C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static
  • C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
  • C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
  • C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
  • C:\Program Files\Intel\Intel(R) Management Engine Components\IPT
  • C:\Rtools\mingw_64\bin
  • C:\Octave\Octave3.6.4_gcc4.6.2\bin
  • C:\Programs\VS2010\VC\bin
  • C:\Programs\MiKTeX2.9\miktex\bin\x64 Checking octave-config... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe Checking Octave binary directory... C:/Octave/Octave3.6.4_gcc4.6.2/bin Checking mkoctfile [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/mkoctfile.exe Loading Windows autoconf-like macros for Octave ...
    • Checking Octave path to home directory...
  • Checking mkoctfile home directory... C:/Octave/Octave3.6.4_gcc4.6.2 OK Checking octave [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave.exe Checking current Rtools compiler... c:/Rtools/mingw_32/bin/gcc.exe Checking octave-config [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe Checking Octave version... 3.6.4 Checking Octave compiler... C:/Octave/Octave3.6.4_gcc4.6.2/mingw/bin/gcc.exe Checking Rtools ... c:/Rtools Checking Octave compiler version... mingw32-4.6.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... -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include Checking mkoctfile include flags... -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include Checking mkoctfile -L flags... -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib Checking mkoctfile libraries... -loctinterp -loctave -lcruft Checking mkoctfile C compiler... c:/Rtools/mingw_32/bin/gcc Checking mkoctfile Fortran compiler... gfortran -shared-libgcc Checking Octave platform... i686-pc-mingw32 Checking Octave API version... api-v48+ Checking Octave version... 3.6.4 Checking whether to infer output names for Octave function (Octave >= 3.4.3?)... yes configure: Using Octave LDFLAGS: -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib -loctinterp -loctave -lcruft configure: Using Octave CPPFLAGS: -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include -DOCT_POST_3_4_0=1 Checking RcppOctave Octave module directory... C:/Users/Gregor/Documents/R/win-library/3.3/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/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/s>rc-i386/modules' Building 32bit-Windows RcppOctave modules in >C:/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules/ make[2]: Entering directory >/cygdrive/c/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules' *** Building octave module: utils.oct 'C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave' --quiet --eval 'cd("C:/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules"); mkoctfile -v utils.cc' warning: gmsh does not seem to be present some functionalities will be disabled warning: dx does not seem to be present some functionalities will be disabled warning: function C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\packages\statistics-1.2.0\fstat.m shadows a core library function In file included from C:\Octave\Octave3.6.4_gcc4.6.2\include/hdf5.h:24:0, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave../octave/oct-hdf5.h:27, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave../octave/ov.h:43, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave../octave/oct-obj.h:34, from utils.cc:22: C:\Octave\Octave3.6.4_gcc4.6.2\include/H5public.h:191:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] define H5_PRINTF_HADDR_FMT "%"H5_PRINTF_LL_WIDTH"u"

utils.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to _Unwind_Resume' utils.o: In functionZN10dim_vector24chop_trailing_singletonsEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to __cxa_throw_bad_array_new_length' utils.o: In functionoctave_value_list': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to _Unwind_Resume' utils.o: In functionZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to _Unwind_Resume' utils.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to_Unwind_Resume' utils.o:utils.cc:(.eh_frame+0xcf): undefined reference to __gxx_personality_v0' collect2: ld returned 1 exit status c:/Rtools/mingw_32/bin/g++ -std=c++0x -c -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include -IC:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\.. -IC:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave -IC:\Octave\Octave3.6.4_gcc4.6.2\include -mieee-fp -IC:/OctaveB/gplibs/include/freetype2 -IC:/OctaveB/gplibs/include -IC:/OctaveB/gplibs/include -g -O2 utils.cc -o utils.o g++ -shared-libgcc -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -o utils.oct utils.o -LC:\Octave\Octave3.6.4_gcc4.6.2\lib\octave\3.6.4 -LC:\Octave\Octave3.6.4_gcc4.6.2\lib -loctinterp -loctave -lcruft warning: unable to find mkoctfile in expected location: 'C:\Octave\Octave3.6.4_gcc4.6.2\bin\mkoctfile-3.6.4' warning: mkoctfile exited with failure status *** Building octave module: Rrng.oct 'C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave' --quiet --eval 'cd("C:/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules"); mkoctfile -v -IC:/Programs/R/R-331.2/include -IC:/Programs/R/R-331.2/include/i386 -LC:/Programs/R/R-331.2/bin/i386 -lR -lm Rrng.cc' warning: gmsh does not seem to be present some functionalities will be disabled warning: dx does not seem to be present some functionalities will be disabled warning: function C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\packages\statistics-1.2.0\fstat.m shadows a core library function In file included from C:\Octave\Octave3.6.4_gcc4.6.2\include/hdf5.h:24:0, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/oct-hdf5.h:27, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/ov.h:43, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/oct-obj.h:34, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/ov-fcn.h:32, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/ov-builtin.h:28, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/defun-int.h:28, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/defun-dld.h:30, from C:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave\../octave/oct.h:36, from Rrng.cc:32: C:\Octave\Octave3.6.4_gcc4.6.2\include/H5public.h:191:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] define H5_PRINTF_HADDR_FMT "%"H5_PRINTF_LL_WIDTH"u" ^ Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to_Unwind_Resume' Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to _Unwind_Resume' Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to_Unwind_Resume' Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to _Unwind_Resume' Rrng.o:c:/Rtools/mingw_32/i686-w64-mingw32/include/c++/bits/basic_string.h:547: undefined reference to_Unwind_Resume' Rrng.o: In function ZN5ArrayIdEclEii': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to _Unwind_Resume' Rrng.o: In functionMatrix': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to __cxa_throw_bad_array_new_length' Rrng.o: In functionno_ctor_new': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to __cxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' Rrng.o: In function ZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' Rrng.o: In function octave_value_list': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to_Unwind_Resume' Rrng.o: In function no_ctor_new<double>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to __cxa_throw_bad_array_new_length' Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to_Unwind_Resume' Rrng.o: In function ZN10dim_vector24chop_trailing_singletonsEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference tocxa_throw_bad_array_new_length' Rrng.o: In function no_ctor_new<int>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to __cxa_throw_bad_array_new_length' Rrng.o: In functionZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to _Unwind_Resume' Rrng.o: In functionoctave_value_list': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to _Unwind_Resume' Rrng.o: In functionno_ctor_new': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to __cxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to _Unwind_Resume' Rrng.o: In functionZN10dim_vector24chop_trailing_singletonsEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to `cxa_throw_bad_array_new_length' Rrng.o: In function no_ctor_new<int>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to `cxa_throw_bad_array_new_length' Rrng.o: In function ZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' Rrng.o: In function octave_value_list': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to_Unwind_Resume' Rrng.o: In function no_ctor_new<double>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to `cxa_throw_bad_array_new_length' Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to _Unwind_Resume' Rrng.o: In functionZN10dim_vector24chop_trailing_singletonsEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference to __cxa_throw_bad_array_new_length' Rrng.o: In functionno_ctor_new': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to __cxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' Rrng.o: In function ZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' Rrng.o: In function octave_value_list': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to_Unwind_Resume' Rrng.o: In function no_ctor_new<double>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to __cxa_throw_bad_array_new_length' Rrng.o:C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:67: undefined reference to_Unwind_Resume' Rrng.o: In function Matrix': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:83: undefined reference tocxa_throw_bad_array_new_length' Rrng.o: In function octave_value_list': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-obj.h:44: undefined reference to_Unwind_Resume' Rrng.o: In function ZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' Rrng.o: In function no_ctor_new<double>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' Rrng.o: In function no_ctor_new<int>': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference tocxa_throw_bad_array_new_length' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/oct-mem.h:131: undefined reference to __cxa_throw_bad_array_new_length' Rrng.o: In functionZN10dim_vector7nil_repEv': C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to _Unwind_Resume' C:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/../octave/dim-vector.h:219: undefined reference to_Unwind_Resume' Rrng.o:Rrng.cc:(.eh_frame+0x123): undefined reference to __gxx_personality_v0' Rrng.o:Rrng.cc:(.eh_frame$_ZNK17octave_base_value4dimsEv+0x13): undefined reference togxx_personality_v0' Rrng.o:Rrng.cc:(.eh_frame$_ZNK17octave_base_value5numelEv+0x13): undefined reference to `gxx_personality_v0' collect2: ld returned 1 exit status c:/Rtools/mingw_32/bin/g++ -std=c++0x -c -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include -IC:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave.. -IC:\Octave\Octave3.6.4_gcc4.6.2\include\octave-3.6.4\octave -IC:\Octave\Octave3.6.4_gcc4.6.2\include -mieee-fp -IC:/OctaveB/gplibs/include/freetype2 -IC:/OctaveB/gplibs/include -IC:/OctaveB/gplibs/include -g -O2 -IC:/Programs/R/R-331.2/include -IC:/Programs/R/R-331.2/include/i386 Rrng.cc -o Rrng.o g++ -shared-libgcc -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -o Rrng.oct Rrng.o -LC:/Programs/R/R-331.2/bin/i386 -lR -lm -LC:\Octave\Octave3.6.4_gcc4.6.2\lib\octave\3.6.4 -LC:\Octave\Octave3.6.4_gcc4.6.2\lib -loctinterp -loctave -lcruft
warning: unable to find mkoctfile in expected location: 'C:\Octave\Octave3.6.4_gcc4.6.2\bin\mkoctfile-3.6.4' warning: mkoctfile exited with failure status make[2]: Leaving directory /cygdrive/c/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules' make[1]: Leaving directory/cygdrive/c/Users/Gregor/AppData/Local/Temp/RtmpC4zBbP/R.INSTALL1ca859d854b3/RcppOctave/src-i386/modules' Copying Octave modules to directory 'C:/Users/Gregor/Documents/R/win-library/3.3/RcppOctave/modules/i386' cp: cannot stat '*.oct': No such file or directory make: *** [OctaveModule] Error 1 Warning: running command 'make -f "Makevars.win" -f "C:/Programs/R/R-331.2/etc/i386/Makeconf" -f "C:/Programs/R/R-331.2/share/make/winshlib.mk" CXX='$(CXX1X) $(CXX1XSTD)' CXXFLAGS='$(CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)' SHLIB="RcppOctave.dll" OBJECTS="conversion.o rcpp_octave.o"' had status 2 ERROR: compilation failed for package 'RcppOctave'

  • removing 'C:/Users/Gregor/Documents/R/win-library/3.3/RcppOctave' Warning in install.packages : running command '"C:/Programs/R/R-331.2/bin/x64/R" CMD INSTALL -l "C:\Users\Gregor\Documents\R\win-library\3.3" C:\Users\Gregor\AppData\Local\Temp\Rtmp6xgdQv/downloaded_packages/RcppOctave_0.18.1.tar.gz' had status 1 Warning in install.packages : installation of package ‘RcppOctave’ had non-zero exit status

The downloaded source packages are in ‘C:\Users\Gregor\AppData\Local\Temp\Rtmp6xgdQv\downloaded_packages’

renozao commented 7 years ago

It looks like you are installing from R 64bit. On Windows, the package only installs correctly on under R 32bit. If this still does not work, can you please try installing from github (master and develop if still not working), and report back?

devtools::install_github('renozao/RcppOctave', quick = TRUE)
gregorp90 commented 7 years ago

Thank you for the answer. I will try to install on R 32bit and report back sometime this week.

gregorp90 commented 7 years ago

I've changed to 32bit R and tried installing normally and also from github. It's still not working. I get the following log:

devtools::install_github('renozao/RcppOctave', quick = TRUE) Downloading GitHub repo renozao/RcppOctave@master from URL https://api.github.com/repos/renozao/RcppOctave/zipball/master Installing RcppOctave "C:/Programs/R/R-331.2/bin/i386/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \ "C:/Users/Gregor/AppData/Local/Temp/Rtmpg9serr/devtools20a479af2eee/renozao-RcppOctave-da9d028" \ --library="C:/Users/Gregor/Documents/R/win-library/3.3" --install-tests --no-docs --no-multiarch --no-demo installing source package 'RcppOctave' ... WARNING: this package has a configure script It probably needs manual configuration libs Checking octave-config BINDIR... C:/Octave/Octave3.6.4_gcc4.6.2/bin Checking mkoctfile LFLAGS... -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib Checking mkoctfile OCTAVE_LIBS... -loctinterp -loctave -lcruft Checking mkoctfile CPPFLAGS... -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include Checking mkoctfile INCFLAGS... -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include Checking current Rtools compiler... C:/Rtools/gcc-4.6.3/bin/gcc.exe Checking octave-config [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe Checking Octave version... 3.6.4 Checking Octave compiler... C:/Octave/Octave3.6.4_gcc4.6.2/mingw/bin/gcc.exe Checking Rtools ... C:/Rtools Checking all Rtools compiler(s) [in C:/Rtools]... multiple [4] C:/Rtools/mingw_64/bin/x86_64-w64-mingw32-gcc-4.9.2.exe 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... mingw32-4.6.2 Checking compatible Rtools compiler... gcc.exe [C:/Rtools/gcc-4.6.3/bin] Checking gcc alias... C:/Rtools/gcc-4.6.3/bin/gcc.exe Checking g++ [in C:/Rtools/gcc-4.6.3/bin]... C:/Rtools/gcc-4.6.3/bin/g++.exe cd .. && RTOOLS_COMPILER_NO_LOOKUP=1 . exec/configure-win Loading Windows autoconf-like macros ... OK Auto-configure - Thu Dec 22 17:38:39 CEST 2016 Package RcppOctave - version 0.18.1 Checking R architecture... /i386 Checking R [in C:/Programs/R/R-331.2/bin/i386]... C:/Programs/R/R-3.3.2/bin/i386/R.exe Checking Rscript [in C:/Programs/R/R-331.2/bin/i386]... C:/Programs/R/R-3.3.2/bin/i386/Rscript.exe Checking R version... R version 3.3.2 (2016-10-31) Checking R platform... i386-w64-mingw32 Checking R CC... c:/Rtools/mingw_32/bin/gcc Checking c:/Rtools/mingw_32/bin/gcc... c:/Rtools/mingw_32/bin/gcc.exe Checking c:/Rtools/mingw_32/bin/gcc version... i686-w64-mingw32-4.9.3 Checking R CFLAGS... -O3 Checking R CPPFLAGS... Checking R CXXLAGS... Checking system PATH... C:\Rtools\gcc-4.6.3\bin C:\Programs\R\R-3.3.2\bin\i386 C:\Programs\R\R-3.3.2\bin\i386 C:\Rtools\bin C:\Rtools\gcc-4.6.3\bin C:\Rtools\mingw_64\bin C:\Rtools\mingw_32\bin C:\Rtools\gcc-4.6.3\i686-w64-mingw32\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\WiFi\bin C:\Program Files\Common Files\Intel\WirelessCommon C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL C:\Program Files\Intel\Intel(R) Management Engine Components\DAL C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT C:\Program Files\Intel\Intel(R) Management Engine Components\IPT C:\Rtools\mingw_64\bin C:\Octave\Octave3.6.4_gcc4.6.2\bin C:\Programs\VS2010\VC\bin C:\Programs\MiKTeX2.9\miktex\bin\x64 C:\mingw64\bin C:\Octave\Octave3.6.4_gcc4.6.2\mingw\mingw64\bin C:\Octave\Octave3.6.4_gcc4.6.2\mingw\mingw64\x86_64-w64-mingw32\bin C:\mingw64\x86_64-w64-mingw32\bin Checking octave-config... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe Checking Octave binary directory... C:/Octave/Octave3.6.4_gcc4.6.2/bin Checking mkoctfile [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/mkoctfile.exe Loading Windows autoconf-like macros for Octave ... Checking Octave path to home directory... Checking mkoctfile home directory... C:/Octave/Octave3.6.4_gcc4.6.2 OK Checking octave [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave.exe Checking current Rtools compiler... c:/Rtools/mingw_32/bin/gcc.exe Checking octave-config [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe Checking Octave version... 3.6.4 Checking Octave compiler... C:/Octave/Octave3.6.4_gcc4.6.2/mingw/bin/gcc.exe Checking Rtools ... c:/Rtools Checking Octave compiler version... mingw32-4.6.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... -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include Checking mkoctfile include flags... -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include Checking mkoctfile -L flags... -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib Checking mkoctfile libraries... -loctinterp -loctave -lcruft Checking mkoctfile C compiler... c:/Rtools/mingw_32/bin/gcc Checking mkoctfile Fortran compiler... gfortran -shared-libgcc Checking Octave platform... i686-pc-mingw32 Checking Octave API version... api-v48+ Checking Octave version... 3.6.4 Checking whether to infer output names for Octave function (Octave >= 3.4.3?)... yes configure: Using Octave LDFLAGS: -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib -loctinterp -loctave -lcruft configure: Using Octave CPPFLAGS: -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include -DOCT_POST_3_4_0=1 Checking RcppOctave Octave module directory... C:/Users/Gregor/Documents/R/win-library/3.3/RcppOctave/modules config.status: creating R/config-vars.R (31 variables) Error in file(con, "r") : cannot open the connection Calls: readLines -> file In addition: Warning message: In file(con, "r") : cannot open file 'src-i386/Makevars.in': No such file or directory Execution halted Error in file(con, "r") : cannot open the connection Calls: readLines -> file In addition: Warning message: In file(con, "r") : cannot open file 'src-i386/modules/Makefile.in': No such file or directory Execution halted make: [configure] Error 1 Warning: running command 'make -f "Makevars.win" -f "C:/Programs/R/R-331.2/etc/i386/Makeconf" -f "C:/Programs/R/R-331.2/share/make/winshlib.mk" CXX='$(CXX1X) $(CXX1XSTD)' CXXFLAGS='$(CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)' SHLIB="RcppOctave.dll" OBJECTS="conversion.o rcpp_octave.o"' had status 2 ERROR: compilation failed for package 'RcppOctave' removing 'C:/Users/Gregor/Documents/R/win-library/3.3/RcppOctave'