Without digging into the details, it sounds very very much like the most of your problems are caused by handcrafting a Makefile which is not cross compile aware and probably has multiple other issues. Therefore I strongly suggest to use a build system like autotools, cmake or meson. You can find an introduction to a cmake-based setup here: https://youtu.be/NmPta5w6P70 Greetz Am So., 27. Sept. 2020 um 14:42 Uhr schrieb Bel Hadj Salem Talel < bhstalel@gmail.com>: > Hi, > > A response came only to me : > > Hey Bel, > > Please remove the libsystemd from your host. It will cause host > contamination. > > You need to tell in your makefile where make can find include path and lib > path > > Normally it should work > > Include: -I${STAging_incdir} > -L for ld path > > > Cheers > > So I added > > EXTRA_OEMAKE += "-I${STAGING_INCDIR} > to fix the systemd include error. > > But I still get the error of : > > /media/talel/data/menzu-zeus/menzu/tmp/work/aarch64-poky-linux/wirepas-sink-tool/1.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/ld: > c-mesh-api/lib/build/mesh_api_lib.a: error adding symbols: file in wrong > format > > I don't know what is the problem. > Help me on this please. > > Thanks for your support. > > > > > >