AnsweredAssumed Answered

i am trying to generating AppTRK.elf file for p2041rdb-pb but i am getting following error?

Question asked by Shashank Reddy Vulupala on Dec 11, 2012

QorIQ-DPAA-SDK-20111026-systembuilder/freescale-2011.03/bin/powerpc-linux-gnu-gcc-4.5.2 -s \

        -L../../../rootfs/usr/lib -o "AppTRK.elf"  Output/Source/Portable/break.o Output/Source/Portable/dispatch.o Output/Source/Portable/input.o Output/Source/Portable/main_TRK.o Output/Source/Portable/mainloop.o Output/Source/Portable/mem_TRK.o Output/Source/Portable/msgbuf.o Output/Source/Portable/msghndlr.o Output/Source/Portable/msgparse.o Output/Source/Portable/mutex_TRK.o Output/Source/Portable/notify.o Output/Source/Portable/nubassrt.o Output/Source/Portable/nubevent.o Output/Source/Portable/nubinit.o Output/Source/Portable/obarray.o Output/Source/Portable/rfc1662.o Output/Source/Portable/step.o Output/Source/Portable/string_TRK.o Output/Source/Portable/support.o Output/Source/Portable/transport.o Output/Source/Portable/usr_put.o  Output/Source/Linux/linux_comm.o Output/Source/Linux/linux_elf.o Output/Source/Linux/linux_main.o Output/Source/Linux/linux_msghndlr.o Output/Source/Linux/linux_notify.o Output/Source/Linux/linux_so.o Output/Source/Linux/linux_targimpl.o Output/Source/Linux/linux_thread.o Output/Source/Linux/linux_timeout.o  Output/Source/Linux_PA/linux_ppc_targimpl.o  Output/Source/PA/targtrace.o   -lelf -lutil -lthread_db

/home/mistral/shashank/Material/FREESCALE_BACKUP/CD/final/QorIQ-DPAA-SDK-20111026-systembuilder/freescale-2011.03/bin/../lib/gcc/powerpc-linux-gnu/4.5.2/../../../../powerpc-linux-gnu/bin/ld: cannot find -lelf

collect2: ld returned 1 exit status

make: *** [AppTRK.elf] Error 1

 


i am cross compiling AppTRK for p2041rdb board, i have attached makefile also.


i am getting above error while doing make.


Thank you,

Shashank

Original Attachment has been moved to: Makefile.zip

Outcomes