runtimeverification / plutus-core-semantics

BSD 3-Clause "New" or "Revised" License
27 stars 5 forks source link

Installing K on MacOS Moterey over Intel #353

Closed ChristianoBraga closed 9 months ago

ChristianoBraga commented 1 year ago

While building K/KPlutus on MacOS Moterey over Intel I needed to do some additional steps wrt those listed in K's documentation:

I am not sure if I should open a different issue, but I guess I can edit this one afterwards if necessray. While building llvm backend, I got the following warning message:

warning: Unsupported attribute form DW_FORM_rnglistx in cloneAttribute. Dropping.
note: while processing /Users/cbraga/Documents/RV/plutus-core-semantics/.build/usr/lib/kplutus/llvm/uplc-kompiled/tmp.Uxew7Vwv9q/asm.o

Right after that, the building process tries to build the Haskell back end. Then I got the following error:

[Error] Critical: Could not start z3 process (IOException: Cannot run program "z3": error=24, Too many open files)
make: *** [.build/usr/lib/kplutus/haskell/uplc-kompiled/definition.kore] Error 113

That of course interrupted the building process. But then running make build again, the Haskell backend built properly. I was able to run all basic tests for KPlutus after that.

radumereuta commented 1 year ago

We could at least add instructions about needing to install llvm14.

Baltoli commented 1 year ago

https://github.com/runtimeverification/k/pull/2982 addresses the part of this that deals directly with the K dependencies. As far as I can see, the other issues are with Plutus dependencies and so should be updated in the README there. @gtrepta perhaps the best person to look at doing that?

The open files issue is a well-documented problem on macOS, I believe. I'm not sure what the best solution other than re-running it is.