Re: BUG #18610: llvm error: __aarch64_swp4_acq_rel which could not be resolved
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: "a.kozhemyakin" <a.kozhemyakin@postgrespro.ru>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2024-09-12T22:33:28Z
Lists: pgsql-bugs
On Thu, Sep 12, 2024 at 2:30 PM a.kozhemyakin <a.kozhemyakin@postgrespro.ru> wrote: > Thank you, the error no longer occurs after adding -mno-outline-atomics or -march=armv8.1-a > > I installed packages on debian-12 (arm64) from https://apt.postgresql.org/pub/repos/apt, the error is repeated. Ahh, I see that we already have a thread proposing to add -moutline-atomics to our main executable, over here: https://www.postgresql.org/message-id/flat/099F69EE-51D3-4214-934A-1F28C0A1A7A7%40amazon.com If clang has changed to assuming -moutline-atomics now (perhaps you can see which version of clang starting adding that switch by default the command I showed earlier, if you have a few versions of clang around, perhaps from apt.llvm.org), then we either need to stop it from doing that with -mno-outline-atomics, or compile our executable (or at least llvmjit.so?) to use that too so the helper library that defines those functions is linked in. The people who developed that stuff are, I think, interested in using the faster LSE stuff on modern phones, while still being able to run apps on the older phones that are still in circulation, but of course we have the same issue: we want our stuff to use LSE on Ampere/Grativon etc server chips, while still being able to run on Raspberry Pi 4 etc. And that'll speed up many things related to locking in the server itself, not only in this fairly obscure JIT-inlined thing.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
jit: Use -mno-outline-atomics for bitcode on ARM.
- 8aefd8b6f661 13.19 landed
- 7ca388fd0dec 14.16 landed
- 78c09bd9f94e 18.0 landed
- 8a9a515188c8 17.3 landed
- 6de14dbb3629 16.7 landed
- 15ab513fed04 15.11 landed