Boost logo

Boost Users :

Subject: Re: [Boost-users] Cross-Compile Boost for Embedded Linux
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-09-17 01:40:52


Richard Ketcham wrote:

> Hi, thank you for the reply.
>
> I tried what you suggested. I added the using gcc command to the
> user-config.jam file in tools/build/v2/. I then issued the following
> command in the boost root directory:
>
> ~/boost_1_36_0$ bjam toolset=gcc-arm variant=release threading=multi
> --with-thread stage
>
> and came up with this error:
>
> ./boost/config/requires_threads.hpp:29:4: error: #error "Threading
> support unavaliable: it has been explicitly disabled with
> BOOST_DISABLE_THREADS"

It means Boost.Config does not think you have threads in your compiler.
Does 'your-cross-gcc -v' report any threading been enabled? Here's what
I get, for example:

        $ arm-none-linux-gnueabi-gcc -v
        Using built-in specs.
        Target: arm-none-linux-gnueabi
        Configured with: /scratch/vladimir/arm-linux-preview/src/gcc-trunk-4.3/configure
        --build=i686-pc-linux-gnu
        --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads ....
        Thread model: posix

Do you see '--enable-threads' and 'Thread model' in the output of your compiler?

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net