You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using it for some time on Windows with no issues distributing modules (wheels) but only just tried building linux wheels with manylinux container and keep running into linker failures. Nuitka/Nuitka#81
The main compilation steps all seem to go well, but the final linker fails:
The low level build inside nuitka is orchestrated by scons if that helps at all.
I'm a little confused by other issues here relating to not linking against libpython.so, #85 or #69 as surely the compiler needs this to resolve all symbols?
I tried manually applying the patch in #87 (remove the -lpython ref in python-config) but it made no difference, same when removing the similar reference from the python-3.5 pkgconfig file. scons still adds that linker flag. But again, surely it needs a python library to link against?
Thanks.
The text was updated successfully, but these errors were encountered:
Python extension modules on Linux don't need to link against the Python library. The way shared libraries work on Linux, any extension modules can automatically access all the symbols exported by the main executable that's loading them. So the Python interpreter "injects" all the necessary symbols into extension modules at load time. (In fact, if you do link to some libpython.so, then all of its symbols actually get overwritten by the interpreter's when it's loaded.)
I don't know enough about how nuitka's build system works to comment on that part.
Hi,
I'm a big fan of nuitka for compiling pure python into an optimised binary module.
https://github.com/kayhayen/Nuitka
I've been using it for some time on Windows with no issues distributing modules (wheels) but only just tried building linux wheels with manylinux container and keep running into linker failures.
Nuitka/Nuitka#81
The main compilation steps all seem to go well, but the final linker fails:
The low level build inside nuitka is orchestrated by scons if that helps at all.
I'm a little confused by other issues here relating to not linking against libpython.so, #85 or #69 as surely the compiler needs this to resolve all symbols?
I tried manually applying the patch in #87 (remove the -lpython ref in python-config) but it made no difference, same when removing the similar reference from the python-3.5 pkgconfig file. scons still adds that linker flag. But again, surely it needs a python library to link against?
Thanks.
The text was updated successfully, but these errors were encountered: