godblaise@pop-os:~/Desktop/fullstack/private-amm/night-swap$ compact compile contracts/hello-world.compact contracts/managed/hello-world
Error: Failed to run compactc
Caused by:
No default compiler set
godblaise@pop-os:~/Desktop/fullstack/private-amm/night-swap$ compact compile contracts/hello-world.compact contracts/managed/hello-world
Error: Failed to run compactc
Caused by:
No default compiler set
seems the compiler backend (llvm, wasm, etc.) had not been selected so when compact internally invoked compactc, it failed immediately. In other words, the Compact toolchain was installed, but it didn’t know which backend compiler to use.
The following commands fixed it for me
export COMPACT_BACKEND=wasm