Skip to content

Commit

Permalink
Updated FreeBSD 14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
stemann committed Feb 2, 2025
1 parent 6ae0060 commit f32ab64
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions 0_RootFS/PlatformSupport/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# if Sys.isapple(platform)
# suffix = arch(platform) == "aarch64" ? "20" : "14"
# elseif Sys.isfreebsd(platform)
# suffix = "13.4"
# suffix = "14.2"
# else
# suffix = ""
# end
Expand Down Expand Up @@ -56,11 +56,11 @@ sources = [
]

freebsd_base = if Sys.isfreebsd(compiler_target) && arch(compiler_target) == "aarch64"
ArchiveSource("http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/arm64/13.4-RELEASE/base.txz",
"730f4d4d850fa96263a874340d84a2f0575cb917fc035359ae34823cae56c809")
ArchiveSource("http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/arm64/14.2-RELEASE/base.txz",
"a6c3bb2310c25b7dc4130e57173cd1c5d8650bc4b0c73f254b3a712e5482d33d")
else
ArchiveSource("http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/13.4-RELEASE/base.txz",
"8e13b0a93daba349b8d28ad246d7beb327659b2ef4fe44d89f447392daec5a7c")
ArchiveSource("http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/14.2-RELEASE/base.txz",
"e3971a3d4f36ed1ac67d2e7a5501726de79dd3695aa76bfad2a4ebe91a88a134")
end

push!(sources, freebsd_base)
Expand Down
2 changes: 1 addition & 1 deletion 0_RootFS/gcc_common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# `--deploy` flag to the `build_tarballs.jl` script. You can either build &
# deploy the compilers one by one or run something like
#
# for p in i686-linux-gnu x86_64-linux-gnu aarch64-linux-gnu armv7l-linux-gnueabihf powerpc64le-linux-gnu riscv64-linux-gnu i686-linux-musl x86_64-linux-musl aarch64-linux-musl armv7l-linux-musleabihf x86_64-apple-darwin14 x86_64-unknown-freebsd13.4 aarch64-unknown-freebsd13.4 i686-w64-mingw32 x86_64-w64-mingw32; do julia build_tarballs.jl --debug --verbose --deploy "${p}"; done
# for p in i686-linux-gnu x86_64-linux-gnu aarch64-linux-gnu armv7l-linux-gnueabihf powerpc64le-linux-gnu riscv64-linux-gnu i686-linux-musl x86_64-linux-musl aarch64-linux-musl armv7l-linux-musleabihf x86_64-apple-darwin14 x86_64-unknown-freebsd14.2 aarch64-unknown-freebsd14.2 i686-w64-mingw32 x86_64-w64-mingw32; do julia build_tarballs.jl --debug --verbose --deploy "${p}"; done

include("./common.jl")
include("./gcc_sources.jl")
Expand Down
8 changes: 4 additions & 4 deletions 0_RootFS/gcc_sources.jl
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,13 @@ function gcc_sources(gcc_version::VersionNumber, compiler_target::Platform; kwar
elseif Sys.isfreebsd(compiler_target)
if arch(compiler_target) == "aarch64"
libc_sources = [
ArchiveSource("http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/arm64/13.4-RELEASE/base.txz",
"730f4d4d850fa96263a874340d84a2f0575cb917fc035359ae34823cae56c809"),
ArchiveSource("http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/arm64/14.2-RELEASE/base.txz",
"a6c3bb2310c25b7dc4130e57173cd1c5d8650bc4b0c73f254b3a712e5482d33d"),
]
else
libc_sources = [
ArchiveSource("http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/13.4-RELEASE/base.txz",
"8e13b0a93daba349b8d28ad246d7beb327659b2ef4fe44d89f447392daec5a7c"),
ArchiveSource("http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/14.2-RELEASE/base.txz",
"e3971a3d4f36ed1ac67d2e7a5501726de79dd3695aa76bfad2a4ebe91a88a134"),
]
end
elseif Sys.iswindows(compiler_target)
Expand Down
2 changes: 1 addition & 1 deletion RootFS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This document details some of the journey we have embarked upon to create a Linu
* glibc Linux: `i686-linux-gnu`, `x86_64-linux-gnu`, `aarch64-linux-gnu`, `armv7l-linux-gnueabihf`, `armv6l-linux-gnueabihf`, `powerpc64le-linux-gnu`, `riscv64-linux-gnu`
* musl Linux: `i686-linux-musl`, `x86_64-linux-musl`, `aarch64-linux-musl`, `armv7l-linux-musleabihf`, `armv6l-linux-musleabihf`
* MacOS: `x86_64-apple-darwin`, `aarch64-apple-darwin`
* FreeBSD: `x86_64-unknown-freebsd13.4`, `aarch64-unknown-freebsd13.4`
* FreeBSD: `x86_64-unknown-freebsd14.2`, `aarch64-unknown-freebsd14.2`
* Windows: `i686-w64-mingw32`, `x86_64-w64-mingw32`

These target platforms are compiled for by building a suite a cross-compilers (`gcc`, `gfortran`, `clang`, `binutils`, etc...) that run on `x86-64-linux-musl`, but target the specific platform. Unfortunately, it is not sufficient to simply build these compilers once per target, because of incompatibilities between the generated code and the user's system where this code may eventually be running.
Expand Down

0 comments on commit f32ab64

Please sign in to comment.