Hey,


Not sure if this is the place to be asking this, but here goes. I’ve been
trying to get a large project to build with the msp430 RedHat gcc 4.9
toolchain and have been seeing some really weird errors. It seems to be
generating a call to a special helper method for shifting unsigned 64bit
integers but it is trying to link to a nonexistent version of it.



The call it’s trying to link to is __mspabi_slll_47 which doesn’t make
sense as far as I can tell because there aren’t 47 registers… (assuming
that’s what the 47 means because there are __mspabi_slll_[1-15] calls that
do exist and looking at the gcc machine definition file it seems to be in
line with that).



Here’s the assembly dump from the call it’s trying to link. I’ve been able
to find the line of code that causes this but can’t reproduce it in an
isolated case and I can't post the code because it's under NDA.



 682     .loc 1 185 0

 683     MOV.W   16(R1), R12

 684     MOV.W   #0, R13

 685     CALL    #__mspabi_slll_47



It may be useful to note that when doing an objdump of the libgcc.a file
this symbol is declared but not defined. This might be a compiler bug, or
it may be my misuse of the toolchain.



Here are the flags I compiled with:



-mmcu=msp430x -O0 -Os –fno-exceptions –fno-rtti –D__MSP430FR5969 -Wextra
-ffunction-sections -fdata-sections



My only thought is that this is an obscure bug or something wrong with the
CMake toolchain invoking the compiler.



Toolchain was built from these instructions:



http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Install:redhat


Thanks for any help, if this isn't the right place to ask this let me know
and I'll post there instead.


-Wylder
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to