-
Notifications
You must be signed in to change notification settings - Fork 4
Docker build on Apple M1 Pro fails #17
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
Found the issue. Here's a fix: |
Would be great to get a new release with this PR 🙏 |
Thanks for the fix and sorry for the delay. The source dist is now up on PyPI: https://pypi.org/project/pybbi/0.3.1/#files |
So, I cavalierly dropped the |
I was also able to generate a dual-architecture universal2 wheel for cp310 on Mac OS. You may want to try it too. |
Uh oh!
There was an error while loading. Please reload this page.
This can be reproduced using the following Dockerfile:
Which yields the following error:
Running
python setup.py develop
finishes without error.Edit:
I think it might be because the libkent library gets built in
aarch64/libkent.a
but gcc expects it to be inx86_64/libkent.a
:Library being built:
and pybbi being built:
Looks like
$(MACHTYPE)
in./Makefile
doesn't match$(MACHTYPE)
insrc/Makefile
.Interesting... if I change the Dockerfile to:
It runs successfully.
Edit 2:
I think this has something to do with Rosetta running on my mac.
uname -m
outputsx86_64
on my terminal. Now the question is why the first Makefile is usingaarch64
🤔Edit 3:
The second Dockerfile ran successfully because I had previously built the library outside of the Docker and the
COPY src src
line included the already builtlibkent
. If I remove that file and run the second Dockerfile above, it fails like the first one.The text was updated successfully, but these errors were encountered: