Closed Theldus closed 1 year ago
Hi @Theldus - many thanks for the detailed bug report! :+1:
Yes, nchat probably needs some fixes to how it detects that inbuilt atomics are not present. I have some ideas on how to address it. I'll prepare a fix in a couple of days.
Hi, I believe this issue should be fixed with above commit. I reproduced the issue and tested above fix on Debian 11.5.0 i386 in a VM. Please let me know if you still encounter issues after the fix. Thanks!
Hi @d99kris, I just tested it here and works like a charm now.
Thanks a lot for the quick fix and your work on nchat, it's amazing 🙂.
Thanks 🙂
Description
I'm trying to use nchat on an old x86 machine and the program crashes during
'--setup'
.How to reproduce it
Environment
My guess:
Doing a strace in the execution of nchat, one can see the attempt to load/call the '__atomic_load' function during execution... which is not successful and the program closes:
The
__atomic_load
function seems to belong to libatomic, which is not linked to nchat.If I add libatomic as one of the dependencies, the program works as expected:
This function is probably used by one of nchat's dependencies, although I don't know exactly which one. It's also worth noting that this only happens on x86, not x86_64.
(Maybe) proposed fix:
Add 'atomic' to one of nchat's link libraries in CMakeLists.txt