nlopt-2.10.0 build failure on Ubuntu 24.04 with both Octave 8.2 & 10.2 GCC = 13.3.0
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
- Octave 8.2 package
- Octave 8.2 from source code
- 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.
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.
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.
to use octave 10 you need the master branch, but nlopt 2.10.0 should work fine with octave 8.x