Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1197180

Bug#1070956: octave-fits FTBFS with Octave 9.1.0

From Adrian Bunk <bunk@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1070956: octave-fits FTBFS with Octave 9.1.0
Date 2024-05-11 23:00 +0200
Message-ID <ID1Z0-cGu5-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Source: octave-fits
Version: 1.0.7-7
Severity: serious
Tags: ftbfs trixie sid

https://buildd.debian.org/status/fetch.php?pkg=octave-fits&arch=amd64&ver=1.0.7-7%2Bb4&stamp=1715454563&raw=0

...
g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-9.1.0/octave/.. -I/usr/include/octave-9.1.0/octave  -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -Wall   save_fits_image_multi_ext.cc -o /tmp/oct-bxJQR8.o
save_fits_image_multi_ext.cc: In function ‘octave_value_list Fsave_fits_image_multi_ext(const octave_value_list&, int)’:
save_fits_image_multi_ext.cc:140:60: error: passing ‘const NDArray’ as ‘this’ argument discards qualifiers [-fpermissive]
  140 |     double * datap = const_cast<double*>( image.fortran_vec() );
      |                                           ~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/octave-9.1.0/octave/../octave/Array-util.h:31,
                 from /usr/include/octave-9.1.0/octave/../octave/MSparse.h:31,
                 from /usr/include/octave-9.1.0/octave/../octave/MatrixType.h:33,
                 from /usr/include/octave-9.1.0/octave/../octave/mx-base.h:33,
                 from /usr/include/octave-9.1.0/octave/../octave/Matrix.h:34,
                 from /usr/include/octave-9.1.0/octave/../octave/oct.h:33,
                 from save_fits_image_multi_ext.cc:19:
/usr/include/octave-9.1.0/octave/../octave/Array.h:666:20: note:   in call to ‘T* Array<T, Alloc>::fortran_vec() [with T = double; Alloc = std::allocator<double>]’
  666 |   OCTARRAY_API T * fortran_vec ();
      |                    ^~~~~~~~~~~
save_fits_image.cc: In function ‘octave_value_list Fsave_fits_image(const octave_value_list&, int)’:
save_fits_image.cc:132:58: error: passing ‘const NDArray’ as ‘this’ argument discards qualifiers [-fpermissive]
  132 |   double * datap = const_cast<double*>( image.fortran_vec() );
      |                                         ~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/octave-9.1.0/octave/../octave/Array-util.h:31,
                 from /usr/include/octave-9.1.0/octave/../octave/MSparse.h:31,
                 from /usr/include/octave-9.1.0/octave/../octave/MatrixType.h:33,
                 from /usr/include/octave-9.1.0/octave/../octave/mx-base.h:33,
                 from /usr/include/octave-9.1.0/octave/../octave/Matrix.h:34,
                 from /usr/include/octave-9.1.0/octave/../octave/oct.h:33,
                 from save_fits_image.cc:19:
/usr/include/octave-9.1.0/octave/../octave/Array.h:666:20: note:   in call to ‘T* Array<T, Alloc>::fortran_vec() [with T = double; Alloc = std::allocator<double>]’
  666 |   OCTARRAY_API T * fortran_vec ();
      |                    ^~~~~~~~~~~
make[1]: *** [Makefile:9: save_fits_image_multi_ext.oct] Error 1

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1070956: octave-fits FTBFS with Octave 9.1.0 Adrian Bunk <bunk@debian.org> - 2024-05-11 23:00 +0200

csiph-web