Skip to content

Fail to build on Raspberry Pi4

i thought i would try to build voidsw on my Pi4, running buster/10 for the most part it does work, but then it fails with this error

In file included from source/mimalloc/include/mimalloc-types.h:13,
                 from source/mimalloc/include/mimalloc-internal.h:11,
                 from source/mimalloc/src/random.c:12:
source/mimalloc/src/random.c: In function ‘bool os_random_buf(void*, size_t)’:
source/mimalloc/include/mimalloc-atomic.h:54:104: error: no matching function for call to ‘atomic_store_explicit(std::atomic<unsigned int>*, long unsigned int, std::memory_order)’
 #define mi_atomic_store_release(p,x)             mi_atomic(store_explicit)(p,x,mi_memory_order(release))
                                                                                                        ^
     ^~~~~~~~~~~~~~~~~~~~~~~
Failed building obj/mimalloc/random.o from source/mimalloc/src/random.c!
make: *** [GNUmakefile:864: obj/mimalloc/random.o] Error 1

this was somewhat familiar to me from when i built nbood, but when i looked at what i would change, it was already done. so now i have no idea what to do

or if this will even work on a Pi4 any pointers would be helpful, or just telling me it just wont work