i am getting the following error while building opencv. During opencv_core building, it is linking the following sw/tools/linaro/gcc-aarch64-linux-gnu-4.9-2014.09/bin/../lib/gcc/aarch64-linux-gnu/4.9.2/../../../../aarch64-linux-gnu/bin/ld: /local_disk/sai/wpu_aug23/wpu-sw/src/common/utils/buildroot/output/host/usr/aarch64-buildroot-linux-gnu/sysroot/usr/lib/aarch64-linux-gnu/libm.a(k_standard.o)(.text+0x318): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17' and sinc libm.a is not built with option "-fPIC", The error can come and libm.a is default generated part of buildroot and i cannot build here. Please have a look
To investigate this bug we need more details: - Buildroot version - Buildroot defconfig used leading to the situation - opencv package built? (opencv or opencv3) - is it a static only build? Have you tried to run: 'make clean && make' ? Have you tweak the opencv.mk (or opencv3.mk) file? if yes, how? Have you build the toolchain, then change some critical configurations requiring a full rebuild [1]? [1] http://nightly.buildroot.org/manual.html#full-rebuild
this issue is related to tool chain which i used downloaded one from linaro. If i use other tool chain version from linaro ,it is working now thanks