Boost logo

Boost-Build :

From: Rob Desbois (rob.desbois_at_[hidden])
Date: 2008-04-02 05:50:42

I've been trying to link against Boost libraries 1.35.0 built with
CodeSourcery's ARM/GNU toolchain and have had no luck yet.

My user-config.jam contained the line:
 using gcc :: arm-none-linux-gnueabi-gcc ;
and I built the libraries with:
 bjam --with-regex --with-serialization --with-thread stage

This worked fine, however when linking the test program from the
'Getting Started (Unix)' guide I get:
 $ arm-none-linux-gnueabi-g++ test-regex.cpp -I.
 /tmp/ccVow1Eq.o: In function `boost::detail::atomic_decrement(int*)':
undefined reference to `__sync_fetch_and_add_4'
 collect2: ld returned 1 exit status

As far as I could ascertain this has something to do with compiling
for the incorrect architecture/cpu. I can't find out how to build the
libraries for my architecture/cpu - none of the possible architecture
or instruction-set values seem appropriate for what I want.

Can anyone help?

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at