Re: [PATCH] jit: fix build with LLVM-21

2025-09-12 Thread Holger Hoffstätte
On 2025-09-12 14:47, Holger Hoffstätte wrote: I temporarily removed the __arch64__ guard and can reproduce the above error, using either gcc-15 or clang-21. It seems this llvm monkey patch backport thing is affected by the following commit in llvm-21: https://github.com/llvm/llvm-project/commit

Re: [PATCH] jit: fix build with LLVM-21

2025-09-12 Thread Holger Hoffstätte
On 2025-09-12 09:47, Holger Hoffstätte wrote: On 2025-09-12 08:36, Peter Eisentraut wrote: In my testing with LLVM 21, I'm getting an additional error: ../src/backend/jit/llvm/llvmjit_wrap.cpp:56:18: error: no matching constructor for initialization of 'llvm::orc::RTDyldObjectLi

Re: [PATCH] jit: fix build with LLVM-21

2025-09-12 Thread Holger Hoffstätte
On 2025-09-12 08:36, Peter Eisentraut wrote: On 08.09.25 15:20, Holger Hoffstätte wrote: I tried building against LLVM-21 and noticed that a function for symbol lookup was renamed (without semantic changes), breaking the LLVM JIT. The following patch fixes this by adding a version guard. It

[PATCH] jit: fix build with LLVM-21

2025-09-09 Thread Holger Hoffstätte
(please cc: me on replies) Hello! I tried building against LLVM-21 and noticed that a function for symbol lookup was renamed (without semantic changes), breaking the LLVM JIT. The following patch fixes this by adding a version guard. It applies equally to both master and 17.6. Passes the test su