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

conda on apple silicon #983

Open
GijsVermarien opened this issue Sep 7, 2023 · 7 comments
Open

conda on apple silicon #983

GijsVermarien opened this issue Sep 7, 2023 · 7 comments

Comments

@GijsVermarien
Copy link
Contributor

GijsVermarien commented Sep 7, 2023

          I see that codes like bhtree and hop failed to build- that’s really not good. Those are ‘core’ packages… can you find out why these failed to build?

Originally posted by @rieder in #980 (comment)

Created a new post to keep things separated, this discussion wasn't really about MESA anymore.

@GijsVermarien
Copy link
Contributor Author

Here are the error messages for bhtree and hop. It seems to be a problem that certain functions aren't loaded correctly ?

make bhtree.code.txt
make hop.code.txt

@rieder
Copy link
Member

rieder commented Sep 7, 2023

right - the problem is that you're compiling with clang rather than gcc. We don't support clang currently.

Copy link

stale bot commented Nov 6, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issues that have been around for a while without updates label Nov 6, 2023
@LourensVeen
Copy link
Collaborator

Just to note: conda-forge uses clang and gfortran to build all its Mac packages. There are GCC Conda-packages for Mac, but conda-forge doesn't use them by default. So I guess I'll have to see whether it's easier to get conda-forge to build with a different C++ compiler or to get AMUSE and the community codes to build with clang...

I do seem to have managed to build an Intel Mac package for amuse-framework now (on my Linux laptop, they cross-compile!), and my next step is to try to figure out how to get it to do the same for Apple Silicon. If I can make that work, then you'll be able to conda install amuse there...

@GijsVermarien
Copy link
Contributor Author

Maybe we can keep the issue open then to track the progress? I can't add a keep-open tag, so I thought I would close the issue manually before the stalebot would close it.

@LourensVeen LourensVeen reopened this Nov 30, 2023
@stale stale bot removed the stale Issues that have been around for a while without updates label Nov 30, 2023
@LourensVeen
Copy link
Collaborator

Yes, why not? I'm doing all platforms at the same time, so there may be some overlap with #984, but people specifically interested in Apple Silicon would then be able to follow here, and maybe we can do a bit of testing here once I've got something testable together.

Latest update: conda claims to have built some Apple Silicon packages for amuse-framework (on my Linux laptop!), but I have no idea if they actually work. I'm going to try to make a package for ph4 next (because I want to test the Sapporo packages), and then do bhtree, for which I should be able to make Apple Silicon packages as well.

At that point I would be looking for a volunteer to see if they can get it to run on actual Apple hardware. I'll keep you posted 😄.

@GijsVermarien
Copy link
Contributor Author

Cool, happy to guinea pig any binaries as soon as you're ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants