You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
302.0 error occurred: Command ZERO_AR_DATE="1" "/x86_64-linux-musl-native/bin/x86_64-linux-musl-ar" "cq" "/iroha/target/x86_64-unknown-linux-musl/deploy/build/secp256k1-sys-339b725278eb88a1/out/libsecp256k1.a" "/iroha/target/x86_64-unknown-linux-musl/deploy/build/secp256k1-sys-339b725278eb88a1/out/depend/secp256k1/contrib/lax_der_parsing.o" "/iroha/target/x86_64-unknown-linux-musl/deploy/build/secp256k1-sys-339b725278eb88a1/out/depend/secp256k1/src/secp256k1.o" with args "/x86_64-linux-musl-native/bin/x86_64-linux-musl-ar" did not execute successfully (status code exit status: 127).
...
failed to solve: process "/bin/sh -c cargo build --target x86_64-unknown-linux-musl --features vendored --profile deploy" did not complete successfully: exit code: 101
Full logs are quite large even to be displayed under spoiler, so I've uploaded them here: https://pastes.io/vodrxxuvnm
Expected result
Expected docker image to be built without issues (see more in Notes)
Logs in JSON format
Not applicable — application didn't start
Who can help to reproduce?
No response
Notes
After some digging, I've discovered that while /x86_64-linux-musl-native/bin/x86_64-linux-musl-ar was absent, there was /x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc-ar.
So I've made the following addition to Dockerfile and it worked!
# Fix build on macOS via colimaRUN ln -s /x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc /x86_64-linux-musl-native/bin/x86_64-linux-musl
RUN ln -s /x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc-11.2.1 /x86_64-linux-musl-native/bin/x86_64-linux-musl-11.2.1
RUN ln -s /x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc-ar /x86_64-linux-musl-native/bin/x86_64-linux-musl-ar
RUN ln -s /x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc-nm /x86_64-linux-musl-native/bin/x86_64-linux-musl-nm
RUN ln -s /x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc-ranlib /x86_64-linux-musl-native/bin/x86_64-linux-musl-ranlib
OS and Environment
M1, macOS 14.2.1 (23C71), Ubuntu 23.10 aarch64 ran via macOS Virtualization.Framework
GIT commit hash
2ffcd00
Minimum working example / Steps to reproduce
Setup:
Reproduction:
docker build -t iroha_builder --target builder --platform linux/amd64 --progress plain .
or
Actual result
Full logs are quite large even to be displayed under spoiler, so I've uploaded them here: https://pastes.io/vodrxxuvnm
Expected result
Expected docker image to be built without issues (see more in Notes)
Logs in JSON format
Not applicable — application didn't start
Who can help to reproduce?
No response
Notes
After some digging, I've discovered that while
/x86_64-linux-musl-native/bin/x86_64-linux-musl-ar
was absent, there was/x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc-ar
.So I've made the following addition to Dockerfile and it worked!
Successful build log
I'll submit PR with these additions shortly, though I wasn't able to understand why this problem appears in the first place, hence this issue.
The text was updated successfully, but these errors were encountered: