-
Notifications
You must be signed in to change notification settings - Fork 32
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
ldc can't link embedded python properly on ubuntu #43
Comments
Is |
LDC has recently changed the linker flag order behavior. Please try again, and otherwise open an issue with LDC, thanks! |
I assume this would be in 1.6? |
Yes indeed, 1.6.0 has what I meant. |
Ok. will check it out when I get some time. |
there wouldn't happen to be a quicker way to install than build from source, would there? on 16.04, apt-get serves 0.17.1 |
|
@JohanEngelen Since yesterday we also have a documentation page for the installer: https://dlang.org/install.html |
Looks like ubuntu stopped building python with Py_ENABLE_SHARED=false, so this might not be much of an issue anymore. |
Brevity here is useless, and harms intelligibility. The original one at least makes it clear that you are downloading a shell script, and that you are installing ldc. The installer page is very nice. (link needs to be added to the top menu!) |
ubuntu 12.04 has an appropriate python build.
This issue has been collecting dust long enough that I do not remember how to get link to work with -rdynamic. Will need to play with it. |
and probably anywhere Py_ENABLE_SHARED is false.
symptom:
ImportError: /usr/lib/python3/dist-packages/numpy/core/multiarray.cpython-32mu.so: undefined symbol: PyExc_SystemError
ramification:
can't use numpy and other extensions
solution: insert -rdynamic early in the link flags. unfortunately, ldc rearranges flag order, and exposes no way to override.
other solution: go back to gcc for link command. please no.
The text was updated successfully, but these errors were encountered: