gcc - Error: "undefined reference to ‘__udivsmodsi4" when switching compilers in Contiki 2.6 -
i switching contiki 2.7 contiki 2.6 have found sky-shell-exec example not build msp430-gcc 4.5.3 in contiki 2.6. around while using contiki 2.6 trying install msp430-gcc 4.6.3.
i have downloaded deb package 4.6.3 http://helpdesk.jogjaprov.go.id/ubuntu/pool/universe/g/gcc-msp430/
and have used following commands try , install it:
sudo apt-get remove gcc* sudo apt-get remove gcc-msp430 sudo dpkg --force-all -i ~/downloads/gcc-msp430_4.6.3~mspgcc-20120406-3_i386.deb sudo apt-get -f install
when msp430-gcc --version returns:
msp430-gcc (gcc) 4.6.3 20120301 (mspgcc lts 20120406 unpatched)
so seems has worked...
however, when try make sky-shell-exec.sky target=sky in examples/sky-shell-exec/ 2 following error:
usr/lib/gcc/msp430/4.6.3/../../../../msp430/lib/mmpy-16/libc.a(vuprintf.o): in function `vuprintf': /build/buildd/msp430-libc-20110612/src/./stdlib/vuprintf.c:387: undefined reference `__udivmodsi4' /build/buildd/msp430-libc-20110612/src/./stdlib/vuprintf.c:397: undefined reference `__udivmodsi4' collect2: ld returned 1 exit status make: *** [sky-shell-exec.sky] error 1
i thought @ first thought might mean system has 2 different versions somehow tangled. but, haven't been able confirm or deny this. have check version output found @ http://www.george-smart.co.uk/wiki/installing_contiki , same except output says "... --build=i686-linux-gnu ..." instead of "... --build=x86_64-linux-gnu ..."
my questions are:
1) doing wrong?
2) how 1 switch msp430-gcc compilers 4.5.3 4.6.3 work contiki 2.6?
thanks!
Comments
Post a Comment