On Fri, May 11, 2012 at 8:46 AM, Franck Rousseau <[email protected]> wrote: > hello everyone, > > i've been trying to move from the old mspgcc4 version to the current LTS one > for an on-going project, but there is a problem at the final link stage : > __udivmodsi4 is missing for vuprintf > > /opt/mspgcc/lib/gcc/msp430/4.6.3/../../../../msp430/lib/libc.a(vuprintf.o): > In function `vuprintf': > /mspgcc/msp430-libc-20120224/src/./stdlib/vuprintf.c:549: undefined reference > to `__udivmodsi4' > /mspgcc/msp430-libc-20120224/src/./stdlib/vuprintf.c:549: undefined reference > to `__udivmodsi4' > /mspgcc/msp430-libc-20120224/src/./stdlib/vuprintf.c:552: undefined reference > to `__udivmodhi4' > /mspgcc/msp430-libc-20120224/src/./stdlib/vuprintf.c:552: undefined reference > to `__udivmodhi4'
I would guess that you have mixed versions somewhere, since the combined divmod instruction was removed from mspgcc in December in a flurry of activity that included http://mspgcc.git.sourceforge.net/git/gitweb.cgi?p=mspgcc/gcc;a=commit;h=e6f2470df0df37d3c745f904c4cd4ab39bee6713 My builds of 20120412 do not reference that function in vuprintf; the separated functions are invoked instead: llc[398]$ nm vuprintf.o U __udivdi3 U __udivhi3 U __udivsi3 U __umoddi3 U __umodhi3 U __umodsi3 Possibly you used the old compiler when you built msp430-libc. I don't know if that's an issue in the instructions you reference below (I don't maintain or even vet those). > this symbol can be found in gcc-4.4.5/gcc/config/msp430/libgcc.S in the old > mspgcc4 source that i built some time ago, but not any more in the new > version based on 4.6.3, although the symbol appears in many object files of > the msp430-libc > > btw, i followed these directions to build the tool chain > http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Install:fromsource > > the same problem was reported in this mail on the list > From: Aljaž Srebrnič <[email protected]> > Subject: [Mspgcc-users] Portfiles completed > Date: 6 jan 2012 11:12:54 HNEC Interesting; I missed that. The issue there also appears to be in part a reference to the wrong msp430-libc installation. Peter > is this a mistake on my side ? a problem somewhere in the build process ? in > mspgcc ? > > cheers, > > -- > Franck > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users
