Boost logo

Boost :

Subject: Re: [boost] Building boost against uClibc on arm machine
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-06-27 05:23:22

Piotr Borys wrote:

> Hello all.
> I'm trying to cross-compile boost for arm machine running linux with uClibc.
> Most of the libs are built ok, but some of them (including one of the most
> important to me: thread) failed.
> One of the mesgs was:
> --------------------------------
> gcc.compile.c++
> bin.v2/libs/thread/build/gcc-4.3.2/debug/threading-multi/pthread/thread.o
> libs/thread/src/pthread/thread.cpp: In static member function 'static
> unsigned int boost::thread::hardware_concurrency()':
> libs/thread/src/pthread/thread.cpp:394: error: 'get_nprocs' was not declared
> in this scope
> --------------------------------
> and somehow I'm afraid this is related to uClibc...

I think so. get_nprocs is a gnu extension to C runtime. Since it's fairly obvious
oversight, I've checked in the below patch -- can you see if that helps?

- Volodya

Boost list run by bdawes at, gregod at, cpdaniel at, john at