Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build docker image failed #246

Open
zhaoyi0113 opened this issue Aug 31, 2023 · 2 comments
Open

Build docker image failed #246

zhaoyi0113 opened this issue Aug 31, 2023 · 2 comments

Comments

@zhaoyi0113
Copy link

I am trying to build a docker image by running docker build -t compound-protocol . on Mac but it gives me below error. Can I get some advice about how to fix this issue?

=> => transferring context: 9.18MB                                           0.2s
 => [ 2/12] RUN apk update && apk add --no-cache --virtual build-dependenci  17.9s
 => [ 3/12] RUN wget https://github.com/ethereum/solidity/releases/download/  3.6s
 => [ 4/12] RUN mkdir -p /compound-protocol                                   0.3s
 => [ 5/12] WORKDIR /compound-protocol                                        0.0s
 => [ 6/12] ADD ./package.json /compound-protocol                             0.0s
 => [ 7/12] ADD ./yarn.lock /compound-protocol                                0.0s
 => [ 8/12] RUN yarn install --lock-file                                    397.7s
 => [ 9/12] ADD . /compound-protocol                                          0.2s
 => ERROR [10/12] RUN npx saddle compile                                     13.1s
------
 > [10/12] RUN npx saddle compile:
#17 13.00 Compiling contracts contracts/*.sol contracts/**/*.sol with solc to /compound-protocol/.build/contracts.json...
#17 13.07 Error: Command failed: solc --combined-json bin,abi,metadata --metadata-literal --optimize --allow-paths contracts,tests/Contracts --evm-version istanbul contracts/*.sol contracts/**/*.sol
#17 13.07 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
#17 13.07
#17 13.07 Error: Command failed: solc --combined-json bin,abi,metadata --metadata-literal --optimize --allow-paths contracts,tests/Contracts --evm-version istanbul contracts/*.sol contracts/**/*.sol
#17 13.07 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
#17 13.07
#17 13.08 undefined
------
process "/bin/sh -c npx saddle compile" did not complete successfully: exit code: 1
> which solc
/opt/homebrew/bin/solc
> solc --version
solc, the solidity compiler commandline interface
Version: 0.8.20+commit.a1b79de6.Darwin.appleclang
@solomonNSI
Copy link

were u able to fix it?

@0xUncleEnzo
Copy link

You can fix this error with https://stackoverflow.com/a/70256941. It's a compatibility thing with alpine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants