Skip to content
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

OSX - the rawexample works but testdll doesn't #144

Open
DavidBriant opened this issue Jan 19, 2021 · 1 comment
Open

OSX - the rawexample works but testdll doesn't #144

DavidBriant opened this issue Jan 19, 2021 · 1 comment

Comments

@DavidBriant
Copy link

DavidBriant commented Jan 19, 2021

I'm on a macbook - Catalina 10.15.7 with dmd v2.094 and an almost vanilla python 3.8.0, pyd 14.0.0.

I can compile both examples using python3.8 (python3.8 setup.py build) but when I try to run it I get
No GC was initialized, please recheck the name of the selected GC ('conservative').. The raw example works.

I've been using autowrap without problem - although I need more control over the interface than what I'm currently getting (hence looking into pyd).

One oddity is that one of the first lines of output is gcc -c /Users/david/repos/github/ariovistus/pyd/infrastructure/d/so_ctor.c -fPIC -o build/temp.macosx-10.9-x86_64-3.8/infra/so_ctor.o - I was expecting 10.15 instead 10.9.

Pointers and/or fixes would be welcome. Thx David

@ariovistus
Copy link
Owner

I have not build pyd on osx and have no experience on that platform, but your error certainly sounds related to starting the runtime from a shared library, which the raw example doesn't do.

I guess my first question would be is rt_init being called?
https://github.com/ariovistus/pyd/blob/master/infrastructure/d/python_so_linux_boilerplate.d#L26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants