Building graphics/mesa-dri 23.3.5 via devel/llvm18 18.1.0rc2: use of undeclared identifier 'createLoopSinkPass'

From: Mark Millard <marklmi_at_yahoo.com>
Date: Fri, 09 Feb 2024 03:32:09 UTC
NOTE:

https://docs.mesa3d.org/relnotes/24.0.0.html

reports that 24.0.0 of mesa-dri fixes "Compilation error with current LLVM git (createLoopSinkPass)"



The details of the failure I observed are . . .

This was via a poudriere bulk build that reported:

../src/amd/llvm/ac_llvm_helper.cpp:311:28: error: use of undeclared identifier 'createLoopSinkPass'
  311 |       unwrap(passmgr)->add(createLoopSinkPass());
      |                            ^
1 error generated.

For reference:

# uname -apKU
you have mail
FreeBSD 7950X3D-ZFS 15.0-CURRENT FreeBSD 15.0-CURRENT #135 main-n268044-dfabf3efaa79-dirty: Sun Feb  4 16:40:28 PST 2024     root@7950X3D-ZFS:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/sys/GENERIC-NODBG amd64 amd64 1500012 1500012

# ~/fbsd-based-on-what-commit.sh -C /usr/ports/
c2c97cf49343 (HEAD -> main, freebsd/main, freebsd/HEAD) x11-wm/cosmic-comp: simplify patching
Author:     Jan Beich <jbeich@FreeBSD.org>
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-02-09 01:46:16 +0000
branch: main
merge-base: c2c97cf493439320e5424da29a00466e0795979e
merge-base: CommitDate: 2024-02-09 01:46:16 +0000
n649673 (--first-parent --count for merge-base)


===
Mark Millard
marklmi at yahoo.com