Coder Social home page Coder Social logo

Comments (11)

Mizux avatar Mizux commented on June 2, 2024 1

https://github.com/google/or-tools/blob/main/tools/docker/Makefile do support arm64 qemu docker build so on my way to generate a arm64 debian-11 cpp archive... (should take ~4/5h to build)

from or-tools.

Mizux avatar Mizux commented on June 2, 2024

may I have the error log, since we are building for manylinux arm64, it should work on debian arm64 image.

Also since we don't provide any ruby gem support which language do you need ? only the C++ version ?

from or-tools.

trumbitta avatar trumbitta commented on June 2, 2024

may I have the error log, since we are building for manylinux arm64, it should work on debian arm64 image.

Error log for cmake -S. -Bbuild

42.47 -- Configuring done
42.97 CMake Error at cmake/cpp.cmake:355 (target_link_libraries):
42.97   Target "ortools" links to:
42.97 
42.97     absl::absl_check
42.97 
42.97   but the target was not found.  Possible reasons include:
42.97 
42.97     * There is a typo in the target name.
42.97     * A find_package call is missing for an IMPORTED target.
42.97     * An ALIAS target is missing.
42.97 
42.97 Call Stack (most recent call first):
42.97   CMakeLists.txt:412 (include)
42.97 
42.97 
42.97 CMake Error at ortools/graph/CMakeLists.txt:39 (target_link_libraries):
42.97   Target "ortools_graph" links to:
42.97 
42.97     Coin::Cbc
42.97 
42.97   but the target was not found.  Possible reasons include:
42.97 
42.97     * There is a typo in the target name.
42.97     * A find_package call is missing for an IMPORTED target.
42.97     * An ALIAS target is missing.
42.97 
42.97 
42.97 
42.97 CMake Error at ortools/gurobi/CMakeLists.txt:26 (target_link_libraries):
42.97   Target "ortools_gurobi" links to:
42.97 
42.97     Coin::Cbc
42.97 
42.97   but the target was not found.  Possible reasons include:
42.97 
42.97     * There is a typo in the target name.
42.97     * A find_package call is missing for an IMPORTED target.
42.97     * An ALIAS target is missing.
42.97 
42.97 
42.97 
42.97 CMake Error at ortools/linear_solver/CMakeLists.txt:34 (target_link_libraries):
42.97   Target "ortools_linear_solver" links to:
42.97 
42.97     Coin::Cbc
42.97 
42.97   but the target was not found.  Possible reasons include:
42.97 
42.97     * There is a typo in the target name.
42.97     * A find_package call is missing for an IMPORTED target.
42.97     * An ALIAS target is missing.
42.97 
42.97 
42.97 
42.97 CMake Error at ortools/sat/CMakeLists.txt:31 (target_link_libraries):
42.97   Target "ortools_sat" links to:
42.97 
42.97     Coin::Cbc
42.97 
42.97   but the target was not found.  Possible reasons include:
42.97 
42.97     * There is a typo in the target name.
42.97     * A find_package call is missing for an IMPORTED target.
42.97     * An ALIAS target is missing.
42.97 
42.97 
42.97 
42.97 -- Generating done
42.99 CMake Generate step failed.  Build files cannot be regenerated correctly.

I installed these deps:

apt-get install -y --no-install-recommends cmake/bullseye-backports libabsl-dev libprotobuf-dev libre2-dev libeigen3-dev coinor-libcoinutils-dev libcliquer1 libgsl25 libopenblas0 libtbb2;

curl -fsSL -o SCIPOptSuite-8.0.4-Linux-arm64.deb https://github.com/scipopt/scip/releases/download/v804/SCIPOptSuite-8.0.4-Linux-arm64.deb; \
dpkg -i SCIPOptSuite-8.0.4-Linux-arm64.deb;

Also since we don't provide any ruby gem support which language do you need ? only the C++ version ?

Yep, the gem doesn't find a package for arm64 and tries to use https://github.com/google/or-tools/releases/download/v9.6/or-tools_amd64_debian-11_cpp_v9.6.2534.tar.gz which doesn't work, so I think the cpp package is the one we need

from or-tools.

Mizux avatar Mizux commented on June 2, 2024

coinutils is just a deps of the CBC and CLP solver....
see: https://raw.githubusercontent.com/google/or-tools/main/cmake/docs/cmake.svg

Otherwise you can use -DBUILD_DEPS=ON so or-tools will FetchContent() deps...
note: can still not use https://cmake.org/cmake/help/latest/module/FetchContent.html#variable:FETCHCONTENT_TRY_FIND_PACKAGE_MODE too early (CMake 3.24...)

from or-tools.

trumbitta avatar trumbitta commented on June 2, 2024

coinutils is just a deps of the CBC and CLP solver.... see: https://raw.githubusercontent.com/google/or-tools/main/cmake/docs/cmake.svg

thanks for the pointer! 🙇 the error message is different from the ones I was getting for the other missing deps, it totally fooled me.

I'll try and see where this brings me 🤞

Otherwise you can use -DBUILD_DEPS=ON so or-tools will FetchContent() deps... note: can still not use https://cmake.org/cmake/help/latest/module/FetchContent.html#variable:FETCHCONTENT_TRY_FIND_PACKAGE_MODE too early (CMake 3.24...)

Yes, that works (it also takes too much time for my use case) but then I can't seem to find a way to make the ruby gem use it (not your problem, I know, telling you just FYI)

from or-tools.

trumbitta avatar trumbitta commented on June 2, 2024

coinutils is just a deps of the CBC and CLP solver.... see: https://raw.githubusercontent.com/google/or-tools/main/cmake/docs/cmake.svg

Sadly seems a dead-end: I installed deb packages for coinor-libcoinutils-dev and coinor-libcoinutils3v5 but the errors didn't change a bit.
What's baffling me is that the errors talk about missing targets instead of missing deps 🧐

from or-tools.

Mizux avatar Mizux commented on June 2, 2024

What I don't understand is if using -DBUILD_DEPS=OFF (default) you should have trigger all find_package( REQUIRED) below...
https://github.com/google/or-tools/blob/main/cmake/deps.cmake

You can also start testing without the coin-or (CBC, CLP) support (you'll still have glop, cp-sat...)
using -DUSE_COINOR=OFF.

Also did you take a look at this community repo: https://github.com/or-tools/ruby_or-tools

from or-tools.

trumbitta avatar trumbitta commented on June 2, 2024

I was able to build my own cpp .tar.gz archive for arm64 on debian11, so now my problem has a workaround.

Would be cool if you provided such archive yourselves so that then people over at the ruby gem repo can update the gem to use it: ankane/or-tools-ruby#54

from or-tools.

Mizux avatar Mizux commented on June 2, 2024

in v9.8 release page you have:

from or-tools.

trumbitta avatar trumbitta commented on June 2, 2024

in v9.8 release page you have:

Thank you 🙇

from or-tools.

ankane avatar ankane commented on June 2, 2024

Thanks @Mizux

from or-tools.

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.