Skip to content

Docker image not building for amd64 #3545

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

Closed
2 tasks done
konstantinzolotarev opened this issue Oct 25, 2022 · 2 comments
Closed
2 tasks done

Docker image not building for amd64 #3545

konstantinzolotarev opened this issue Oct 25, 2022 · 2 comments
Labels
T-bug Type: bug

Comments

@konstantinzolotarev
Copy link
Contributor

konstantinzolotarev commented Oct 25, 2022

Component

Forge, Cast, Anvil

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

Latest

What command(s) is the bug in?

No response

Operating System

Linux,

Describe the bug

After fixing docker build for arm64 arch #3513 amd64 arch stopped working.

https://github.com/foundry-rs/foundry/actions/workflows/release.yml

#12 377.2 error: failed to run custom build command for `ring v0.16.20`
[1073](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1076)
#12 377.2 
[1074](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1077)
#12 377.2 Caused by:
[1075](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1078)
#12 377.2   process didn't exit successfully: `/opt/foundry/target/release/build/ring-aa5cc059ecd7e3e6/build-script-build` (exit status: 101)
[1076](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1079)
#12 377.2   --- stdout
[1077](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1080)
#12 377.2   OPT_LEVEL = Some("s")
[1078](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1081)
#12 377.2   TARGET = Some("x86_64-unknown-linux-musl")
[1079](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1082)
#12 377.2   HOST = Some("x86_64-unknown-linux-musl")
[1080](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1083)
#12 377.2   CC_x86_64-unknown-linux-musl = None
[1081](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1084)
#12 377.2   CC_x86_64_unknown_linux_musl = None
[1082](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1085)
#12 377.2   HOST_CC = None
[1083](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1086)
#12 377.2   CC = None
[1084](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1087)
#12 377.2   CFLAGS_x86_64-unknown-linux-musl = None
[1085](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1088)
#12 377.2   CFLAGS_x86_64_unknown_linux_musl = None
[1086](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1089)
#12 377.2   HOST_CFLAGS = None
[1087](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1090)
#12 377.2   CFLAGS = Some("-mno-outline-atomics")
[1088](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1091)
#12 377.2   CRATE_CC_NO_DEFAULTS = None
[1089](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1092)
#12 377.2   DEBUG = Some("false")
[1090](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1093)
#12 377.2   CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[1091](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1094)
#12 377.2 
[1092](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1095)
#12 377.2   --- stderr
[1093](https://github.com/foundry-rs/foundry/actions/runs/3293797705/jobs/5430643780#step:8:1096)
#12 377.2   running "cc" "-Os" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-mno-outline-atomics" "-I" "include" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-U_FORTIFY_SOURCE" "-DNDEBUG" "-c" "-o/opt/foundry/target/release/build/ring-10cdb8d7d162dc49/out/aesni-x86_64-elf.o" "/root/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesni-x86_64-elf.S"
@konstantinzolotarev konstantinzolotarev added the T-bug Type: bug label Oct 25, 2022
@gakonst gakonst added this to Foundry Oct 25, 2022
@gakonst gakonst moved this to Todo in Foundry Oct 25, 2022
@mattsse
Copy link
Member

mattsse commented Oct 25, 2022

I was hoping this would not happen.

could you try after making this change (setting env var) dependent on the os?
#3514

Essentially only set the env var if arm64

@konstantinzolotarev
Copy link
Contributor Author

@mattsse For sure I fixed it on my side, but just in case created PR that should fix this

@mattsse mattsse closed this as completed Oct 26, 2022
Repository owner moved this from Todo to Done in Foundry Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

No branches or pull requests

2 participants