3

I'm working to set up the plutus-starter-devcontainer integration with VSCode.

Dev Environment:

  • macOS Big Sur 11.5.2
  • Docker Desktop 4.0.0

Following the instructions from here: https://github.com/input-output-hk/plutus-starter

Running on a new machine without GHC or Stack installed, I created ~/.cabal/packages directory on my machine.

After running a cabal update, the cabal build command generates the following error:

cabal: Failed to build prettyprinter-configurable-0.1.0.0 (which is required
by test:plutus-example-projects-test from plutus-starter-0.1.0.0 and
exe:plutus-starter-pab from plutus-starter-0.1.0.0). The failure occurred
during the configure step. The exception was:
dieVerbatim: user error (cabal:
'/nix/store/3jdnjxxb855s6q7n01d7p3ivzr1l36r9-ghc-shell-for-packages-ghc-8.10.4.20210212-env/bin/ghc'
exited with an error:
/nix/store/qvv5y4fx4x879rbsbs4g27mypl9wxbb9-gcc-wrapper-10.3.0/bin/ld: line
256: 9581 Killed
/nix/store/hy3lz2vfv9qq2v5jz9nzlx6mmiaq79rj-binutils-2.35.1/bin/ld
${extraBefore+"${extraBefore[@]}"} ${params+"${params[@]}"}
${extraAfter+"${extraAfter[@]}"}
collect2: error: ld returned 137 exit status
`cc' failed in phase `Linker'. (Exit code: 1)
)

Any help much appreciated.

2
  • My suggestion would be to report a bug in github.com/input-output-hk/plutus/issues
    – kolam
    Sep 2, 2021 at 18:27
  • 1
    Thanks @kolam. This issue went away after updating to VSCode 1.60.0 and increasing the Docker Memory resource limit to 6GB.
    – Brandon
    Sep 3, 2021 at 0:45

1 Answer 1

2

This issue was resolved by updating VSCode to August 2021 release (v1.60.0) and increasing Docker Memory to 6GB.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.