I"ve tried ver. 1.64.0. Cross-compilation for aarch64
boost uses version 1.64.0; cross-compilation uses platform centos 7, and the target platform is aarch64; cross-compilation tool
first step:
./bootstrap.sh
step 2:
modify the project-config.jam as follows:
...
if ! gcc in [ feature.values <toolset> ]
{
using gcc : arm : /home/xxx/arm/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc ;
}
...
-sharp These settings are equivivalent to corresponding command-line
-sharp options.
option.set prefix : /home/xxx/arm/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu ;
option.set exec-prefix : /home/xxx/arm/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin ;
option.set libdir : /home/xxx/arm/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/lib ;
option.set includedir : /home/xxx/arm/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/include ;
...
error message:
./b2 link=static --without-python --without-context --without-coroutine --no-samples --no-tests --stagedir=stage-aarch64 -j4 stage
This gives me an error like:
gcc.compile.cPP bin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi/unsupported.o
libs/context/src/unsupported.cpp:7:2: error: -sharperror "platform not supported"
-sharperror "platform not supported"
^~~~~
"/home/xxx/arm/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_SOURCE -DBOOST_DISABLE_ASSERTS -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.cPP bin.v2/libs/context/build/gcc-arm/release/link-static/threading-multi/unsupported.o...
tried to use bjam instead of b2, but did not use
who has encountered similar problems