On Wed, Sep 4, 2024 at 7:36 AM MOHAMMED HASSAN via lists.yoctoproject.org <hassanchattarki=gmail....@lists.yoctoproject.org> wrote: > > Hi guys, > I am trying to run a Makefile and add the binary to my arm64 yocto dunfell > build. The issue is > the linking stage throws generic ELF error. I have commented out compiler > related info in my Makefile but still face the issue. Please have a look and > point me in the right direction. > > Initialising tasks: 100% > |##############################################################################################################################################| > Time: 0:00:04 > Sstate summary: Wanted 5 Found 0 Missed 5 Current 537 (0% match, 99% complete) > NOTE: Executing Tasks > WARNING: QA Issue: PN: z3gatewayGPCombo is upper case, this can result in > unexpected behavior. [uppercase-pn] > WARNING: QA Issue: PN: z3gatewayGPCombo is upper case, this can result in > unexpected behavior. [uppercase-pn] > ERROR: z3gatewayGPCombo-0.1-r0 do_compile: Execution of > '/home/edula/yocto3.0/build/tmp/work/aarch64-poky-linux/z3gatewayGPCombo/0.1-r0/temp/run.do_compile.137942' > failed with exit code 2 > ERROR: Logfile of failure stored in: > /home/edula/yocto3.0/build/tmp/work/aarch64-poky-linux/z3gatewayGPCombo/0.1-r0/temp/log.do_compile.137942 > Log data follows: > | DEBUG: Executing shell function do_compile > | # No pre-build defined > | Linking ././Z3GatewayGPCombo > | aarch64-poky-linux-ld: ././project/app.o: Relocations in generic ELF (EM: > 62) > | aarch64-poky-linux-ld: ././project/app.o: Relocations in generic ELF (EM: > 62) > | aarch64-poky-linux-ld: ././project/app.o: Relocations in generic ELF (EM: > 62) > | aarch64-poky-linux-ld: ././project/app.o: error adding symbols: file in > wrong format
Here is your hint. Most likely, the Makefile is hardcoding CC/CXX values but then not doing same for LD so you end up it ignoring cross compiler during compile phase but then pick up cross linker during linker stage. Maybe you can share log.do_compile as well. > | make: *** [Makefile:157: Z3GatewayGPCombo.out] Error 1 > | WARNING: exit code 2 from a shell command. > | ERROR: Execution of > '/home/edula/yocto3.0/build/tmp/work/aarch64-poky-linux/z3gatewayGPCombo/0.1-r0/temp/run.do_compile.137942' > failed with exit code 2 > ERROR: Task > (/home/edula/yocto3.0/meta-blaze/recipes-example/z3gatewayGPCombo/z3gatewayGPCombo_0.1.bb:do_compile) > failed with exit code '1' > NOTE: Tasks Summary: Attempted 1782 tasks of which 1780 didn't need to be > rerun and 1 failed. > NOTE: Writing buildhistory > NOTE: Writing buildhistory took: 2 seconds > > > Thanks > Hassan > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63784): https://lists.yoctoproject.org/g/yocto/message/63784 Mute This Topic: https://lists.yoctoproject.org/mt/108266063/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-