Boost logo

Boost Users :

Subject: Re: [Boost-users] Static link boost library using arm compiler
From: Carlos (asc2.cemg_at_[hidden])
Date: 2010-02-24 11:08:03


...failed updating 1 target...
...skipped 3 targets...
...updated 8079 targets...

but it still don't find the library

root_at_carlos-laptop:~/odtone# ./configure -host=arm-eabi
CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++
--with-boost=/usr/local/boost_1_42_0/
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-eabi-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-eabi-gcc... arm-none-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-none-linux-gnueabi-gcc accepts -g... yes
checking for arm-none-linux-gnueabi-gcc option to accept ISO C89... none
needed
checking for style of include used by make... GNU
checking dependency style of arm-none-linux-gnueabi-gcc... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether arm-none-linux-gnueabi-g++ accepts -g... yes
checking dependency style of arm-none-linux-gnueabi-g++... gcc3
checking for boostlib >= 1.31... yes
checking build system type... i686-pc-linux-gnu
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread... no
configure: error: Could not link against boost_thread !

The library exists:
carlos-laptop:~/odtone# find /usr/local/boost_1_42_0//lib/libboost_thread.a
/usr/local/boost_1_42_0//lib/libboost_thread.a

but I continue to get
*skipping incompatible /usr/local/boost_1_42_0//lib/libboost_thread.a when
searching for -lboost_thread*

*config.log*
configure:4167: arm-none-linux-gnueabi-gcc -o conftest -g -O2
-I/usr/local/boost_1_42_0//include -L/usr/local/boost_1_42_0//lib
conftest.c -lboost_thread >&5
conftest.c:20: warning: conflicting types for built-in function 'exit'
/home/carlos/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld:
skipping incompatible /usr/local/boost_1_42_0//lib/libboost_thread.a when
searching for -lboost_thread
/home/carlos/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld:
skipping incompatible
/home/carlos/arm/arm-2009q3/bin/../arm-none-linux-gnueabi/libc/usr/lib/libboost_thread.a
when searching for -lboost_thread
/home/carlos/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld:
skipping incompatible
/home/carlos/arm/arm-2009q3/bin/../arm-none-linux-gnueabi/libc/usr/lib/libboost_thread.a
when searching for -lboost_thread
/home/carlos/arm/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld:
cannot find -lboost_thread
collect2: ld returned 1 exit status

If I found some way to change the *-lboost_thread* to my *
/usr/local/boost_1_42_0//lib/libboost_thread.a* I think it will link but I
can't do it in m4 files.

On Wed, Feb 24, 2010 at 3:53 PM, Carlos <asc2.cemg_at_[hidden]> wrote:

> I don't know why I put that "-" there...I've compile it so many times
> already that I'm confused.....
>
> sudo bjam install --prefix=/usr/local/boost_1_42_0 --layout=system
> toolset=gcc-arm link=static runtime-link=static -n -a
>
> Now it was succeded in all updates! And now I'me rebuild everything with:
>
> sudo bjam install --prefix=/usr/local/boost_1_42_0 --layout=system
> toolset=gcc-arm link=static runtime-link=static -a
>
>
>
>
>
> On Wed, Feb 24, 2010 at 3:38 PM, Vladimir Prus <ghost_at_[hidden]> wrote:
>
>> Carlos wrote:
>>
>>> This is how I'm compiling boost:
>>>
>>> sudo bjam install --prefix=/usr/local/boost_1_42_0 --layout=system
>>> -toolset=gcc-arm link=static runtime-link=static
>>>
>>
>> If there actually "-" before "toolset"? It should not be there. Please
>> remove
>> it, add "-n" and "-a" options, run that command again, and post an example
>> compilation command.
>>
>> - Volodya
>>
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>
>



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