-
Notifications
You must be signed in to change notification settings - Fork 12
Help with adding M1 Mac support #19
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
Comments
Hi @jurvis! Appreciate you working on this already! arm64 support is definitely needed for 104 but I haven't had time to look into it. Just some initial findings: I was so far able to use docker buildx to make an
So, the CMakeList.txt issue doesn't seem to happen when it's built this way using the same base I'm working on the I am very surprised this worked without changing package versions/repos at all but next step is to see if it actually compiles/runs/debugs C++ code. I will not have an M1 to test on until mid-December but if you do have time, you could try using the new image if your version of Docker supports buildx/the buildkit. I think you'd find out if you need to change anything by running this command: # the platform flag shouldn't be necessary if docker commands work in a non-Rosetta emulated terminal
docker pull --platform linux/arm64 usccsci104/docker-multiarch:20.04 Thanks again and hope we can figure out adding M1 support! |
@camerondurham nice! thanks for sharing your notes on this! I'll take a stab at this later today/tomorrow and share what I find :) |
@camerondurham great news: it works super well! good find. totally blown away by the GDBValgrindDo we want to update |
Very satisfying, this is awesome! Agreed, Glad to hear it all works I really appreciate you testing One question about the |
hm, I did not need to codesign |
Uh oh!
There was an error while loading. Please reload this page.
Hello, after an unfortunate water-related incident, I needed to replace my Mac and have started attempting to put together a working dev environment for M1 machines. I got amd64 emulation working, but though it'll be cool to figure this one out.
I saw in the README an attached issue, and dived into the comments to find out that
ptrace
does not work onqemu
when running thecsci104
container inamd64
mode.According to this comment, it seems possible for us to get GDB working if we build a native
arm64
image, so I started poking around at the current image and was able to piece together a Dockerfile that looks something like this (pretty much a copy):To build the container I used the
ch create
command with the--file
argument pointing to this Dockerfile. However, I ran into an error when runningcmake CMakeLists.txt
, since it doesn't exist in my setup.I believe that file is part of the image on Docker hub but was wondering if you could share it so I can continue attempting making progress there.
Thanks!
The text was updated successfully, but these errors were encountered: