Open ryzhovau opened 4 months ago
Thanks for bringing this up. I'm interested to know about ARM since I've had smooth builds on armhf and arm64. Could you specify which ARM platform you tried this on? Also, any idea if those platforms include the C11 <stdatomic.h>
header? Otherwise, we might have to resort to using mutex locks.
Hi @allinurl
Maybe the new __atomic
functions be the solution...
See here for more details.
https://github.com/allinurl/goaccess/commit/4b140aaf03c1e82402636bab73814af53170a797#diff-b4dbf33d511bc4aaeb20a4539e694cf4575e9dfe0b9aed1881d58f20e95e6c53R613 and https://github.com/allinurl/goaccess/commit/728fd7d481297db5498b6af938f24cf6c00e3167#diff-3045e316fef9708ebd7095e9a191c711c5dd24e58cdb91c0961961463fabacccR1863 makes goaccess unportable to some ARM/MIPS(el)/PowerPC platforms:
It's similar to https://github.com/rakshasa/rtorrent/issues/156
Is there a way to make
__sync_add_and_fetch()
usage optional?