OpenBSD Journal

LLVM toolchain coming to OpenBSD/sparc64

Contributed by Peter N. M. Hansteen on from the LLVM, LLVM, sparc64'd dept.

Yes, you read that right. Modern development tools in the form of the LLVM compiler infrastructure is well on its way to supporting OpenBSD/sparc64 along with other more conventional architectures.

The support is now ready for testing, via a patch set presented by Kirill A. Korinsky (kirill@) in a message to the tech@ mailing list, with the subject LLVM toolchain for sparc64.

The message reads,

List:       openbsd-tech
Subject:    LLVM toolchain for sparc64
From:       Kirill A. Korinsky <kirill () korins ! ky>
Date:       2026-07-30 11:38:55
Message-ID: 87jyqcogfk.wl-kirill () korins ! ky

Folks,

I'd like to commit to devel/llvm/22 and gnu/llvm my cumulative patch for
support sparc64 by LLVM toolchain.
Not OpenBSD related bits was upstreamed as a few PRs and some parts are
actually already merged.

More or less this diff was tested by me and tb@ who runs his bulk during
which many small edge cases was discovered and fixed.

Here two diffs for the base and ports, I did my best to keep in
synchronized.

I haven't backported that changes to LLVM before 22, but we already mainly
switched to LLVM 22 everywhere.

I think it may have some missed pieces, but working in the tree will make
testing it simpler.

Ok to commit?

-- 
wbr, Kirill

["llvm-base.diff" (text/plain)]
followed by the patch that implements the changes.

If you are in a position to teast Kirill's work, that is if you run OpenBSD/sparc64-current, please do put the code through its paces and report back!


Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]