nlopt icon indicating copy to clipboard operation
nlopt copied to clipboard

nlopt-2.10.0 build failure on Ubuntu 24.04 with both Octave 8.2 & 10.2 GCC = 13.3.0

Open davidkirkby opened this issue 5 months ago • 3 comments

What happened?

I'm trying to build nlopt-2.10.0 on a Dell 7920 workstation with Ubuntu 24.04. I'm using the gcc included on the system - I have not updated the version of gcc. I'm getting failures to build nlopt with

  1. Octave 8.2 package
  2. Octave 8.2 from source code
  3. Octave 10.2.0 (latest) from source code.

How to reproduce the issue?

cmake ..
make

Version

nlopt-2.10.0

Operating System

Linux

Installation media

from source

Additional Context

Here's standard output and standard error redirected to a log file.

build.log

davidkirkby avatar Jul 26 '25 20:07 davidkirkby

I noticed that SWIG was not installed. I installed that, so cmake shows -- Found SWIG: /usr/bin/swig4.0 (found suitable version "4.2.0", minimum required is "3")
but the compilation still failed.

davidkirkby avatar Jul 26 '25 21:07 davidkirkby

After removing octave, and typing octave, it would would appear that the version of Octave that comes with ubuntu is 8.4.0-1, not 8.2 as I stated.

root@mallard:/mnt/ramdisk/octave-10.2.0# octave Command 'octave' not found, but can be installed with: snap install octave # version 7.1.0, or apt install octave # version 8.4.0-1 See 'snap info octave' for additional versions.

davidkirkby avatar Jul 26 '25 21:07 davidkirkby

to use octave 10 you need the master branch, but nlopt 2.10.0 should work fine with octave 8.x

jschueller avatar Jul 27 '25 04:07 jschueller