Please provide the following info:
Hardware Platform: Pegasus
Software Version: DRIVE Software 10
Host Machine Version: native Ubuntu 18.04
SDK Manager Version: latest
When I use the x86_64 to aarch64 crosscompile toolchain to build a target, the linker says:
/opt/toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/…/aarch64-linux-gnu/libc/usr/lib/libavcodec.so.57: undefined reference to log2f@GLIBC_2.27' /opt/toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/lib/libavcodec.so.57: undefined reference to
exp2f@GLIBC_2.27’
My compile platform is bazel 2.2, and I wrote the right toolchain settings for cc_rules (because I can successfully crosscompile many target onto pegasus). And I tried to add “-lm” to my bazel toolchain settings both compile flag and linkopt. But it still doesn’t work.
All these missing symbols come from GLIBC_2.27, but I noticed that the toolchain only support glibc_2.25. Does anyone have ideas about updating glibc? I tried to copy all lib*.so from /lib/aarch64-linux-gnu/ on pegasus to toolchain’s directory, but the error remains.
Thanks for helping.