|
Boost-Build : |
Subject: [Boost-build] error while cross compiling for arm
From: Nagaraja (nagaraja_k_at_[hidden])
Date: 2016-08-03 22:45:31
Hi All,
I am trying to cross compile boost 1.61.0 to using arm cross toolcahin
providded by ST SDK
my compiler version is armv7-linux-gcc-4.8.3
I am following below steps as given by.
run ./bootstrap.sh
edited the project-config.jam to include
if ! gcc in [ feature.values <toolset> ]
{
using gcc : arm :
/opt/STM/STLinux-2.4/devkit/armv7/bin/armv7-linux-g++ ;
project : default-build <toolset>gcc ;
./b2 --install --prefix=/opt/STM/STLinux-2.4/devkit/armv7/target/usr
toolset=gcc-arm
My cross-compilation terminates with below error.
Please guide me how I go about it.
parc-55_at_parc55-300E4Z-300E5Z-300E7Z:~/Downloads/mykodi/boost_1_61_0$
./b2 --install --prefix=/opt/STM/STLinux-2.4/devkit/armv7/target/usr
toolset=gcc-arm
Performing configuration checks
- 32-bit : yes (cached)
- arm : yes (cached)
Building the Boost C++ Libraries.
- symlinks supported : yes (cached)
- C++11 mutex : no (cached)
- lockfree boost::atomic_flag : yes (cached)
- has_icu builds : no (cached)
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
- zlib : yes (cached)
- iconv (libc) : yes (cached)
- icu : no (cached)
- icu (lib64) : no (cached)
- compiler-supports-visibility : yes (cached)
- gcc visibility : yes (cached)
- long double support : yes (cached)
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
- zlib : yes (cached)
Component configuration:
- atomic : building
- chrono : building
- container : building
- context : building
- coroutine : building
- coroutine2 : building
- date_time : building
- exception : building
- filesystem : building
- graph : building
- graph_parallel : building
- iostreams : building
- locale : building
- log : building
- math : building
- metaparse : building
- mpi : building
- program_options : building
- python : building
- random : building
- regex : building
- serialization : building
- signals : building
- system : building
- test : building
- thread : building
- timer : building
- type_erasure : building
- wave : building
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...found 11859 targets...
...updating 19 targets...
gcc.compile.c++
bin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi/unsupported.o
libs/context/src/unsupported.cpp:7:2: error: #error "platform not supported"
#error "platform not supported"
^
"/opt/STM/STLinux-2.4/devkit/armv7/bin/armv7-linux-g++"
-ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread
-DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_CONTEXT_SOURCE
-DBOOST_DISABLE_ASSERTS -DBOOST_SYSTEM_NO_DEPRECATED
-DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1
-DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DNDEBUG -I"." -c -o
"bin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi/unsupported.o"
"libs/context/src/unsupported.cpp"
...failed gcc.compile.c++
bin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi/unsupported.o...
...skipped
<pbin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi>libboost_context.a(clean)
for lack of
<pbin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi>unsupported.o...
...skipped
<pbin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi>libboost_context.a
for lack of
<pbin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi>unsupported.o...
...skipped <pstage/lib>libboost_context.a for lack of
<pbin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi>libboost_context.a...
gcc.compile.c++
bin.v2/libs/iostreams/build/gcc-arm/release/link-static/threading-multi/bzip2.o
libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file
or directory
#include "bzlib.h" // Julian Seward's "bzip.h" header.
^
compilation terminated.
"/opt/STM/STLinux-2.4/devkit/armv7/bin/armv7-linux-g++"
-ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread
-DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG -I"." -c
-o
"bin.v2/libs/iostreams/build/gcc-arm/release/link-static/threading-multi/bzip2.o"
"libs/iostreams/src/bzip2.cpp"
...failed gcc.compile.c++
bin.v2/libs/iostreams/build/gcc-arm/release/link-static/threading-multi/bzip2.o...
...skipped
<pbin.v2/libs/iostreams/build/gcc-arm/release/link-static/threading-multi>libboost_iostreams.a(clean)
for lack of
<pbin.v2/libs/iostreams/build/gcc-arm/release/link-static/threading-multi>bzip2.o...
...skipped
<pbin.v2/libs/iostreams/build/gcc-arm/release/link-static/threading-multi>libboost_iostreams.a
for lack of
<pbin.v2/libs/iostreams/build/gcc-arm/release/link-static/threading-multi>bzip2.o...
...skipped <pstage/lib>libboost_iostreams.a for lack of
<pbin.v2/libs/iostreams/build/gcc-arm/release/link-static/threading-multi>libboost_iostreams.a...
gcc.compile.c++
bin.v2/libs/context/build/gcc-arm/release/threading-multi/unsupported.o
libs/context/src/unsupported.cpp:7:2: error: #error "platform not supported"
#error "platform not supported"
^
"/opt/STM/STLinux-2.4/devkit/armv7/bin/armv7-linux-g++"
-ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread
-fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1
-DBOOST_CONTEXT_DYN_LINK=1 -DBOOST_CONTEXT_SOURCE
-DBOOST_DISABLE_ASSERTS -DBOOST_SYSTEM_DYN_LINK=1
-DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1
-DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -DNDEBUG -I"." -c -o
"bin.v2/libs/context/build/gcc-arm/release/threading-multi/unsupported.o" "libs/context/src/unsupported.cpp"
...failed gcc.compile.c++
bin.v2/libs/context/build/gcc-arm/release/threading-multi/unsupported.o...
...skipped
<pbin.v2/libs/context/build/gcc-arm/release/threading-multi>libboost_context.so.1.61.0
for lack of
<pbin.v2/libs/context/build/gcc-arm/release/threading-multi>unsupported.o...
...skipped <pstage/lib>libboost_context.so.1.61.0 for lack of
<pbin.v2/libs/context/build/gcc-arm/release/threading-multi>libboost_context.so.1.61.0...
...skipped <pstage/lib>libboost_context.so for lack of
<pstage/lib>libboost_context.so.1.61.0...
...skipped
<pbin.v2/libs/coroutine/build/gcc-arm/release/threading-multi>libboost_coroutine.so.1.61.0
for lack of
<pbin.v2/libs/context/build/gcc-arm/release/threading-multi>libboost_context.so.1.61.0...
...skipped <pstage/lib>libboost_coroutine.so.1.61.0 for lack of
<pbin.v2/libs/coroutine/build/gcc-arm/release/threading-multi>libboost_coroutine.so.1.61.0...
...skipped <pstage/lib>libboost_coroutine.so for lack of
<pstage/lib>libboost_coroutine.so.1.61.0...
gcc.compile.c++
bin.v2/libs/iostreams/build/gcc-arm/release/threading-multi/bzip2.o
libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file
or directory
#include "bzlib.h" // Julian Seward's "bzip.h" header.
^
compilation terminated.
"/opt/STM/STLinux-2.4/devkit/armv7/bin/armv7-linux-g++"
-ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread
-fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1
-DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG -I"." -c -o
"bin.v2/libs/iostreams/build/gcc-arm/release/threading-multi/bzip2.o"
"libs/iostreams/src/bzip2.cpp"
...failed gcc.compile.c++
bin.v2/libs/iostreams/build/gcc-arm/release/threading-multi/bzip2.o...
...skipped
<pbin.v2/libs/iostreams/build/gcc-arm/release/threading-multi>libboost_iostreams.so.1.61.0
for lack of
<pbin.v2/libs/iostreams/build/gcc-arm/release/threading-multi>bzip2.o...
...skipped <pstage/lib>libboost_iostreams.so.1.61.0 for lack of
<pbin.v2/libs/iostreams/build/gcc-arm/release/threading-multi>libboost_iostreams.so.1.61.0...
...skipped <pstage/lib>libboost_iostreams.so for lack of
<pstage/lib>libboost_iostreams.so.1.61.0...
...failed updating 4 targets...
...skipped 15 targets...
parc-55_at_parc55-300E4Z-300E5Z-300E7Z:~/Downloads/mykodi/boost_1_61_0$
Thanks and regards,
Nagaraja
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk