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)
Apr 7 2024, 12:28 PM
Unknown Object (File)
Apr 6 2024, 10:44 PM

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