Ellery Newcomer via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sun Nov 8 18:32:07 PST 2015
I apologize in advance for not whittling this down more.
In travis, the shiny new pyd build for ldc is failing:
circa line 489:
undefined symbol: PyExc_SystemError
a similar build with dmd works fine:
So what is happening is the main python library is static, so the symbol
ends up in the executable and the numpy shared library can't seem to see
it at run time (with the ldc build).
The symbol certainly seems to exist:
$ nm ./extra | grep PyExc_SystemError
00000000008d0220 D PyExc_SystemError
00000000008d39e0 d _PyExc_SystemError
in both dmd-generated and ldc-generated executables.
The linkage attributes are different, for reasons derived from the fact
that usually these symbols live in libpythonxx.so:
extern(C) extern __gshared PyObject* PyExc_SystemError;
extern(C) extern export __gshared PyObject* PyExc_SystemError;
Anyone know what might be the problem?
More information about the digitalmars-d-ldc