Hi,
While compiling Ltib am encountering this error continously
/usr/bin/ld: ElftosbAST.o: undefined reference to symbol 'lroundf@@GLIBC_2.1'
/usr/bin/ld: note: 'lroundf@@GLIBC_2.1' is defined in DSO /lib/i386-linux-gnu/libm.so.6 so try adding it to the linker command line
/lib/i386-linux-gnu/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [elftosb] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-2.6.35.3-1.1.0/bld/linux'
make: *** [all] Error 2
error: Bad exit status from /home/ganesh/IMX/ltib/tmp/rpm-tmp.61629 (%build)
How can i Fix this error?
Solved! Go to Solution.
Hi Dan Wang ,
I fixed the issue by adding -lm to the makefile.rules of Elftosbast package
Hi Ganesh,
Which version Ubuntu and BSP are you using? I recommend you to have a try sudo ln -s i386-linux-gnu/sys sys. Hope this can help you.
Have a great day,
Best Regards
Dan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks , I use ln -s i386-linux-gnu/sys sys to solve problem on ubuntu 14.04 32bit.
Hi 新月,
It' great:smileyhappy:. If any questions welcome to create new threads in our i.mx community.
Have a nice day
Dan
Hi Dan Wang,
Am using ubuntu 13.04. The BSP version is L2.6.35_1.1.0_130130_source.tar.gz
Hi Ganesh,
About build this BSP with ltib on ubuntu 13.04, you can refer to the thread in this community Compile L2.6.35_1.1.0_130130 for i.MX28 on Ubuntu 13.10 64bit OS.
If any question contact me esaliy~~
Best Regards
Dan
Hi Dan Wang ,
I fixed the issue by adding -lm to the makefile.rules of Elftosbast package
Hi Ganesh,
Glad to hear you have solved the problem. If you have other questions continue , if not would you please help close this thread? Thanks a lot~~
Best Regards
Dan
Hello,
Thank you for your post, however please consider moving it to the right community place (e.g. i.MX Community ) to get it visible for active members.
For details please see general advice Where to post a Discussion?
Thank you for using Freescale Community.