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

Opir segfaults when wrapping libantumbra #42

Open
tandy-1000 opened this issue Aug 7, 2022 · 0 comments
Open

Opir segfaults when wrapping libantumbra #42

tandy-1000 opened this issue Aug 7, 2022 · 0 comments

Comments

@tandy-1000
Copy link

tandy-1000 commented Aug 7, 2022

I'm trying to wrap libantumbra using the following code (where . is libantumbra/):

# antumbra.nim
import pkg/futhark

importc:
  sysPath "/usr/lib64/clang/14/include"
  path "."
  "libantumbra.h"

{.passL:"-lantumbra".}

This generates:

# ~/.cache/nim/antumbra_d/futhark-includes.h
#include "libantumbra.h"

And runs Opir:

$ opir -I/usr/lib64/clang/14/include -I/home/tandy/libantumbra /home/tandy/.cache/nim/antumbra_d/futhark-includes.h
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault (core dumped)

Thank you.

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

1 participant