Page MenuHomeFreeBSD

llvm-project: Fix build on devel/llvm18
AbandonedPublic

Authored by minsoochoo0122_proton.me on Apr 6 2024, 7:54 PM.
Referenced Files
Unknown Object (File)
Sep 15 2025, 1:33 AM
Unknown Object (File)
Aug 20 2025, 2:01 PM
Unknown Object (File)
Jul 23 2025, 3:22 AM
Unknown Object (File)
Jul 22 2025, 3:11 PM
Unknown Object (File)
Jul 3 2025, 3:13 PM
Unknown Object (File)
Jul 1 2025, 3:03 PM
Unknown Object (File)
Jul 1 2025, 11:00 AM
Unknown Object (File)
Jun 29 2025, 11:12 AM

Details

Reviewers
brooks
Group Reviewers
Contributor Reviews (src)
Summary

llvm18 (especially clang) brings some breaking changes, which causes
build failure in llvm-project.

This patch brings commits from llvm-project upstream which fixes build
failure for llvm-project using devel/llvm18.

b9935bb02a50 and 966d564e43e6 fix compiler error by invalid assembly
displacement on x86_86 systems.

a4d1d5f5b54b2f93d7290588734f59ff24fc515c and
a7ac0dd624962de1ccb55f1ed1357f548477f593 replaces variable length arrays
with a custom class SimpleVLA.

There are other parts of code in openmp that still uses VLA, so -Wno-vla-cxx-extension is
added to lib/libomp/Makefile in order to suppress errors.

Test Plan

make buildworld && make buildkernel

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 56944
Build 53832: arc lint + arc unit