I’m trying to write a recipe for our software OpenStructure (openstructure.org). On Linux it works like a charm… on macOS I get a segfault.
OpenStructure (OST) has some binary components from C++ code and those build products work well on macOS. But there is also a (huge) Python module. As one of the first things, Python tries to import a shared library that’s compiled from our C++ code. And there it segfaults:
frame #0: 0x00000001033a35a4 libpython3.10.dylib`PyLong_FromLong + 36
libpython3.10.dylib`PyLong_FromLong:
-> 0x1033a35a4 <+36>: movq 0x10(%rax), %rax
0x1033a35a8 <+40>: movq 0xde0(%rax,%rbx,8), %r14
0x1033a35b0 <+48>: incq (%r14)
0x1033a35b3 <+51>: movq %r14, %rax
Is what lldb
tells me. My guess is, that the linking goes funky at some step… maybe it invokes the wrong library?
As build system we use CMake.
The recipe can be found here:
It should be added to BioConda in the end, so watch out for the [osx-64]
bits
I’m lost at this point, any help in fixing this?
Cheers,
Bienchen