Currently we use Cmake with arm-elf-gcc as the compiler. I wanted to try arm-none-eabi toolchain. I am trying to understand how to go back and forth between arm-elf-gcc compile and link and arm-none-eabi-gcc compile and link. I switched the compiler and everything compiles, but linking I get the error at the bottom. I am not clear on the linking. Can anyone tell me how or tell me where its explained. I have the Yagarto example, but when I tried going in the other direction by changing the makefile from none-eabi to elf - that didn't work either. So they must used either a different linker or the options are so different you have to change more options... I havn't found documentation on linkers differences. Just eabi is more general. Thanks... arm-none-eabi link error below c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-ea bi/bin/ld.exe: error: Source object CMakeFiles/forte.dir/core/extevhan.cpp.o has EABI version 5, but target forte.elf has EABI version 0 c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../arm-none-ea bi/bin/ld.exe: failed to merge target specific data of file CMakeFiles/forte.dir/core/extevhan.cpp.o
Guest
#2290512
Maybe you better cleanup the project before changing the compiler. Both produce different object code which is not linkable together. Duke
Reply
Please log in before posting.