Skip to content

Add support for FreeBSD AArch64 #9220

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

Merged
merged 1 commit into from
Sep 7, 2024
Merged

Add support for FreeBSD AArch64 #9220

merged 1 commit into from
Sep 7, 2024

Conversation

ararslan
Copy link
Member

@ararslan ararslan commented Aug 9, 2024

This uses FreeBSD 13.2 to match the setup for x86_64. When adding support for FreeBSD AArch64 to Julia, I was using FreeBSD 14.1, so this may turn out to be a different beast altogether. I guess we'll find out.

Trying to remember what all it is I need to do in order to add a new platform... I think there was something I needed to do that made a tag with release assets for all of the platforms. 🤔

This uses FreeBSD 13.2 to match the setup for x86_64. When adding
support for FreeBSD AArch64 to Julia, I was using FreeBSD 14.1, so this
may turn out to be a different beast altogether. I guess we'll find out.
Copy link
Member

@giordano giordano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but you'll have to deploy PlatformSupport (and all the compilers), if you want them, and then open the corresponding PR to BinaryBuilderBase 🙂

@ararslan
Copy link
Member Author

Accompanying BinaryBuilderBase PR: JuliaPackaging/BinaryBuilderBase.jl#387

Things to build:

  • PlatformSupport
  • GCCBootstrap
    • 4
    • 5
    • 6
    • 7-13
  • Rust
  • (Anything else?)

Current issues:

  • It appears gcc 4 doesn't support FreeBSD AArch64 (and vice versa); the FreeBSD port for gcc 4.8 is (/was, as it's been deleted) only installable on x86-64 and i686
  • I forget what the problem was with gcc 5 was but that at least had a FreeBSD port for AArch64
  • gcc 6 complained about not being able to find gmp, mpfr, and mpc 🤔
  • FreeBSD AArch64 is tier 3 for Rust and doesn't have an official precompiled standard library, not sure what to do about that

@giordano
Copy link
Member

For GCC, I think it's fine to stick to limited versions, we do the same with aarch64-darwin, but you need to add some logic in BinaryBuilderBase to choose the right version. For Rust, while we have a build for i686 mingw, in practice we can't use it so we always have to skip that platform. I guess we'll have to skip aarch64 freebsd, too

@ararslan
Copy link
Member Author

I wonder if we can use the compiled FreeBSD AArch64 Rust binaries that FreeBSD's package manager would install on that platform...

@ararslan
Copy link
Member Author

Let's stick with the compilers we've got for now. Perhaps someday I'll try to build Rust and/or earlier GCC versions but in the meantime, ¯\_(ツ)_/¯

@ararslan ararslan merged commit 8323603 into master Sep 7, 2024
3 checks passed
@ararslan ararslan deleted the aa/freebsd-aarch64 branch September 7, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants