Boost getting skipped when cross-compiled for ARM


I cross-compile Boost 1.68.0 after this guide. After excuting bjam, it fails and complains:

...patience...
.....
    "/home/XXX/BBB/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++"   -fPIC -pthread -O3 -finline-functions -Wno-inline -Wall  -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG  -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-arm/release/threading-multi/import.o" "libs/python/src/import.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/import.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/exec.o
In file included from ./boost/python/detail/wrap_python.hpp:50:0,
                 from ./boost/python/detail/prefix.hpp:13,
                 from ./boost/python/ssize_t.hpp:9,
                 from ./boost/python/object.hpp:8,
                 from ./boost/python/exec.hpp:8,
                 from libs/python/src/exec.cpp:6:
/usr/include/python2.7/pyconfig.h:24:12: fatal error: arm-linux-gnueabihf/python2.7/pyconfig.h: No such file or directory
 #  include <arm-linux-gnueabihf/python2.7/pyconfig.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

    "/home/XXX/BBB/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++"   -fPIC -pthread -O3 -finline-functions -Wno-inline -Wall  -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG  -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-arm/release/threading-multi/exec.o" "libs/python/src/exec.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/exec.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/object/function_doc_signature.o
In file included from ./boost/python/detail/wrap_python.hpp:50:0,
                 from ./boost/python/detail/prefix.hpp:13,
                 from ./boost/python/converter/registrations.hpp:8,
                 from libs/python/src/object/function_doc_signature.cpp:9:
/usr/include/python2.7/pyconfig.h:24:12: fatal error: arm-linux-gnueabihf/python2.7/pyconfig.h: No such file or directory
 #  include <arm-linux-gnueabihf/python2.7/pyconfig.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

    "/home/XXX/BBB/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++"   -fPIC -pthread -O3 -finline-functions -Wno-inline -Wall  -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG  -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-arm/release/threading-multi/object/function_doc_signature.o" "libs/python/src/object/function_doc_signature.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-arm/release/threading-multi/object/function_doc_signature.o...
...skipped <pbin.v2/libs/python/build/gcc-arm/release/threading-multi>libboost_python27.so.1.68.0 for lack of <pbin.v2/libs/python/build/gcc-arm/release/threading-multi>list.o...
...skipped <p/usr/local/boost_1_68_0-ARM/lib>libboost_python27.so.1.68.0 for lack of <pbin.v2/libs/python/build/gcc-arm/release/threading-multi>libboost_python27.so.1.68.0...
...skipped <p/usr/local/boost_1_68_0-ARM/lib>libboost_python27.so for lack of <p/usr/local/boost_1_68_0-ARM/lib>libboost_python27.so.1.68.0...
...failed updating 54 targets...
...skipped 6 targets...

Could someone tell me how I can fix it? What am I doing wrong? I did follow the instructions but I am not sure how this is happening. Thanks.

- - Source
comments powered by Disqus