Modular octave interface does not build with octave 4.2.0 #3578

Open
beew opened this Issue Dec 12, 2016 · 1 comment

Projects

None yet

2 participants

@beew
beew commented Dec 12, 2016

It builds with octave 4.0.3 but build fails with 4.2.0

Built target octave_doxy2swig
[100%] Swig source
/home/bee/opt/shogun-src/src/shogun/lib/SGNDArray.h:116: Warning 367: operator*= ignored
/home/bee/opt/shogun-src/src/shogun/lib/SGNDArray.h:123: Warning 365: operator+= ignored
/home/bee/opt/shogun-src/src/shogun/lib/SGNDArray.h:130: Warning 366: operator-= ignored
Scanning dependencies of target octave_modular
[100%] Building CXX object src/interfaces/octave_modular/CMakeFiles/octave_modular.dir/modshogunOCTAVE_wrap.cxx.o
[100%] Building CXX object src/interfaces/octave_modular/CMakeFiles/octave_modular.dir/sg_print_functions.cpp.o
In file included from /home/bee/opt/shogun-src/src/interfaces/octave_modular/sg_print_functions.cpp:1:0:
/usr/local/include/octave-4.2.0/octave/../octave/config.h:28:2: warning: #warning "config.h has been deprecated; there is no need to include it directly" [-Wcpp]
 #warning "config.h has been deprecated; there is no need to include it directly"
  ^
In file included from /home/bee/opt/shogun-src/src/interfaces/octave_modular/sg_print_functions.cpp:6:0:
/usr/local/include/octave-4.2.0/octave/../octave/oct-obj.h:33:2: warning: #warning oct-obj.h has been deprecated; use ovl.h instead [-Wcpp]
 #warning oct-obj.h has been deprecated; use ovl.h instead
  ^
In file included from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:181:0:
/usr/local/include/octave-4.2.0/octave/../octave/toplev.h:28:2: warning: #warning "toplev.h has been deprecated; use interpreter.h instead" [-Wcpp]
 #warning "toplev.h has been deprecated; use interpreter.h instead"
  ^
In file included from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:4814:0:
/usr/local/include/octave-4.2.0/octave/../octave/config.h:28:2: warning: #warning "config.h has been deprecated; there is no need to include it directly" [-Wcpp]
 #warning "config.h has been deprecated; there is no need to include it directly"
  ^
In file included from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:4819:0:
/usr/local/include/octave-4.2.0/octave/../octave/oct-obj.h:33:2: warning: #warning oct-obj.h has been deprecated; use ovl.h instead [-Wcpp]
 #warning oct-obj.h has been deprecated; use ovl.h instead
  ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘void SWIG_InstallBinaryOps(int, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:2147:50: error: ‘op_lshift’ is not a member of ‘octave_value’
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:2147:128: error: ‘op_lshift’ is not a member of ‘octave_value’
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:2148:50: error: ‘op_rshift’ is not a member of ‘octave_value’
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:2148:128: error: ‘op_rshift’ is not a member of ‘octave_value’
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_RealSparseMatrixOperator__SWIG_1(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:205665:26: warning: ‘octave_idx_type Sparse<T>::nelem() const [with T = double; octave_idx_type = int]’ is deprecated: use 'nzmax' instead [-Wdeprecated-declarations]
     int64_t nnz=sm.nelem();
                          ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:263:19: note: declared here
   octave_idx_type nelem (void) const { return nzmax (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_Statistics_log_det__SWIG_1(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:219373:26: warning: ‘octave_idx_type Sparse<T>::nelem() const [with T = double; octave_idx_type = int]’ is deprecated: use 'nzmax' instead [-Wdeprecated-declarations]
     int64_t nnz=sm.nelem();
                          ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:263:19: note: declared here
   octave_idx_type nelem (void) const { return nzmax (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_Statistics_sample_from_gaussian__SWIG_3(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:219858:26: warning: ‘octave_idx_type Sparse<T>::nelem() const [with T = double; octave_idx_type = int]’ is deprecated: use 'nzmax' instead [-Wdeprecated-declarations]
     int64_t nnz=sm.nelem();
                          ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:263:19: note: declared here
   octave_idx_type nelem (void) const { return nzmax (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_Statistics_sample_from_gaussian__SWIG_4(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:220002:26: warning: ‘octave_idx_type Sparse<T>::nelem() const [with T = double; octave_idx_type = int]’ is deprecated: use 'nzmax' instead [-Wdeprecated-declarations]
     int64_t nnz=sm.nelem();
                          ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:263:19: note: declared here
   octave_idx_type nelem (void) const { return nzmax (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_Statistics_sample_from_gaussian__SWIG_5(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:220138:26: warning: ‘octave_idx_type Sparse<T>::nelem() const [with T = double; octave_idx_type = int]’ is deprecated: use 'nzmax' instead [-Wdeprecated-declarations]
     int64_t nnz=sm.nelem();
                          ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:263:19: note: declared here
   octave_idx_type nelem (void) const { return nzmax (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_LogDetEstimator__SWIG_1(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:224911:26: warning: ‘octave_idx_type Sparse<T>::nelem() const [with T = double; octave_idx_type = int]’ is deprecated: use 'nzmax' instead [-Wdeprecated-declarations]
     int64_t nnz=sm.nelem();
                          ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:263:19: note: declared here
   octave_idx_type nelem (void) const { return nzmax (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_StringCharFeatures__SWIG_2(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:237884:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_StringCharFeatures__SWIG_3(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:238022:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_StringCharFeatures_set_features(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:240562:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_StringByteFeatures__SWIG_2(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:242044:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_StringByteFeatures__SWIG_3(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:242182:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_StringByteFeatures_set_features(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:244722:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_StringWordFeatures__SWIG_2(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:246204:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_StringWordFeatures__SWIG_3(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:246342:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_StringWordFeatures_set_features(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:248882:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_StringIntFeatures__SWIG_2(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:250364:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_StringIntFeatures__SWIG_3(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:250502:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_StringIntFeatures_set_features(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:253042:27: warning: ‘octave_idx_type Array<T>::nelem() const [with T = octave_value; octave_idx_type = int]’ is deprecated: use 'numel' instead [-Wdeprecated-declarations]
       num_strings=c.nelem();
                           ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:37:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Array.h:360:19: note: declared here
   octave_idx_type nelem (void) const { return numel (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_new_SparseRealFeatures__SWIG_2(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:292937:26: warning: ‘octave_idx_type Sparse<T>::nelem() const [with T = double; octave_idx_type = int]’ is deprecated: use 'nzmax' instead [-Wdeprecated-declarations]
     int64_t nnz=sm.nelem();
                          ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:263:19: note: declared here
   octave_idx_type nelem (void) const { return nzmax (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_SparseRealFeatures_set_sparse_feature_matrix(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:293762:26: warning: ‘octave_idx_type Sparse<T>::nelem() const [with T = double; octave_idx_type = int]’ is deprecated: use 'nzmax' instead [-Wdeprecated-declarations]
     int64_t nnz=sm.nelem();
                          ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:263:19: note: declared here
   octave_idx_type nelem (void) const { return nzmax (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list _wrap_LibLinearMTL_set_task_similarity_matrix(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:575236:26: warning: ‘octave_idx_type Sparse<T>::nelem() const [with T = double; octave_idx_type = int]’ is deprecated: use 'nzmax' instead [-Wdeprecated-declarations]
     int64_t nnz=sm.nelem();
                          ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/MSparse.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/MatrixType.h:29,
                 from /usr/local/include/octave-4.2.0/octave/../octave/mx-base.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/Matrix.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:30,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/Sparse.h:263:19: note: declared here
   octave_idx_type nelem (void) const { return nzmax (); }
                   ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘bool SWIG_Octave_LoadModule(std::__cxx11::string)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:666518:20: warning: ‘unwind_protect’ is deprecated: use 'octave::unwind_protect' instead [-Wdeprecated-declarations]
     unwind_protect frame;
                    ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/error.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ov-base.h:40,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ov.h:57,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ovl.h:36,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ov-fcn.h:33,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ov-builtin.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/defun-int.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/defun-dld.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:32,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/unwind-prot.h:157:32: note: declared here
 typedef octave::unwind_protect unwind_protect;
                                ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘bool SWIG_Octave_InstallFunction(octave_function*, std::__cxx11::string)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:666550:20: warning: ‘unwind_protect’ is deprecated: use 'octave::unwind_protect' instead [-Wdeprecated-declarations]
     unwind_protect frame;
                    ^
In file included from /usr/local/include/octave-4.2.0/octave/../octave/error.h:31:0,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ov-base.h:40,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ov.h:57,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ovl.h:36,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ov-fcn.h:33,
                 from /usr/local/include/octave-4.2.0/octave/../octave/ov-builtin.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/defun-int.h:30,
                 from /usr/local/include/octave-4.2.0/octave/../octave/defun-dld.h:32,
                 from /usr/local/include/octave-4.2.0/octave/../octave/oct.h:32,
                 from /home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:173:
/usr/local/include/octave-4.2.0/octave/../octave/unwind-prot.h:157:32: note: declared here
 typedef octave::unwind_protect unwind_protect;
                                ^
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx: In function ‘octave_value_list Fmodshogun(const octave_value_list&, int)’:
/home/bee/opt/shogun-src/build/src/interfaces/octave_modular/modshogunOCTAVE_wrap.cxx:666736:27: error: ‘octave_call_stack’ has not been declared
     octave_function *me = octave_call_stack::current();
                           ^
src/interfaces/octave_modular/CMakeFiles/octave_modular.dir/build.make:307: recipe for target 'src/interfaces/octave_modular/CMakeFiles/octave_modular.dir/modshogunOCTAVE_wrap.cxx.o' failed
make[2]: *** [src/interfaces/octave_modular/CMakeFiles/octave_modular.dir/modshogunOCTAVE_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:195: recipe for target 'src/interfaces/octave_modular/CMakeFiles/octave_modular.dir/all' failed
make[1]: *** [src/interfaces/octave_modular/CMakeFiles/octave_modular.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Shogun from latest master, OS is Ubuntu 16.04 64 bit, swig 3.010

@karlnapf karlnapf added this to the Shogun 5.1 milestone Dec 12, 2016
@karlnapf
Member

Thanks for reporting. Looks like some octave include file changes cause this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment