Cross compile error opencv example

Hi all, I’m trying to compile a small opencv example on my pc using the linaro cross compile tool.
This is the command line:
jetson-g++ prova_CV_jetson.cpp -I /home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/local/opencv_cross/include/opencv -Wl,-rpath-link=/home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/aarch64-linux-gnu -Wl,-rpath-link=/home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/usr_lib/aarch64-linux-gnu -Wl,-rpath-link=/home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/usr_lib -Wl,-rpath-link=/home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib_folder/aarch64-linux-gnu -Wl,-rpath-link=/home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/local/file_system2 -L /home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/local/opencv_cross -lopencv_core -lopencv_highgui -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs -o cvexe

but i get this error. How could I solve?

home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/…/aarch64-linux-gnu/libc/usr/lib/crt1.o: In function _start': /home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/snapshots/glibc.git~release~2.25~master/csu/../sysdeps/aarch64/start.S:86: undefined reference to __libc_csu_init’
/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-linux-gnu/snapshots/glibc.git~release~2.25~master/csu/…/sysdeps/aarch64/start.S:86: undefined reference to __libc_csu_fini' /home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/lib/aarch64-linux-gnu/libc.so: undefined reference to _dl_exception_create@GLIBC_PRIVATE’
/home/roberto/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/…/aarch64-linux-gnu/libc/lib/aarch64-linux-gnu/libc.so: undefined reference to `__tunable_get_val@GLIBC_PRIVATE’
collect2: error: ld returned 1 exit status
Thanks in advance

Sorry for the late response, is this still an issue to support?

no problem i was able to solve by resyncing the sysroot from the device