Skip to content

0.20.1: FreeBSD above openkal-musl - #71

Merged
Sunrisepeak merged 1 commit into
mainfrom
feat/freebsd
Nov 10, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
feat/freebsd

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Summary

openkal-llvm-runtime builds for the rows x86_64-freebsd-musl and aarch64-freebsd-musl. These rows previously had no C++ runtime of their own.

  • They take the compiler-rt selection that Linux and the ok image take.
  • clear_cache.c is kept. Nothing beneath a program of these rows supplies __clear_cache, which __builtin___clear_cache calls on aarch64; on aarch64 the file is the processor's own instructions.
  • The architecture-only exclusions (the x87 routines) name FreeBSD too.
  • The rows need openkal-musl 0.29.1, which gives elf_aux_info (mcpplibs/openkal-musl, feat/freebsd).

Verification

The OpenKal conformance suite, built standalone over openkal-freebsd and openkal-musl with this runtime:

  • x86_64: holds every observation in a FreeBSD 14.5 VM (323 held, 0 did not hold);
  • aarch64: builds and links.

Before this, the suite linked the toolchain's libc++ built for the Linux host: by chance on x86_64, and incompatibly on aarch64.

The rows x86_64-freebsd-musl and aarch64-freebsd-musl take the selection of compiler-rt that Linux and the ok image take, with clear_cache.c kept: nothing beneath a program of these rows supplies __clear_cache, which __builtin___clear_cache calls on aarch64, and the file is the processor's own instructions there. The architecture-only exclusions name FreeBSD too. The OpenKal conformance suite built standalone over openkal-freebsd and openkal-musl (feat/freebsd) links on both rows and holds every observation on FreeBSD 14.5 x86_64 (323 held, 0 did not hold).
@Sunrisepeak
Sunrisepeak merged commit 88b03e8 into main Nov 10, 2026
16 of 18 checks passed
@Sunrisepeak
Sunrisepeak deleted the feat/freebsd branch November 10, 2026 12:31
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.

1 participant