octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59004] [octave forge] (communications) Error


From: anonymous
Subject: [Octave-bug-tracker] [bug #59004] [octave forge] (communications) Error when trying to build (constness of cat op args)
Date: Tue, 22 Sep 2020 13:56:24 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0

Follow-up Comment #4, bug #59004 (project octave):

Hello,

I found this bug report and would like to add to it instead of creating a new
report. A related but different error happens on trying to install
communications from Forge. This is on 64-bit Linux using the current dev
version of Octave (hg id 903fe321649b).


octave:2> pkg install -forge communications
genqamdemod.cc:82:12: warning: 'error_state' is deprecated
[-Wdeprecated-declarations]
      if (!error_state)
           ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
op-gm-m.cc:132:3: error: cannot initialize a parameter of type
'octave::type_info::cat_op_fcn' (aka
      'octave_value (*)(const octave_base_value &, const octave_base_value &,
const Array<long> &)') with an
      lvalue of type 'octave_value (octave_base_value &, const
octave_base_value &, const Array<octave_idx_type>
      &)' (aka 'octave_value (octave_base_value &, const octave_base_value &,
const Array<long> &)'): type
      mismatch at 1st parameter ('const octave_base_value &' vs
'octave_base_value &')
  INSTALL_CATOP_TI (ti, octave_galois, octave_matrix, gm_m);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ops.h:62:50: note: expanded
from macro 'INSTALL_CATOP_TI'
  (t1::static_type_id (), t2::static_type_id (), CONCAT2 (oct_catop_, f));
                                                 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ops.h:40:23: note: expanded
from macro 'CONCAT2'
#define CONCAT2(x, y) CONCAT2X (x, y)
                      ^~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ops.h:39:24: note: expanded
from macro 'CONCAT2X'
#define CONCAT2X(x, y) x ## y
                       ^~~~~~
<scratch space>:126:1: note: expanded from here
oct_catop_gm_m
^~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ov-typeinfo.h:121:53: note:
passing argument to parameter 'f'
      here
    bool install_cat_op (int t1, int t2, cat_op_fcn f)
                                                    ^
op-gm-gm.cc:158:3: error: cannot initialize a parameter of type
'octave::type_info::cat_op_fcn' (aka
      'octave_value (*)(const octave_base_value &, const octave_base_value &,
const Array<long> &)') with an
      lvalue of type 'octave_value (octave_base_value &, const
octave_base_value &, const Array<octave_idx_type>
      &)' (aka 'octave_value (octave_base_value &, const octave_base_value &,
const Array<long> &)'): type
      mismatch at 1st parameter ('const octave_base_value &' vs
'octave_base_value &')
  INSTALL_CATOP_TI (ti, octave_galois, octave_galois, gm_gm);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ops.h:62:50: note: expanded
from macro 'INSTALL_CATOP_TI'
  (t1::static_type_id (), t2::static_type_id (), CONCAT2 (oct_catop_, f));
                                                 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ops.h:40:23: note: expanded
from macro 'CONCAT2'
#define CONCAT2(x, y) CONCAT2X (x, y)
                      ^~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ops.h:39:24: note: expanded
from macro 'CONCAT2X'
#define CONCAT2X(x, y) x ## y
                       ^~~~~~
<scratch space>:147:1: note: expanded from here
oct_catop_gm_gm
^~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ov-typeinfo.h:121:53: note:
passing argument to parameter 'f'
      here
    bool install_cat_op (int t1, int t2, cat_op_fcn f)
                                                    ^
op-gm-s.cc:71:3: error: dynamic_cast from 'const octave_base_value' to
'octave_galois &' casts away qualifiers
  CAST_BINOP_ARGS (octave_galois&, const octave_scalar&);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./galois-ops.h:26:11: note: expanded from macro 'CAST_BINOP_ARGS'
  t1 v1 = dynamic_cast<t1> (a1);                \
          ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:44: op-gm-gm.o] Error 1
make: *** Waiting for unfinished jobs....
1 error generated.
make: *** [Makefile:44: op-gm-m.o] Error 1
1 error generated.
make: *** [Makefile:44: op-gm-s.o] Error 1
1 warning generated.
gf.cc:183:13: warning: 'error_state' is deprecated
[-Wdeprecated-declarations]
      if (! error_state)
            ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
gf.cc:430:3: warning: 'error_state' is deprecated [-Wdeprecated-declarations]
  DATA_REDUCTION (prod);
  ^
gf.cc:393:13: note: expanded from macro 'DATA_REDUCTION'
      if (! error_state) \
            ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
gf.cc:430:3: warning: 'error_state' is deprecated [-Wdeprecated-declarations]
  DATA_REDUCTION (prod);
  ^
gf.cc:402:25: note: expanded from macro 'DATA_REDUCTION'
                  if (! error_state) \
                        ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
gf.cc:449:3: warning: 'error_state' is deprecated [-Wdeprecated-declarations]
  DATA_REDUCTION (sum);
  ^
gf.cc:393:13: note: expanded from macro 'DATA_REDUCTION'
      if (! error_state) \
            ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
gf.cc:449:3: warning: 'error_state' is deprecated [-Wdeprecated-declarations]
  DATA_REDUCTION (sum);
  ^
gf.cc:402:25: note: expanded from macro 'DATA_REDUCTION'
                  if (! error_state) \
                        ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
gf.cc:474:3: warning: 'error_state' is deprecated [-Wdeprecated-declarations]
  DATA_REDUCTION (sumsq);
  ^
gf.cc:393:13: note: expanded from macro 'DATA_REDUCTION'
      if (! error_state) \
            ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
gf.cc:474:3: warning: 'error_state' is deprecated [-Wdeprecated-declarations]
  DATA_REDUCTION (sumsq);
  ^
gf.cc:402:25: note: expanded from macro 'DATA_REDUCTION'
                  if (! error_state) \
                        ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
gf.cc:1020:9: warning: 'error_state' is deprecated
[-Wdeprecated-declarations]
  if (! error_state)
        ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
gf.cc:1107:9: warning: 'error_state' is deprecated
[-Wdeprecated-declarations]
  if (! error_state)
        ^
/usr/local/include/octave-7.0.0/octave/error.h:494:1: note: 'error_state' has
been explicitly marked deprecated
      here
OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
^
/usr/local/include/octave-7.0.0/octave/octave-config.h:77:59: note: expanded
from macro 'OCTAVE_DEPRECATED'
#      define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))
                                                          ^
op-m-gm.cc:133:3: error: cannot initialize a parameter of type
'octave::type_info::cat_op_fcn' (aka
      'octave_value (*)(const octave_base_value &, const octave_base_value &,
const Array<long> &)') with an
      lvalue of type 'octave_value (octave_base_value &, const
octave_base_value &, const Array<octave_idx_type>
      &)' (aka 'octave_value (octave_base_value &, const octave_base_value &,
const Array<long> &)'): type
      mismatch at 1st parameter ('const octave_base_value &' vs
'octave_base_value &')
  INSTALL_CATOP_TI (ti, octave_matrix, octave_galois, m_gm);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ops.h:62:50: note: expanded
from macro 'INSTALL_CATOP_TI'
  (t1::static_type_id (), t2::static_type_id (), CONCAT2 (oct_catop_, f));
                                                 ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ops.h:40:23: note: expanded
from macro 'CONCAT2'
#define CONCAT2(x, y) CONCAT2X (x, y)
                      ^~~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ops.h:39:24: note: expanded
from macro 'CONCAT2X'
#define CONCAT2X(x, y) x ## y
                       ^~~~~~
<scratch space>:127:1: note: expanded from here
oct_catop_m_gm
^~~~~~~~~~~~~~
/usr/local/include/octave-7.0.0/octave/../octave/ov-typeinfo.h:121:53: note:
passing argument to parameter 'f'
      here
    bool install_cat_op (int t1, int t2, cat_op_fcn f)
                                                    ^
1 error generated.
make: *** [Makefile:44: op-m-gm.o] Error 1
9 warnings generated.
make: Entering directory '/tmp/oct-5aeT2d/communications-1.2.2/src'
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H
__errcore__.cc -o __errcore__.oct
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H
__gfweight__.cc -o __gfweight__.oct
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H
cyclgen.cc -o cyclgen.oct
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H
cyclpoly.cc -o cyclpoly.oct
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H
genqamdemod.cc -o genqamdemod.oct
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H -c
galois-def.cc -o galois-def.o
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H -c
galois.cc -o galois.o
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H -c
galoisfield.cc -o galoisfield.o
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H -c gf.cc
-o gf.o
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H -c
op-gm-gm.cc -o op-gm-gm.o
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H -c
op-gm-m.cc -o op-gm-m.o
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H -c
op-gm-s.cc -o op-gm-s.o
/usr/local/bin/mkoctfile-7.0.0 -DGALOIS_DISP_PRIVATES -DHAVE_CONFIG_H -c
op-m-gm.cc -o op-m-gm.o
make: Leaving directory '/tmp/oct-5aeT2d/communications-1.2.2/src'

error: pkg: error running 'make' for the communications package.
error: called from
    configure_make at line 110 column 9
    install at line 196 column 7
    pkg at line 568 column 9
octave:3> 



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59004>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]