I am using gcc-linaro-5.5.0-2017.10-i686-mingw32_arm-linux-gnueabihf to compile my program for Linux ARM platform.
I was using for long Boost 1.61 and I am trying to move to 1.75.
I do have compile boost libraries using the -fPIC option using the following command line :
*b2 -a --cflags=-fPIC --cxxflags=-fPIC --toolset=gcc-arm --toolset-root=C:\Linaro\gcc-linaro-arm-linux-gnueabihf-5.5.0-2017.10\bin*
For reference, the project-config.jam is as follow:
* import option ;
using gcc : arm : arm-linux-gnueabihf-gcc.exe ;
libraries = --with-atomic --with-thread --with-chrono --with-filesystem --with-system ;
option.set keep-going : false ; *
But when compiling my program, the link is failing with an error : relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /../../../repository\libboost_thread-gcc-mt-a32-1_75.a: error adding symbols: Bad value
The problem happens when integration Thread library, for other for I am using, it looks ok.
Any assistance would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using gcc-linaro-5.5.0-2017.10-i686-mingw32_arm-linux-gnueabihf to compile my program for Linux ARM platform.
I was using for long Boost 1.61 and I am trying to move to 1.75.
I do have compile boost libraries using the -fPIC option using the following command line :
*b2 -a --cflags=-fPIC --cxxflags=-fPIC --toolset=gcc-arm --toolset-root=C:\Linaro\gcc-linaro-arm-linux-gnueabihf-5.5.0-2017.10\bin*
For reference, the project-config.jam is as follow:
* import option ;
using gcc : arm : arm-linux-gnueabihf-gcc.exe ;
libraries = --with-atomic --with-thread --with-chrono --with-filesystem --with-system ;
option.set keep-going : false ; *
But when compiling my program, the link is failing with an error :
relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/../../../repository\libboost_thread-gcc-mt-a32-1_75.a: error adding symbols: Bad value
The problem happens when integration Thread library, for other for I am using, it looks ok.
Any assistance would be appreciated.