-
Notifications
You must be signed in to change notification settings - Fork 42
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 Fails on ARM Docker Image within AWS CodeBuild #351
Comments
Hi ! Same issue here, do you found a better solution @bryang-spindance ? |
I am also having the same issue using buildx trying to build to armv7 on a 64bit gravitation instance using an ubuntu 22.04 container. What can we do to fix this? Do you have any ideas @graebm? |
Okay I wasted hours on this! The solution (at lease when running on an ec2 or other linux based distro) is to add |
It's probably fixed by aws/aws-lc#1015 already. |
Can you confirm if you are still running into this build failure @bryang-spindance |
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one. |
Brief
When attempting to install
awscrt
within a Docker container in anamazonlinux2-aarch64-standard:2.0
Codebuild project, I am receiving ARM based errors. This happens both when I try to install via pre-built pip packagespip install awscrt
and when I try to buildawscrt
from source.Environment
I am using an AWS Codebuild project with the
aws/codebuild/amazonlinux2-aarch64-standard:2.0
environment image. When this Codebuild project runs, it builds a Docker container which will attempt to install theawscrt
package. The docker container is using thepython:3.9-slim-buster
image as a base.Dockerfile
buildspec.yaml
Problem
Please view the Codebuild awscrt Install Log for the full log of the
awscrt
installation process. The resulting errors are the same whether I attempt to installawscrt
frompip
or if I attempt to buildawscrt
from source.The errors are all similar to the following block. I wanted to add some of these in here so people can search for this Github issue since the full logs are attached as a gist.
Additional Info
I have also tested installing
awscrt
from within the Codebuild image itself (outside of the Docker image) and I am able to install it usingpip
without error so this error is only occurring within my Docker image.A workaround for this issue is to switch my Codebuild project to use the
aws/codebuild/standard:5.0
environment image. Then within mybuildspec.yaml
file, I add the following command to myinstall
phase:By doing this, I am able to install
awscrt
within my Docker image by simply usingpip
.This workaround is not preferable, however, as I'd like to remove the
multiarch/qemu-user-static
dependency from this project by utilizing theaarch64
Codebuild environment image.The text was updated successfully, but these errors were encountered: