tweag / inline-java

Haskell/Java interop via inline Java code in Haskell modules.
BSD 3-Clause "New" or "Revised" License
229 stars 15 forks source link

ghc: could not execute: ./cpphs-cpp #170

Closed dk14 closed 3 years ago

dk14 commented 3 years ago

Describe the bug I've just added inline-java to "https://github.com/input-output-hk/plutus". I get "ghc: could not execute: ./cpphs-cpp" during "stack build ." (I'm not using nix at this point as I want to make sure that it works with plain stack)

I've tried "stack install cpphs" - the installation worked but didn't help the issue

Environment MacOS Catalina 10.15.4

facundominguez commented 3 years ago

Hello @dk14! Thanks for reporting.

cpphs-cpp is a wrapper script for cpphs. This is available here. It works when building jni locally with stack, but obviously, I still left OSX builds broken when trying to get jni from hackage.

The wrapper script is necessary to workaround https://gitlab.haskell.org/ghc/ghc/-/issues/17185

facundominguez commented 3 years ago

I'm working on releasing a fix.

facundominguez commented 3 years ago

I released jni-0.8.0 (and jvm, inline-java, etc) which hopefully solves this. Please, reopen this issue if it doesn't work for you.