Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Building on musl libc?

John_R_8
Beginner
656 Views

Hi all -

I wanted to package Intel-tbb for a Linux distro based on musl libc (instead of the normal glibc).

The compile fails because musl doesn't supply the mallinfo struct.

Has anybody been able to compile/use intel-tbb on a non-glibc Linux distro?

Thanks in advance!

-John

0 Kudos
1 Reply
RafSchietekat
Valued Contributor III
656 Views

Are you using the malloc proxy (to replace all uses of malloc() etc. with TBB's scalable allocator)? If not, try changing "#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__" to "#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED 0" at or around src/tbbmalloc/proxy.h:24 (not tested).

0 Kudos
Reply