The compilation fails due to some warnings, because `-Werror` is set by default: ``` [37/54] CC test/main.c FAILED: build/ninja/linux/debug/x86-64/test-57ec084/main-28e5055.o clang -MMD -MT build/ninja/linux/debug/x86-64/test-57ec084/main-28e5055.o -MF build/ninja/linux/debug/x86-64/test-57ec084/main-28e5055.o.d -I. -Irpmalloc -Itest -DRPMALLOC_COMPILE=1 -funit-at-a-time -fstrict-aliasing -fvisibility=hidden -fno-stack-protector -fomit-frame-pointer -fno-math-errno -ffinite-math-only -funsafe-math-optimizations -fno-trapping-math -ffast-math -D_GNU_SOURCE=1 -W -Werror -pedantic -Wall -Weverything -Wno-c++98-compat -Wno-padded -Wno-documentation-unknown-command -Wno-implicit-fallthrough -Wno-static-in-inline -Wno-reserved-id-macro -Wno-disabled-macro-expansion -std=c11 -m64 -g -DBUILD_DEBUG=1 -DENABLE_ASSERTS=1 -DENABLE_STATISTICS=1 -DRPMALLOC_FIRST_CLASS_HEAPS=1 -DRPMALLOC_CONFIGURABLE=1 -c test/main.c -o build/ninja/linux/debug/x86-64/test-57ec084/main-28e5055.o test/main.c:28:15: error: identifier '_hardware_threads' is reserved because it starts with '_' at global scope [-Werror,-Wreserved-identifier] static size_t _hardware_threads; ^ test/main.c:29:12: error: identifier '_test_failed' is reserved because it starts with '_' at global scope [-Werror,-Wreserved-identifier] static int _test_failed; ^ test/main.c:429:16: error: identifier '_allocator_thread_arg' is reserved because it starts with '_' at global scope [-Werror,-Wreserved-identifier] typedef struct _allocator_thread_arg { ^ 3 errors generated. [38/54] CC rpmalloc/rpmalloc.c ninja: build stopped: subcommand failed. Error: Process completed with exit code 1. ``` This is currently blocking https://github.com/daanx/mimalloc-bench/pull/47
Activity
mjansson commentedon Nov 25, 2021
I’ll have a look at this today
mjansson commentedon Nov 28, 2021
Updated the variable names to avoid reserved _names
jvoisin commentedon Nov 30, 2021
Still failing :/
mjansson commentedon Dec 7, 2021
Try now, compiles cleanly now on my ubuntu system at least
jvoisin commentedon Dec 8, 2021
Looks like it's working, thanks!