Community
cancel
Showing results for 
Search instead for 
Did you mean: 
John_R_8
Beginner
102 Views

Building on musl libc?

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
Black Belt
102 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).

Reply