NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.31k stars 14.28k forks source link

octavePackages.image doesn't build #186928

Closed zeorin closed 1 year ago

zeorin commented 2 years ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build octave.withPackages (ps: with ps; [ image ]), e.g.:
$ nix-shell -p 'octave.withPackages (ps: with ps; [ image ])'

Build log

Sourcing write-required-octave-packages-hook.sh
Using writeRequiredOctavePackagesPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/yn8g0bcza1j8gzqhz771bhcjjhs28q24-image-2.12.0.tar.gz
source root is image-2.12.0
setting SOURCE_DATE_EPOCH to timestamp 1580650134 of file image-2.12.0/src/configure
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "buildPhase" }
building
hough_line.cc: In function 'octave_value_list Fhough_line(const octave_value_list&, int)':
hough_line.cc:50:97: warning: 'Range::Range(double, double, double)' is deprecated: [7]: use the 'octave::range<double>' class instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
   50 |   const ColumnVector thetas = (DEF_THETA) ? ColumnVector (Range (-M_PI/2.0, M_PI/2.0, M_PI/180.0).matrix_value ())
      |                                                                                                 ^
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov.h:39,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ovl.h:38,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-fcn.h:36,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-builtin.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-int.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-dld.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/oct.h:35,
                 from hough_line.cc:24:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Range.h:434:3: note: declared here
  434 |   Range (double b, double l, double i)
      |   ^~~~~
hough_line.cc:59:47: warning: 'Range::Range(double, double)' is deprecated: [7]: use the 'octave::range<double>' class instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
   59 |   RowVector bins = RowVector (Range(1, nr_bins).matrix_value ()) - ceil (nr_bins/2.0);
      |                                               ^
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov.h:39,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ovl.h:38,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-fcn.h:36,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-builtin.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-int.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-dld.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/oct.h:35,
                 from hough_line.cc:24:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Range.h:426:3: note: declared here
  426 |   Range (double b, double l)
      |   ^~~~~
bwdist.cc: In function 'void edtfunc(float (*)(short int, short int), const boolNDArray&, std::vector<short int>&, std::vector<short int>&)':
bwdist.cc:55:38: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = bool; Alloc = std::allocator<bool>]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
   55 |   const bool* elem = img.fortran_vec ();
      |                      ~~~~~~~~~~~~~~~~^~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array-util.h:31,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/MSparse.h:31,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/MatrixType.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/mx-base.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Matrix.h:34,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/oct.h:33,
                 from bwdist.cc:19:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
bwdist.cc: In function 'octave_value_list Fbwdist(const octave_value_list&, int)':
bwdist.cc:538:66: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = int; Alloc = std::allocator<int>]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
  538 |           const octave_idx_type* pos_vec = positions.fortran_vec ();
      |                                            ~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array-util.h:31,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/MSparse.h:31,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/MatrixType.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/mx-base.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Matrix.h:34,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/oct.h:33,
                 from bwdist.cc:19:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
intlut.cc: In instantiation of 'T intlut(const T&, const T&) [with T = intNDArray<octave_int<unsigned char> >]':
intlut.cc:116:3:   required from here
intlut.cc:50:37: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = octave_int<unsigned char>; Alloc = std::allocator<octave_int<unsigned char> >]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
   50 |   const auto* A_vec = A.fortran_vec ();
      |                       ~~~~~~~~~~~~~~^~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/str-vec.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-fcn.h:34,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-builtin.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-int.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-dld.h:35,
                 from intlut.cc:26:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
intlut.cc:51:41: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = octave_int<unsigned char>; Alloc = std::allocator<octave_int<unsigned char> >]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
   51 |   const auto* lut_vec = lut.fortran_vec ();
      |                         ~~~~~~~~~~~~~~~~^~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/str-vec.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-fcn.h:34,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-builtin.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-int.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-dld.h:35,
                 from intlut.cc:26:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
intlut.cc: In instantiation of 'T intlut(const T&, const T&) [with T = intNDArray<octave_int<short unsigned int> >]':
intlut.cc:117:8:   required from here
intlut.cc:50:37: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = octave_int<short unsigned int>; Alloc = std::allocator<octave_int<short unsigned int> >]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
   50 |   const auto* A_vec = A.fortran_vec ();
      |                       ~~~~~~~~~~~~~~^~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/str-vec.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-fcn.h:34,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-builtin.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-int.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-dld.h:35,
                 from intlut.cc:26:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
intlut.cc:51:41: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = octave_int<short unsigned int>; Alloc = std::allocator<octave_int<short unsigned int> >]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
   51 |   const auto* lut_vec = lut.fortran_vec ();
      |                         ~~~~~~~~~~~~~~~~^~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/str-vec.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-fcn.h:34,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-builtin.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-int.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-dld.h:35,
                 from intlut.cc:26:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
intlut.cc: In instantiation of 'T intlut(const T&, const T&) [with T = intNDArray<octave_int<short int> >]':
intlut.cc:118:8:   required from here
intlut.cc:50:37: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = octave_int<short int>; Alloc = std::allocator<octave_int<short int> >]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
   50 |   const auto* A_vec = A.fortran_vec ();
      |                       ~~~~~~~~~~~~~~^~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/str-vec.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-fcn.h:34,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-builtin.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-int.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-dld.h:35,
                 from intlut.cc:26:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
intlut.cc:51:41: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = octave_int<short int>; Alloc = std::allocator<octave_int<short int> >]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
   51 |   const auto* lut_vec = lut.fortran_vec ();
      |                         ~~~~~~~~~~~~~~~~^~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/str-vec.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-fcn.h:34,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/ov-builtin.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-int.h:33,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/defun-dld.h:35,
                 from intlut.cc:26:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
In file included from connectivity.cc:17:
connectivity.h: In static member function 'static void octave::image::connectivity::set_padding(const dim_vector&, const dim_vector&, T&, const P&)':
connectivity.h:156:43: error: 'const class dim_vector' has no member named 'to_jit'
  156 |   const octave_idx_type* strides_v = size.to_jit ();
      |                                           ^~~~~~
connectivity.cc: In member function 'Array<int> octave::image::connectivity::neighbourhood(const dim_vector&) const':
connectivity.cc:187:36: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = bool; Alloc = std::allocator<bool>]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
  187 |   const bool* m = mask.fortran_vec ();
      |                   ~~~~~~~~~~~~~~~~~^~
In file included from connectivity.h:24,
                 from connectivity.cc:17:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
In file included from connectivity.cc:17:
connectivity.h: In instantiation of 'static void octave::image::connectivity::set_padding(const dim_vector&, const dim_vector&, T&, const P&) [with T = boolNDArray; P = bool]':
connectivity.cc:293:15:   required from here
connectivity.h:154:58: warning: 'const T* Array<T, Alloc>::fortran_vec() const [with T = int; Alloc = std::allocator<int>]' is deprecated: [7]: for read-only access, use 'data' method instead [-Wdeprecated-declarations[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations]]
  154 |   const octave_idx_type* lengths_v = lengths.fortran_vec ();
      |                                      ~~~~~~~~~~~~~~~~~~~~^~
In file included from connectivity.h:24,
                 from connectivity.cc:17:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/Array.h:620:13: note: declared here
  620 |   const T * fortran_vec (void) const { return data (); }
      |             ^~~~~~~~~~~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/interpreter.h:47,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/pt-bp.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/pt-cmd.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/pt-decl.h:36,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/pt-misc.h:32,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/parse.h:41,
                 from strel.cc:27:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/graphics.h:8200:21: error: 'struct octave::image' redeclared as different kind of entity
 8200 | class OCTINTERP_API image : public base_graphics_object
      |                     ^~~~~
In file included from strel.cc:21:
strel.h:50:13: note: previous declaration 'namespace octave::image { }'
   50 |   namespace image
      |             ^~~~~
In file included from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/interpreter.h:47,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/pt-bp.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/pt-cmd.h:35,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/pt-decl.h:36,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/pt-misc.h:32,
                 from /nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/parse.h:41,
                 from strel.cc:27:
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/include/octave-7.1.0/octave/../octave/graphics.h:14612:17: error: 'image' in namespace 'octave' does not name a type
14612 | typedef octave::image image;
      |                 ^~~~~
In file included from strel.cc:21:
strel.h:50:13: note: 'octave::image' declared here
   50 |   namespace image
      |             ^~~~~
make: *** [Makefile:24: connectivity.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:24: strel.o] Error 1
make: Entering directory '/nix/store/wj3lidrir4qb25q584i1xnd4n3nldylh-octave-7.1.0-image-2.12.0/image-2.12.0/src'
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 __spatial_filtering__.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 __bilateral__.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 __eps__.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 __custom_gaussian_smoothing__.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 __boundary__.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 bwfill.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 rotate_scale.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 hough_line.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 graycomatrix.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 bwdist.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 intlut.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 nonmax_suppress.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 -c strel.cc
/nix/store/nfdmi1j2g9akx2g6cwvs9jmg0030g80z-octave-7.1.0/bin/mkoctfile-7.1.0  -Wall -g -O2 -c connectivity.cc
cp ntsc2rgb.m.in ntsc2rgb.m
cp rgb2ntsc.m.in rgb2ntsc.m
make: Leaving directory '/nix/store/wj3lidrir4qb25q584i1xnd4n3nldylh-octave-7.1.0-image-2.12.0/image-2.12.0/src'

error: pkg: error running 'make' for the image package
error: called from
    configure_make at line 117 column 9
    build at line 79 column 7
    pkg at line 720 column 7

Notify maintainers

@7c6f434c @doronbehar

Metadata

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.18.14-zen1, NixOS, 22.05 (Quokka), 22.05.2467.879121648fe`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.1`
 - channels(zeorin): `"home-manager-22.05.tar.gz"`
 - channels(root): `"nixos-22.05, nixos-unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
doronbehar commented 2 years ago

Indeed many packages broke ever since the update to 7.1.0, see: https://github.com/NixOS/nixpkgs/issues/168943 . There isn't much we can do, besides fixing these issues upstream, probably at the package level, and not at octave's level.