kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
215 stars 37 forks source link

debian build problem with 2.3.8, question on pcre3 vs pcre2 #237

Closed alexmyczko closed 1 year ago

alexmyczko commented 2 years ago

just gave a quick try for 2.3.8 and it failed with i don't think it's related to pcre3 -> pcre2, maybe you've got a hint?

here's the bug report i got: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000102

dpkg-shlibdeps: error: cannot find library cadabra2.cpython-39-x86_64-linux-gnu.so needed by
debian/cadabra2/usr/lib/python3/dist-packages/cdb/utils/_algorithm.cpython-39-x86_64-linux-gn
u.so (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: error: cannot find library cadabra2.cpython-39-x86_64-linux-gnu.so needed by
debian/cadabra2/usr/lib/python3/dist-packages/cdb/core/_component.cpython-39-x86_64-linux-gnu
.so (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: warning: debian/cadabra2/usr/lib/python3/dist-packages/cadabra2.cpython-39-x8
6_64-linux-gnu.so contains an unresolvable reference to symbol _PyThreadState_UncheckedGet: i
t's probably a plugin
dpkg-shlibdeps: warning: 134 other similar warnings have been skipped (use -v to see them all
)
dpkg-shlibdeps: error: cannot continue due to the errors listed above
Note: libraries are not searched in other binary packages that do not have any shlibs or symb
ols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.
dh_shlibdeps: error: dpkg-shlibdeps -Tdebian/cadabra2.substvars debian/cadabra2/usr/lib/pytho
n3/dist-packages/cadabra2.cpython-39-x86_64-linux-gnu.so debian/cadabra2/usr/lib/python3/dist
-packages/cdb/core/_component.cpython-39-x86_64-linux-gnu.so debian/cadabra2/usr/lib/python3/
dist-packages/cdb/utils/_algorithm.cpython-39-x86_64-linux-gnu.so debian/cadabra2/usr/bin/cad
abra2html debian/cadabra2/usr/bin/cadabra2cadabra debian/cadabra2/usr/bin/cdb-nbtool debian/c
adabra2/usr/bin/cadabra2-gtk debian/cadabra2/usr/bin/cadabra2latex debian/cadabra2/usr/bin/ca
dabra2python debian/cadabra2/usr/bin/cadabra2ipynb debian/cadabra2/usr/bin/cadabra-server deb
ian/cadabra2/usr/bin/cadabra2-cli returned exit code 2
dh_shlibdeps: error: Aborting due to earlier error
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
kpeeters commented 2 years ago

Should probably first get rid of that _PyThreadState_UncheckedGet problem. On which Debian version did you get this error?

alexmyczko commented 2 years ago

Debian sid (unstable)

kpeeters commented 2 years ago

Just in case this is caused by something in pybind11, I have upgraded that to the latest version. Can you please check if the same error occurs with current HEAD?

I have also removed everything related to pcre3; that was actually already no longer used except in on Cygwin.

alexmyczko commented 2 years ago

no luck, but here's the build logs: https://sid.ethz.ch/debian/cadabra2/3030/

kpeeters commented 2 years ago

That one fails because it cannot find Python.h. But python3-dev is installed, so I don't understand why this happens. Any idea? Has it moved to a different package in sid?

kpeeters commented 2 years ago

Interestingly, my cmake finds python3.10, whereas the package database suggests 3.9 is the current version on sid.

alexmyczko commented 2 years ago

That one fails because it cannot find Python.h. But python3-dev is installed, so I don't understand why this happens. Any idea? Has it moved to a different package in sid?

I have these

/usr/include/python3.10/Python.h
/usr/include/python3.8/Python.h
/usr/include/python3.9/Python.h

they come with libpython3.XX-dev

retrying with libpython3-dev added in build-depends...

https://release.debian.org/transitions/index.html (bottom right)

kpeeters commented 2 years ago

Can I assume this one is fixed now? I have updated the build instructions to mention libpython3-dev.

alexmyczko commented 2 years ago

i havent tried yet, but will (probably Monday)

alexmyczko commented 1 year ago

sorry it took so long, it builds...