compilation of TBB

2 posts / 0 new
Last post
#1 Fri, 2015-06-26 13:29
aliczar
  • aliczar's picture
  • Offline
  • Last seen: 2 years 9 months ago
  • Joined: 2015-06-26

Hello.
I have a trouble with compilation of tbb library
https://www.threadingbuildingblocks.org/

Could someone help me, because of that i not familiar with compilation proccess and C-code at all.
I got exception

../../src/tbbmalloc/proxy.cpp:188:26: error: return type 'struct mallinfo' is incomplete
 struct mallinfo mallinfo() __THROW
                          ^
../../src/tbbmalloc/proxy.cpp:190:21: error: aggregate 'mallinfo m' has incomplete type and cannot be defined
     struct mallinfo m;
                     ^
../../src/tbbmalloc/proxy.cpp:191:41: error: invalid application of 'sizeof' to incomplete type 'mallinfo'
     memset(&m, 0, sizeof(struct mallinfo));
                                         ^
../../build/Makefile.tbbmalloc:66: recipe for target 'proxy.o' failed

but i am not sure is that because of tbb code or alpine...

Thank you.

Sun, 2015-07-05 11:34
clandmeter
  • clandmeter's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2011-05-05

Musl does not provide mallinfo, you will have to patch/remove it.

Log in or register to post comments