nlopt v2.4.2.tar.gz in "...abinitio..." seems to be corrupted

Issue #34 new
Former user created an issue

Hi. I am trying to install MUQ2 in my Mac.

The tar command complains that the format of the tar.gz file is not recognized.

I describe below 2 other attempts that also fail...

+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

If I try ...

cmake \ -DCMAKE_INSTALL_PREFIX=/Users/eeprude/install/muq2 \ -DMUQ_USE_OPENMP=OFF \ -DMUQ_FORCE_INTERNAL_BOOST=ON \ -DBOOST_EXTERNAL_SOURCE=https://sourceforge.net/projects/boost/files/boost/1.78.0/boost_1_78_0.tar.gz \ -DMUQ_FORCE_INTERNAL_NANOFLANN=ON \ -DNANOFLANN_EXTERNAL_SOURCE=https://github.com/jlblancoc/nanoflann/archive/refs/tags/v1.4.3.tar.gz \ -DMUQ_NLOPT_DIR=/Users/eeprude/install/nlopt-2.7.1 \ -DMUQ_EIGEN3_DIR=/Users/eeprude/install/eigen-3.4.0 \ -DMUQ_HDF5_DIR=/Users/eeprude/install/hdf5-1.14.0 \ -DMUQ_SUNDIALS_DIR=/Users/eeprude/install/sundials-6.5.0 \ ..

then the make of MUQ2 exits with the following error:

[ 57%] Linking CXX shared library libmuqOptimization.dylib ld: warning: ignoring file /Users/eeprude/install/nlopt-2.7.1/lib/libnlopt.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/eeprude/install/nlopt-2.7.1/lib/libnlopt.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 Undefined symbols for architecture x86_64: "_nlopt_add_equality_mconstraint", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_add_inequality_mconstraint", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_create", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_optimize", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_set_ftol_abs", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_set_ftol_rel", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_set_max_objective", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_set_maxeval", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_set_min_objective", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_set_xtol_abs1", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o "_nlopt_set_xtol_rel", referenced from: muq::Optimization::NLoptOptimizer::EvaluateImpl(std::__1::vector<std::__1::reference_wrapper<boost::any const>, std::__1::allocator<std::__1::reference_wrapper<boost::any const> > > const&) in NLoptOptimizer.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [libmuqOptimization.dylib] Error 1 make[1]: [CMakeFiles/muqOptimization.dir/all] Error 2 make: *** [all] Error 2

+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

If I try ...

cmake \ -DCMAKE_INSTALL_PREFIX=/Users/eeprude/install/muq2 \ -DMUQ_USE_OPENMP=OFF \ -DMUQ_FORCE_INTERNAL_BOOST=ON \ -DBOOST_EXTERNAL_SOURCE=https://sourceforge.net/projects/boost/files/boost/1.78.0/boost_1_78_0.tar.gz \ -DMUQ_FORCE_INTERNAL_NANOFLANN=ON \ -DNANOFLANN_EXTERNAL_SOURCE=https://github.com/jlblancoc/nanoflann/archive/refs/tags/v1.4.3.tar.gz \ -DMUQ_FORCE_INTERNAL_NLOPT=ON \ -DNLOPT_EXTERNAL_SOURCE=https://github.com/stevengj/nlopt/archive/v2.7.1.tar.gz \ -DMUQ_EIGEN3_DIR=/Users/eeprude/install/eigen-3.4.0 \ -DMUQ_HDF5_DIR=/Users/eeprude/install/hdf5-1.14.0 \ -DMUQ_SUNDIALS_DIR=/Users/eeprude/install/sundials-6.5.0 \ ..

then the make of MUQ2 exits with the following error:

[ 3%] Built target EIGEN3 [ 6%] Built target STANMATH [ 9%] Built target SUNDIALS [ 10%] Creating directories for 'NLOPT' [ 10%] Performing download step (download, verify and extract) for 'NLOPT' -- Downloading... dst='/Users/eeprude/work/muq2/muq2/build/external/nlopt/src/v2.7.1.tar.gz' timeout='none' inactivity timeout='none' -- Using src='https://github.com/stevengj/nlopt/archive/v2.7.1.tar.gz' -- Downloading... done -- extracting... src='/Users/eeprude/work/muq2/muq2/build/external/nlopt/src/v2.7.1.tar.gz' dst='/Users/eeprude/work/muq2/muq2/build/external/nlopt/src/NLOPT' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [ 11%] No update step for 'NLOPT' [ 11%] No patch step for 'NLOPT' [ 12%] Performing configure step for 'NLOPT' /bin/sh: /Users/eeprude/work/muq2/muq2/build/external/nlopt/src/NLOPT/configure: No such file or directory make[2]: [external/nlopt/src/NLOPT-stamp/NLOPT-configure] Error 127 make[1]: [CMakeFiles/NLOPT.dir/all] Error 2 make: *** [all] Error 2

+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Please advise. Thank you in advance,

Ernesto.

Comments (0)

  1. Log in to comment