Bug 9571

Summary: buildroot fails while building opencv for arm64 platform
Product: buildroot Reporter: sai <saik.iitk>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: critical CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description sai 2017-01-06 09:54:53 UTC
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
Comment 1 Samuel Martin 2017-01-06 21:43:21 UTC
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
Comment 2 sai 2017-01-10 05:35:51 UTC
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