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 fails with nlopt-2.9.0: error: use of undeclared identifier 'NLOPT_LD_LBFGS_NOCEDAL' #4009

Open
yurivict opened this issue Nov 15, 2024 · 1 comment

Comments

@yurivict
Copy link

In file included from src/solvers/nlopt_optimization_solver.C:29:
./include/libmesh/nlopt_optimization_solver.h:189:41: error: use of undeclared identifier 'NLOPT_LD_LBFGS_NOCEDAL'
  189 |     ret["LD_LBFGS_NOCEDAL"]           = NLOPT_LD_LBFGS_NOCEDAL;
      |                                         ^

Version: 1.7.6

@roystgnr
Copy link
Member

Thanks for reporting this!

Looks like the problem here isn't the libMesh version, it's the nlopt version. They just removed that enum 2 weeks ago, in stevengj/nlopt@f4e74eb#diff-7447dda2c1e8a9fd889796fb62786af1ca90c46ddc0cde8818e7eabd757c4e0e

We'll get a fix into master and the upcoming 1.8.x releases, but for libMesh 1.7.6 it's probably best to just configure libMesh with --disable-nlopt if your only available version of that is the newest.

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