Giter VIP home page Giter VIP logo

Comments (5)

soppera avatar soppera commented on May 30, 2024 1

EDIT: actually this error was due to CMake not finding TBB. When TBB is not there, the compilation of Papilo in its own directory downloads TBB and build it. But when building scipoptsuite directly this is not the case and, since the TBB dependency is missing it fails. The fix for me was installing TBB.

Initial Version

The test below is kept for reference, but see above.

I get a similar error with SCIP ≥ 8.0.0; to actually build it I need to:

cd ~/Downloads/scipoptsuite-8.0.0
cd papilo
mkdir build
cd build
cmake ..
make -j 4

cd ~/Downloads/scipoptsuite-8.0.0
mkdir build
cd build
cmake ..
  -D PAPILO_DIR=~/Downloads/scipoptsuite-8.0.0/papilo/build \
make -j 4

That is build Papilo in its directory first and then build Scip pointing to the build directory of Papilo.

Maybe I am missing something?

from scip.

fschloesser avatar fschloesser commented on May 30, 2024

Dear @Ishaanjolly ,
Can you please post the command that you are executing, especially from where you are starting.
The output looks like are only trying to build scip, then you need to specify a path to papilo or set it to off in the cmake command with -DPAPILO=off.
However it could be simpler to just build the whole scipoptsuite (create a cmake build folder in the scipoptsuite directory as opposed to a cmake build folder in scipoptsuite/scip)
Best,
Franziska

from scip.

Ishaanjolly avatar Ishaanjolly commented on May 30, 2024

Dear Franziska,

Apologies for the delay in my getting back to you. I got very busy with somethings.

Here are the commands I used:

Within scipoptsuite directory, I used the following commands:

mkdir build
cd build
cmake ..
make
make install

Output:

Error: No available formula with the name "bison".
Error: No available formula with the name "flex".
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BISON: Found unsuitable version "2.3", but required is at
  least "2.4.0" (found /usr/bin/bison)
Call Stack (most recent call first):
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindBISON.cmake:306 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  zimpl/CMakeLists.txt:88 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/ishaanjolly/Downloads/scipoptsuite-8.0.0/build/CMakeFiles/CMakeOutput.log".
See also "/Users/ishaanjolly/Downloads/scipoptsuite-8.0.0/build/CMakeFiles/CMakeError.log".
(base) Ishaans-MacBook-Pro:build ishaanjolly$ brew install bison==2.4.0
Running `brew update --preinstall`...
fatal: Could not resolve HEAD to a revision
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> New Casks
abbyy-finereader-pdf                     mellel
alpha                                    mysteriumvpn
eliot                                    paddle-easydl
flycast                                  paragon-camptune
gcc-aarch64-embedded                     pingnoo
hepta                                    playdate-simulator
heroic                                   poker-copilot
iptvnator                                prowlarr
irpf2022                                 roonbridge
jetbrains-gateway                        rwts-pdfwriter
libcblite                                supernotes
libcblite-community                      unicopedia-plus
macast                                   write
mediahuman-audio-converter               xemu
==> Updated Casks
Updated 875 casks.
==> Deleted Casks
bitshares           finereader          password-assistant  red
dusty               macfusion           pd-runner           synergy
edenmath            now                 profilemanager
eggplant            optimal-layout      raiderio

Warning: No available formula with the name "bison==2.4.0".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
(base) Ishaans-MacBook-Pro:build ishaanjolly$ cmake .. 
Error: No available formula with the name "bison".
Error: No available formula with the name "flex".
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BISON: Found unsuitable version "2.3", but required is at
  least "2.4.0" (found /usr/bin/bison)
Call Stack (most recent call first):
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindBISON.cmake:306 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  zimpl/CMakeLists.txt:88 (find_package) 

I think I should declare here that I was able to sucessfully install SCIP 7.0, and PySCIPOPT along with it. However, I guess the dependencies remained as I continued to install SCIP 8.0. Could you please suggest a way to get past this error and be able to work with SCIP. The bison assertion seems a bit weird as I already have it on my machine.

from scip.

fschloesser avatar fschloesser commented on May 30, 2024

Dear @Ishaanjolly,
The requirements to flex and bison have changed, actually you can see in your output that bison has been found, but a version too old:

CMake Error at /Applications/CMake.app/Contents/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BISON: Found unsuitable version "2.3", but required is at
  least "2.4.0" (found /usr/bin/bison)

As you are on mac, cmake tries to find the necessary packages via brew, but can't seem to succeed. This could be due to your system being a bit too old?
If you don't need ZIMPL then you should be able to resolve the error by adding -DZIMPL=off to your initial cmake call, otherwise you'd need to manually install a suitable version of bison.
Hope this helps,
Best,
Franziska

from scip.

ambros-gleixner avatar ambros-gleixner commented on May 30, 2024

Hi @Ishaanjolly - has your problem been solved? Please reopen if not.

from scip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.