PMunch / futhark

Automatic wrapping of C headers in Nim
MIT License
355 stars 19 forks source link

Opir exited with non-zero exit code 127 #84

Closed general-rishkin closed 9 months ago

general-rishkin commented 9 months ago

I get this error:

/home/grishkin/TestAtlasWorkspace/futhark/src/futhark.nim(717, 7) Hint: Running: opir -I/home/grishkin/TestAtlasWorkspace/graphlib -I/usr/lib/llvm-14/lib/clang/14.0.0/include /home/grishkin/.cache/nim/test0_d/futhark-includes.h [User] stack trace: (most recent call last) /home/grishkin/TestAtlasWorkspace/futhark/src/futhark.nim(726, 9) importcImpl /home/grishkin/TestAtlasWorkspace/graphlib/test0.nim(5, 1) template/generic instantiation of importc from here /home/grishkin/TestAtlasWorkspace/futhark/src/futhark.nim(661, 14) template/generic instantiation of importcImpl from here /home/grishkin/TestAtlasWorkspace/futhark/src/futhark.nim(726, 9) Error: Opir exited with non-zero exit code 127. Opir output: /bin/sh: 1: opir: not found

The test file is very simle:

import futhark

importc:
    foo.h

FYI: I have an atlas workspace and a testproject beneath this.

PMunch commented 9 months ago

Well the error message is pretty clear:

/bin/sh: 1: opir: not found

Opir simply can't be found. I assume Atlas maybe doesn't build packages it installs, or it places them somewhere not generally accessible.

general-rishkin commented 9 months ago

You are correct. This seems to be the case because I used nimble instead and it worked fine.