Tools (kextract/kgroup) fail to build
I'm getting this error:
g++ -std=gnu++11 -fno-exceptions -fno-rtti -s -Wl,-s -Wall -O2 -march=native -ftree-vectorize -pipe -funswitch-loops -fomit-frame-pointer -fno-strict-aliasing -fno-threadsafe-statics -fjump-tables -fno-stack-protector -s -Wl,-s -Wall -O2 -march=native -ftree-vectorize -pipe -Wl,-rpath,'$ORIGIN' -Wl,-z,origin -s -o kextract obj/tools/kextract.o obj/tools/compat_tools.o obj/build/colmatch.o obj/build/compat.o obj/build/crc32.o obj/build/klzw.o obj/build/kplib.o obj/build/lz4.o obj/build/pragmas.o obj/build/smmalloc.o obj/build/smmalloc_generic.o obj/build/smmalloc_tls.o obj/build/vfs.o -L/usr/lib -Wl,-rpath,/usr/lib -Wl,--enable-new-dtags -lSDL2 -lrt -latomic -ldl -pthread -lm -lasound
/usr/bin/ld: obj/build/compat.o: in function `handle_memerr()':
compat.cpp:(.text+0x3e): undefined reference to `engineDestroyAllocator'
/usr/bin/ld: obj/build/compat.o: in function `Breaddir':
compat.cpp:(.text+0x3fa): undefined reference to `engineDestroyAllocator'
/usr/bin/ld: obj/build/compat.o: in function `_xrealloc':
compat.cpp:(.text+0x53a): undefined reference to `engineDestroyAllocator'
/usr/bin/ld: obj/build/compat.o: in function `_xstrdup':
compat.cpp:(.text+0x5ba): undefined reference to `engineDestroyAllocator'
/usr/bin/ld: obj/build/compat.o: in function `_xcalloc':
compat.cpp:(.text+0x62a): undefined reference to `engineDestroyAllocator'
/usr/bin/ld: obj/build/compat.o:compat.cpp:(.text+0x68a): more undefined references to `engineDestroyAllocator' follow
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `operator delete(void*)':
smmalloc_generic.cpp:(.text+0x1): undefined reference to `mi_free'
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `operator delete[](void*)':
smmalloc_generic.cpp:(.text+0x11): undefined reference to `mi_free'
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `operator new(unsigned long)':
smmalloc_generic.cpp:(.text+0x21): undefined reference to `mi_new'
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `operator new[](unsigned long)':
smmalloc_generic.cpp:(.text+0x31): undefined reference to `mi_new'
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `operator new(unsigned long, std::nothrow_t const&)':
smmalloc_generic.cpp:(.text+0x41): undefined reference to `mi_new_nothrow'
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `operator new[](unsigned long, std::nothrow_t const&)':
smmalloc_generic.cpp:(.text+0x51): undefined reference to `mi_new_nothrow'
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `sm::GenericAllocator::Alloc(void*, unsigned long, unsigned long)':
smmalloc_generic.cpp:(.text+0xb3): undefined reference to `mi_malloc_aligned'
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `sm::GenericAllocator::Free(void*, void*)':
smmalloc_generic.cpp:(.text+0xc4): undefined reference to `mi_free'
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `sm::GenericAllocator::Realloc(void*, void*, unsigned long, unsigned long)':
smmalloc_generic.cpp:(.text+0xe6): undefined reference to `mi_realloc_aligned'
/usr/bin/ld: obj/build/smmalloc_generic.o: in function `sm::GenericAllocator::GetUsableSpace(void*, void*)':
smmalloc_generic.cpp:(.text+0xf4): undefined reference to `mi_usable_size'
/usr/bin/ld: obj/build/vfs.o: in function `kopen4load.part.0':
vfs.cpp:(.text+0x18bd): undefined reference to `engineDestroyAllocator'
collect2: error: ld returned 1 exit status
make: *** [GNUmakefile:918: kextract] Error 1