Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure with octave 5.1.0 #256

Closed
opoplawski opened this issue Apr 6, 2019 · 2 comments
Closed

Build failure with octave 5.1.0 #256

opoplawski opened this issue Apr 6, 2019 · 2 comments

Comments

@opoplawski
Copy link
Contributor

Trying to build NLOpt with octave 5.1.0 fails:

[ 84%] Building CXX object src/octave/CMakeFiles/nlopt_optimize.dir/nlopt_optimize-oct.cc.o
cd /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave && /usr/bin/c++  -DNLOPT_DLL -Dnlopt_optimize_EXPORTS -I/usr/include/octave-5.1.0 -I/usr/include/octave-5.1.0/octave -I/builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave -I/builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/api  -std=c++11 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpermissive -DNDEBUG -fPIC   -o CMakeFiles/nlopt_optimize.dir/nlopt_optimize-oct.cc.o -c /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc
make[2]: Leaving directory '/builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0'
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc: In function 'double user_function(unsigned int, const double*, double*, void*)':
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:97:16: error: 'class octave_function' has no member named 'do_multi_index_op'; did you mean 'do_index_op'?
BUILDSTDERR:    97 |     = data->f->do_multi_index_op(gradient ? 2 : 1, args);
BUILDSTDERR:       |                ^~~~~~~~~~~~~~~~~
BUILDSTDERR:       |                do_index_op
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc: In function 'double user_function1(unsigned int, const double*, double*, void*)':
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:139:10: error: 'class octave_function' has no member named 'do_multi_index_op'; did you mean 'do_index_op'?
BUILDSTDERR:   139 |     = f->do_multi_index_op(gradient ? 2 : 1, args);
BUILDSTDERR:       |          ^~~~~~~~~~~~~~~~~
BUILDSTDERR:       |          do_index_op
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc: In function 'nlopt_opt_s* make_opt(octave_map&, int)':
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:217:52: warning: 'bool octave_value::is_map() const' is deprecated: [4.4]: use 'isstruct' instead [-Wdeprecated-declarations]
BUILDSTDERR:   217 |    && (opts.contents("local_optimizer"))(0).is_map(),
BUILDSTDERR:       |                                                    ^
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:162:33: note: in definition of macro 'CHECK1'
BUILDSTDERR:   162 | #define CHECK1(cond, msg) if (!(cond)) { fprintf(stderr, msg "\n\n"); nlopt_destroy(opt); nlopt_destroy(local_opt); return NULL; }
BUILDSTDERR:       |                                 ^~~~
BUILDSTDERR: In file included from /usr/include/octave-5.1.0/octave/ovl.h:36,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/ov-fcn.h:33,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/ov-builtin.h:32,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/defun-int.h:30,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/defun-dld.h:32,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/oct.h:32,
BUILDSTDERR:                  from /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:23:
BUILDSTDERR: /usr/include/octave-5.1.0/octave/ov.h:594:8: note: declared here
BUILDSTDERR:   594 |   bool is_map (void) const
BUILDSTDERR:       |        ^~~~~~
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc: In function 'octave_value_list Fnlopt_optimize(const octave_value_list&, int)':
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:239:24: warning: 'bool octave_value::is_map() const' is deprecated: [4.4]: use 'isstruct' instead [-Wdeprecated-declarations]
BUILDSTDERR:   239 |   CHECK(args(0).is_map(), "opt must be structure")
BUILDSTDERR:       |                        ^
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:229:32: note: in definition of macro 'CHECK'
BUILDSTDERR:   229 | #define CHECK(cond, msg) if (!(cond)) { fprintf(stderr, msg "\n\n"); nlopt_destroy(opt); return retval; }
BUILDSTDERR:       |                                ^~~~
BUILDSTDERR: In file included from /usr/include/octave-5.1.0/octave/ovl.h:36,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/ov-fcn.h:33,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/ov-builtin.h:32,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/defun-int.h:30,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/defun-dld.h:32,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/oct.h:32,
BUILDSTDERR:                  from /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:23:
BUILDSTDERR: /usr/include/octave-5.1.0/octave/ov.h:594:8: note: declared here
BUILDSTDERR:   594 |   bool is_map (void) const
BUILDSTDERR:       |        ^~~~~~
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:273:44: warning: 'bool octave_value::is_cell() const' is deprecated: [4.4]: use 'iscell' instead [-Wdeprecated-declarations]
BUILDSTDERR:   273 |     CHECK((opts.contents("fc"))(0).is_cell(), "opt.fc must be cell array");
BUILDSTDERR:       |                                            ^
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:229:32: note: in definition of macro 'CHECK'
BUILDSTDERR:   229 | #define CHECK(cond, msg) if (!(cond)) { fprintf(stderr, msg "\n\n"); nlopt_destroy(opt); return retval; }
BUILDSTDERR:       |                                ^~~~
BUILDSTDERR: In file included from /usr/include/octave-5.1.0/octave/ovl.h:36,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/ov-fcn.h:33,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/ov-builtin.h:32,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/defun-int.h:30,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/defun-dld.h:32,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/oct.h:32,
BUILDSTDERR:                  from /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:23:
BUILDSTDERR: /usr/include/octave-5.1.0/octave/ov.h:541:8: note: declared here
BUILDSTDERR:   541 |   bool is_cell (void) const
BUILDSTDERR:       |        ^~~~~~~
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:290:43: warning: 'bool octave_value::is_cell() const' is deprecated: [4.4]: use 'iscell' instead [-Wdeprecated-declarations]
BUILDSTDERR:   290 |     CHECK((opts.contents("h"))(0).is_cell(), "opt.h must be cell array");
BUILDSTDERR:       |                                           ^
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:229:32: note: in definition of macro 'CHECK'
BUILDSTDERR:   229 | #define CHECK(cond, msg) if (!(cond)) { fprintf(stderr, msg "\n\n"); nlopt_destroy(opt); return retval; }
BUILDSTDERR:       |                                ^~~~
BUILDSTDERR: In file included from /usr/include/octave-5.1.0/octave/ovl.h:36,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/ov-fcn.h:33,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/ov-builtin.h:32,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/defun-int.h:30,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/defun-dld.h:32,
BUILDSTDERR:                  from /usr/include/octave-5.1.0/octave/oct.h:32,
BUILDSTDERR:                  from /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:23:
BUILDSTDERR: /usr/include/octave-5.1.0/octave/ov.h:541:8: note: declared here
BUILDSTDERR:   541 |   bool is_cell (void) const
BUILDSTDERR:       |        ^~~~~~~
BUILDSTDERR: /builddir/build/BUILD/nlopt-2.5.0/nlopt-2.5.0/src/octave/nlopt_optimize-oct.cc:234:10: warning: unused variable 'A' [-Wunused-variable]
BUILDSTDERR:   234 |   double A;
BUILDSTDERR:       |          ^
@jschueller
Copy link
Collaborator

should already be fixed in master by #245

@opoplawski
Copy link
Contributor Author

Indeed it is, thanks. Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants