pdg137 / macaulay2-build

0 stars 0 forks source link

Unable to load shared library mpfr #1

Open pdg137 opened 6 months ago

pdg137 commented 6 months ago
[nix-shell:/tmp/nix-build-M2.drv-4]$ objdump -x "/tmp/nix-build-M2.drv-1/src/M2/usr-dist/x86_64-Linux-Ubuntu-22.04/bin/M2-binary"  | grep 'R.*PATH'

  RUNPATH              /nix/store/5pyx5p2n9hr83sfqzkzqvpf4b1aqd6h3-M2/lib:/nix/store/fcb52fgksc016v79l3gngn7y2lvdvzjr-boost-1.81.0/lib:/nix/store/2ccchfg8ydqmvi8s3xrf77i05b897n42-lapack-3/lib:/nix/store/27d0apnyz3wfcay6c3yxifv7gqd043sl-blas-3/lib:/nix/store/8j1j6dmg6nijskl7a98rgrmkk3h0lg5q-libffi-3.4.4/lib:/nix/store/v27dxnsw0cb7f4l1i3s44knc7y9sw688-zlib-1.3/lib:/nix/store/vybhx8w13qbhhg0s9sj7fxjzsdpwszpi-libxml2-2.11.7/lib:/nix/store/iap7s5szjmczi1yc3yfxkzbv0cmr6h02-libz-unstable-2018-03-31/lib:/nix/store/nym6l5pgz6kn8j0xfsk7jwchfi6r1anv-xz-5.4.4/lib:/nix/store/lhfi31nbyv62rw5szbfrh3pdnvcfgxmc-ncurses-6.4/lib:/nix/store/7gzbk29bzssg9xr62q7r47cqini81ayy-tbb-2020.3/lib:/nix/store/wfh797fx6j48gin4d0av7qb4ycnk8d2p-gmp-with-cxx-6.3.0/lib:/nix/store/1al58ncnyx77x36d0zmjsh4cnvl9fa0r-readline-8.2p7/lib:/nix/store/dqqxlkglzdbfd69d1a6qzz1f5cjsaihv-boehm-gc-8.2.2/lib:/nix/store/4ic0mqvszy5blv679a2l8ys8m8r53cff-gdbm-1.23/lib:/nix/store/y1im1nj3vsnp98rdyi334s247rpy8cnl-cddlib-0.94m/lib:/nix/store/b8i00vgsxfqr8wm4jakfv9snzm8p20zj-flint-2.9.0/lib:/nix/store/61vdcaxldwrpfdcyrp19k8dvpv0rhgwm-mpfr-4.2.1/lib:/nix/store/g2mki9nhzw83if9pba9wqzrxb0xnd3wm-glpk-5.0/lib:/nix/store/lcrizwr1amw2ril68ra6jpjrzb3zvarw-mpfi-1.5.4/lib:/nix/store/gbs6izzc3yrsxvmfhf7p71kncxinp3m8-mpsolve-3.2.1/lib:/nix/store/5q3i0s7c7i2vxgcxkxc01knlajk3yd23-ntl-11.5.1/lib:/nix/store/xrs47ll68k04ms0b9ahax0p2mdc0xz88-givaro-4.2.0/lib:/nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib:/nix/store/a3zlvnswi1p8cg7i9w4lpnvaankc7dxx-gcc-12.3.0-lib/lib:/nix/store/jczd480cw7jk2317bihadwp5yw8bfyrr-gfortran-12.3.0-lib/lib
[nix-shell:/tmp/nix-build-M2.drv-4]$ "/tmp/nix-build-M2.drv-1/src/M2/usr-dist/x86_64-Linux-Ubuntu-22.04/bin/M2-binary"

Macaulay2, version 1.23
with packages: ConwayPolynomials, Elimination, IntegralClosure, InverseSystems, Isomorphism, LLLBases,
               MinimalPrimes, OnlineLookup, PrimaryDecomposition, ReesAlgebra, Saturation, TangentCone,
               Truncations, Varieties

i1 : importFrom_Core {"dlopen"}

o1 = {dlopen}

o1 : List

i2 : dlopen "libmpfr.so"

stdio:2:1:(3): error: libmpfr.so: cannot open shared object file: No such file or directory
[nix-shell:/tmp/nix-build-M2.drv-4]$ ls /nix/store/61vdcaxldwrpfdcyrp19k8dvpv0rhgwm-mpfr-4.2.1/lib

libmpfr.la  libmpfr.so  libmpfr.so.6  libmpfr.so.6.2.1
pdg137 commented 6 months ago
strace "/tmp/nix-build-M2.drv-1/src/M2/usr-dist/x86_64-Linux-Ubuntu-22.04/bin/M2-binary" --no-readline --stop -e 'importFrom_Core {"dlopen"}; dlopen "libmpfr.so"'

This seems to show that it finds all of its libraries just fine.