conda-forge / scipoptsuite-feedstock

A conda-smithy repository for scipoptsuite.
BSD 3-Clause "New" or "Revised" License
25 stars 13 forks source link

win-64/scip-9.1.1-hb46ef20_0 does not find gmp and mpfr dlls #74

Open 7Z0t99 opened 1 day ago

7Z0t99 commented 1 day ago

Solution to issue cannot be found in the documentation.

Issue

When I create a new environment using conda create -n testscipopt scip and run scip in the new environment, it does not start, because it does not find libgmp-10.dll and libmpfr-6.dll Note that the mpfr dll in the mpfr package that is installed by default ( conda-forge/win-64::mpfr-4.2.1-h64bf75a_1 ) is called mpfr-6.dll instead of libmpfr-6.dll.

Installed packages

bzip2 conda-forge/win-64::bzip2-1.0.8-h2466b09_7 cppad conda-forge/win-64::cppad-20240000.7-he0c23c2_1 intel-openmp conda-forge/win-64::intel-openmp-2024.2.1-h57928b3_1083 ipopt conda-forge/win-64::ipopt-3.14.16-hfa42872_10 libblas conda-forge/win-64::libblas-3.9.0-24_win64_mkl libflang conda-forge/win-64::libflang-5.0.0-h6538335_20180525 libhwloc conda-forge/win-64::libhwloc-2.11.1-default_h8125262_1000 libiconv conda-forge/win-64::libiconv-1.17-hcfcfb64_2 liblapack conda-forge/win-64::liblapack-3.9.0-24_win64_mkl libxml2 conda-forge/win-64::libxml2-2.12.7-h0f24e4e_4 libzlib conda-forge/win-64::libzlib-1.3.1-h2466b09_2 llvm-meta conda-forge/noarch::llvm-meta-5.0.0-0 mkl conda-forge/win-64::mkl-2024.1.0-h66d3029_694 mpfr conda-forge/win-64::mpfr-4.2.1-h64bf75a_1 mpir conda-forge/win-64::mpir-3.0.0-he025d50_1002 mumps-seq conda-forge/win-64::mumps-seq-5.7.3-h7c2359a_5 openmp conda-forge/win-64::openmp-5.0.0-vc14_1 pcre2 conda-forge/win-64::pcre2-10.44-h3d7b363_2 pthreads-win32 conda-forge/win-64::pthreads-win32-2.9.1-hfa6e2cd_3 scip conda-forge/win-64::scip-9.1.1-hb46ef20_0 tbb conda-forge/win-64::tbb-2021.13.0-hc790b64_0 ucrt conda-forge/win-64::ucrt-10.0.22621.0-h57928b3_0 vc conda-forge/win-64::vc-14.3-h8a93ad2_21 vc14_runtime conda-forge/win-64::vc14_runtime-14.40.33810-ha82c5b3_21

Environment info

 active environment : testscipopt
        shell level : 4
      conda version : 24.5.0
conda-build version : 24.5.1
     python version : 3.11.5.final.0
             solver : libmamba (default)
   virtual packages : __archspec=1=broadwell
                      __conda=24.5.0=0
                      __win=0=0
   base environment : C:\ProgramData\anaconda3  (read only)
  conda av data dir : C:\ProgramData\anaconda3\etc\conda

conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch platform : win-64 user-agent : conda/24.5.0 requests/2.32.2 CPython/3.11.5 Windows/10 Windows/10.0.19045 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/. administrator : False netrc file : None offline mode : False

scip-ci commented 11 hours ago

The build log for the SCIP OptSuite 9.1.1 conda package says

2024-09-30T11:07:21.1105765Z    INFO (scip,Library/bin/scip.exe): Needed DSO Library/bin/libmpfr-6.dll found in conda-forge/win-64::mpfr==4.2.1=hbc20e70_3

This seems to be different from conda-forge/win-64::mpfr-4.2.1-h64bf75a_1.

It also says

2024-09-30T11:07:21.4135200Z WARNING (scip,Library/bin/libscip.dll): Needed DSO Library/bin/libgmp-10.dll found in ['conda-forge/win-64::gmp==6.3.0=hfeafd45_2']
2024-09-30T11:07:21.4138217Z WARNING (scip,Library/bin/libscip.dll): .. but ['conda-forge/win-64::gmp==6.3.0=hfeafd45_2'] not in reqs/run, (i.e. it is overlinking) (likely) or a missing dependency (less likely)

Maybe that has something to do with the GMP lib missing.

scip-ci commented 9 hours ago

75 will add the GMP lib, which will fix an issue we had with the builds for 9.1.1 anyway.

However, I don't really know how to handle the MPFR issue. The message

2024-09-30T11:07:21.1105765Z    INFO (scip,Library/bin/scip.exe): Needed DSO Library/bin/libmpfr-6.dll found in conda-forge/win-64::mpfr==4.2.1=hbc20e70_3

sounds like libmpfr-6.dll is the "right" one. Because from the last digit, I would guess that hbc20e70_3 is more recent than h64bf75a_1. But then I don't know why h64bf75a_1 would be "installed by default". How can one make it install hbc20e70_3 instead?