On 7 Dec 2023, at 13:35, Iurascu Teodor via lists.yoctoproject.org <iurascu_teo=hotmail....@lists.yoctoproject.org> wrote: > Running file on any object files in the archive returns: > $ file BBBiolib.o > BBBiolib.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
Well that’s not right. :) I note that your makefile doesn’t have any clean functionalty, so it’s entirely possible that it’s reusing previous binaries from when cc wasn’t set correctly. Adding a ‘clean’ target that deletes all built files from the build tree would be a good idea. You can test this theory by doing bitbake -C unpack bbio (assuming your recipe is called bbio) to force it to rebuild the recipe, and then rebuilding your SDK. Also have a look at the log.do_compile in the recipe build directory to check it actually is using the arm cross compiler. I’ll note that Makefiles are hard and if you’re writing your own makefile it’s good to use something else instead. Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61831): https://lists.yoctoproject.org/g/yocto/message/61831 Mute This Topic: https://lists.yoctoproject.org/mt/103032949/21656 Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Mute #sdk:https://lists.yoctoproject.org/g/yocto/mutehashtag/sdk Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-