input-output-hk / plutus-starter

A starter project for Plutus apps
Apache License 2.0
197 stars 95 forks source link

cabal build failed to build playground-common-0.1.0.0 #44

Open bcoste opened 2 years ago

bcoste commented 2 years ago

I use the devcontainer 1.0.14 to build the plutus starter.

Here are my commands to create the container and to do the cabal build :

docker run -u root --name plutusdev -ti inputoutput/plutus-starter-devcontainer:v1.0.14

...
mkdir /root
touch /root/.gitconfig
git config --global http.proxy http://my-company-proxy:8080
git config --global https.proxy http://my-company-proxy:8080
cd /root
git clone https://github.com/input-output-hk/plutus-starter.git
mv /home/plutus/.cabal /root
mv /home/plutus/.bashrc /root
bash
export http_proxy=http://my-company-proxy:8080/
export https_proxy=http://my-company-proxy:8080/
cd plutus-starter
cabal update
cabal build

The build fails when building the playground-common-0.1.0.0 : plutusdev-error.txt

Next I tried with the devcontainer 1.0.15 and the build fails when linking happy : plutusdev1.0.15-error.txt

maguldemond commented 2 years ago

I'm having this issue with playground-common-0.1.0.0 too

I'm trying to build using a VS Code docker devcontainer, so it's using the provided nix environment.

Screen Shot 2022-04-25 at 12 57 48 PM
it4rb commented 2 years ago

I'm also getting the same issue:


- with `v1.0.15` image:

Linking dist/build/alex/alex ... /nix/store/hy3lz2vfv9qq2v5jz9nzlx6mmiaq79rj-binutils-2.35.1/bin/ld: cannot find -lnuma collect2: error: ld returned 1 exit status cc' failed in phaseLinker'. (Exit code: 1) cabal: Failed to build exe:alex from alex-3.2.7.1 (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). See the build log above for details.



Update: Using the 2nd method (Cabal+Nix build) I can get `cabal build` ran successfully on my machine, so you might want to try that instead
MitchTurner commented 2 years ago

Does a new image need to be published?

Having the same issues.

aleBurgos commented 2 years ago

Any update regarding this issue?

MitchTurner commented 2 years ago

I created a fork and rolled back to a earlier commit to have a working version. Never got this version working.

nabatti99 commented 2 years ago

Having the same issues.

MitchTurner commented 2 years ago

I had to roll back to commit d0f93f297008be3d209e5d7eeb3233b8198a6f76 to get it to work.

marcel-fluid commented 2 years ago

Tried version 1.0.15, and I'm still getting the error with playground building.

I'm going to try to find this "2nd method" of "Cabal+Nix build" next.

Screen Shot 2022-08-03 at 2 52 36 PM