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

Cannot build Docker images on macOS 12.5.1 with M1 chip #234

Closed
andygrove opened this issue Sep 17, 2022 · 3 comments
Closed

Cannot build Docker images on macOS 12.5.1 with M1 chip #234

andygrove opened this issue Sep 17, 2022 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@andygrove
Copy link
Member

Describe the bug
A clear and concise description of what the bug is.

#6 3.081 cc1: error: unrecognized command line option '-m64'
#6 3.083 make[1]: *** [Makefile:678: apps/app_rand.o] Error 1
#6 3.083 make[1]: Leaving directory '/tmp/openssl-1.1.1b'

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@andygrove andygrove added bug Something isn't working help wanted Extra attention is needed labels Sep 17, 2022
@andygrove andygrove changed the title Integration tests fail on macOS 12.5.1 with M1 chip Cannot build Docker images on macOS 12.5.1 with M1 chip Sep 17, 2022
@rahull-p
Copy link

rahull-p commented Sep 18, 2022

Docker on M1 leverages aarch64 which is causing the failure. The docker build code currently is based on x86_64 architecture. Support for x86_64 in Mac is provided using Rosetta. We can force docker to use it #239

If we use Rosetta, the emulation is increasing the integration tests duration considerably. I think it is beneficial to add support for aarch64. #240 (* This is my first contribution. Please do let me know if there is a discussion forum to propose such changes)

@rahull-p
Copy link

This is resolved with the recent change of installing openssl instead of building it from source. It handles the above architecture discrepancy

@andygrove
Copy link
Member Author

I confirmed that I can now build docker images and run docker compose on Mac M1. Thanks @rahulpenti and @avantgardnerio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants