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

Optional package papilo (dependency of scip) #34726

Closed
mkoeppe opened this issue Nov 5, 2022 · 57 comments
Closed

Optional package papilo (dependency of scip) #34726

mkoeppe opened this issue Nov 5, 2022 · 57 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Nov 5, 2022

https://github.com/scipopt/papilo/

https://github.com/scipopt/papilo/archive/refs/tags/v2.1.1.tar.gz

Not packaged anywhere - https://repology.org/projects/?search=papilo

scip uses papilo's header-only library, but papilo also likes to build an executable that may depend on scip and other solvers at compile time. - scipopt/papilo#21

New packages needed as dependencies:

CC: @dimpase

Component: packages: optional

Author: Matthias Koeppe

Branch/Commit: 4b71c4a

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/34726

@mkoeppe mkoeppe added this to the sage-9.8 milestone Nov 5, 2022
@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 5, 2022

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 5, 2022

Commit: 0dfa4b9

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 5, 2022

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

0dfa4b9build/pkgs/papilo: New

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 6, 2022

comment:5

tox -e docker-ubuntu-jammy-standard -- papilo gives

  [papilo-2.1.1]   CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:141 (find_package):
  [papilo-2.1.1]     Could not find a package configuration file provided by
  [papilo-2.1.1]     "boost_program_options" (requested version 1.74.0) with any of the
  [papilo-2.1.1]     following names:
  [papilo-2.1.1]   
  [papilo-2.1.1]       boost_program_optionsConfig.cmake
  [papilo-2.1.1]       boost_program_options-config.cmake
  [papilo-2.1.1]   
  [papilo-2.1.1]     Add the installation prefix of "boost_program_options" to CMAKE_PREFIX_PATH
  [papilo-2.1.1]     or set "boost_program_options_DIR" to a directory containing one of the
  [papilo-2.1.1]     above files.  If "boost_program_options" provides a separate development
  [papilo-2.1.1]     package or SDK, be sure it has been installed.
  [papilo-2.1.1]   Call Stack (most recent call first):
  [papilo-2.1.1]     /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:258 (boost_find_component)
  [papilo-2.1.1]     /usr/share/cmake-3.22/Modules/FindBoost.cmake:594 (find_package)
  [papilo-2.1.1]     CMakeLists.txt:50 (find_package)

https://stackoverflow.com/questions/20502194/cmake-cannot-find-boost-program-options-on-debian

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 6, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

088b11abuild/pkgs/boost_cropped/distros/debian.txt: Add libboost-program-options-dev

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 6, 2022

Changed commit from 0dfa4b9 to 088b11a

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 6, 2022

comment:7
[papilo-2.1.1] -- Could NOT find TBB (missing: TBB_DIR)
[papilo-2.1.1] -- Could NOT find TBB (missing: TBB_IMPORTED_TARGETS tbb tbbmalloc) (Required is at least version "2018")
[papilo-2.1.1] -- Downloading TBB

so we'll need to add tbb as a package

@mkoeppe

This comment has been minimized.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

adb37b8build/pkgs/papilo: Add dependency onetbb

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2022

Changed commit from 088b11a to adb37b8

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2022

Changed commit from adb37b8 to 36abfb5

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

36abfb5build/pkgs/onetbb: New

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2022

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

b1e6d07build/pkgs/onetbb: New

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2022

Changed commit from 36abfb5 to b1e6d07

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 13, 2022

Author: Matthias Koeppe

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 14, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

b56f82abuild/pkgs/onetbb/spkg-install.in: Do not treat compiler warnings as errors

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 14, 2022

Changed commit from b1e6d07 to b56f82a

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 14, 2022

comment:14

Our boost_cropped package does not provide program_options.
ubuntu-bionic-minimal: https://github.com/mkoeppe/PySCIPOpt/actions/runs/3457453303/jobs/5774142273

[papilo-2.1.1]   CMake Error at /sage/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  [papilo-2.1.1]     Could NOT find Boost (missing: program_options) (found suitable version
  [papilo-2.1.1]     "1.66.0", minimum required is "1.65")

@dimpase
Copy link
Member

dimpase commented Nov 14, 2022

comment:15

could it be due to out boost being over 5 years old? I'll check if we can update to 1.80 easily

@dimpase
Copy link
Member

dimpase commented Nov 14, 2022

comment:16

see #34748 for boost update

@dimpase
Copy link
Member

dimpase commented Nov 14, 2022

Dependencies: #34748

@dimpase
Copy link
Member

dimpase commented Nov 14, 2022

comment:17

use updated boost_cropped

@dimpase
Copy link
Member

dimpase commented Nov 14, 2022

Reviewer: Dima Pasechnik

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 18, 2022

Changed commit from 5a04fdc to f27de02

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 20, 2022

Changed commit from f27de02 to a52e72f

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 20, 2022

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

a52e72fbuild/pkgs/papilo: Patch out dependency on boost program_options, use PAPILO_NO_BINARIES=1

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 20, 2022

comment:30

build failure on fedora-37 - scipopt/papilo#23

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 23, 2022

comment:31

build failure of onetbb on ubuntu-trusty-toolchain-gcc_9 https://github.com/mkoeppe/PySCIPOpt/actions/runs/3535481134/jobs/5933596249

2021.7.0/src/src/tbb/../../include/tbb/../oneapi/tbb/detail/_concurrent_skip_list.h:25,
                 from /sage/local/var/tmp/sage/build/onetbb-2021.7.0/src/src/tbb/../../include/tbb/../oneapi/tbb/concurrent_map.h:21,
                 from /sage/local/var/tmp/sage/build/onetbb-2021.7.0/src/src/tbb/../../include/tbb/concurrent_map.h:17,
                 from /sage/local/var/tmp/sage/build/onetbb-2021.7.0/src/test/tbb/test_concurrent_map.cpp:19:
/usr/include/c++/9/bits/basic_string.h: In instantiation of 'class std::basic_string<char, std::char_traits<char>, tbb::detail::d1::tbb_allocator<char> >':
/sage/local/var/tmp/sage/build/onetbb-2021.7.0/src/test/common/concurrent_associative_common.h:964:29:   required from 'void test_map_specific_types() [with Checker = OrderedMapTypesTester]'
/sage/local/var/tmp/sage/build/onetbb-2021.7.0/src/test/tbb/test_concurrent_map.cpp:90:52:   required from here
/usr/include/c++/9/bits/basic_string.h:3146:63: error: no class template named 'rebind' in 'class tbb::detail::d1::tbb_allocator<char>'
 3146 |       typedef typename _Alloc::template rebind<_CharT>::other _CharT_alloc_type;
      |                                                               ^~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make[5]: *** [test/CMakeFiles/test_concurrent_map.dir/tbb/test_concurrent_map.cpp.o] Error 1
make[5]: Target `test/CMakeFiles/test_concurrent_map.dir/build' not remade because of errors.
make[4]: *** [test/CMakeFiles/test_concurrent_map.dir/all] Error 2

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 23, 2022

comment:32

That's oneapi-src/oneTBB#383

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 27, 2022

Changed commit from a52e72f to 3adc477

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 27, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

1f30f5cMerge tag '9.8.beta4' into t/34726/optional_package_papilo__dependency_of_scip_
b62841dbuild/pkgs/papilo/dependencies: Add gfortran
6e78b57build/pkgs/papilo/spkg-install.in: Set BOOST_ROOT
3adc477build/pkgs/onetbb/spkg-configure.m4: New

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 27, 2022

comment:34

build failures on ubuntu-trusty-toolchain-gcc_9 (comment:31) and fedora-37 (comment:30) remain, but that should not stop us from merging these optional packages. Both need help from upstream

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 27, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

45f957eRevert "build/pkgs/boost_cropped/distros/debian.txt: Add libboost-program-options-dev"

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 27, 2022

Changed commit from 3adc477 to 45f957e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 9, 2022

Changed commit from 45f957e to d26090f

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 9, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

ebac2fdbuild/pkgs/papilo/patches: Add https://github.com/scipopt/papilo/commit/e34cfbe0b6d6b4c6e8d5d9305046a00821c81828
d26090fbuild/pkgs/papilo/patches/import_memory_multiprecision.patch: New, back out ineffective patch

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 9, 2022

comment:37

This fixed the build failure on fedora-37.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 9, 2022

comment:38

Ready for review

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 9, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

4b71c4abuild/pkgs/onetbb/distros/conda.txt: New

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 9, 2022

Changed commit from d26090f to 4b71c4a

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 11, 2022

comment:41

Thanks!

@vbraun
Copy link
Member

vbraun commented Jan 1, 2023

@vbraun vbraun closed this as completed in f84915f Jan 1, 2023
kryzar pushed a commit to kryzar/sage that referenced this issue Feb 6, 2023
… cmake version to 3.11

scip (sagemath#31329) fails to build with the older cmake provided by ubuntu-
xenial (scipopt/scip#32)

papilo (sagemath#34726) needs at least cmake 3.11.

3.10.x is shipped on ubuntu-bionic, linuxmint-19.

URL: https://trac.sagemath.org/34746
Reported by: mkoeppe
Ticket author(s): Matthias Koeppe
Reviewer(s): Dima Pasechnik
kryzar pushed a commit to kryzar/sage that referenced this issue Feb 6, 2023
kryzar pushed a commit to kryzar/sage that referenced this issue Feb 6, 2023
kryzar pushed a commit to kryzar/sage that referenced this issue Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants