Hello Are you using tinyos 1.x or 2.x? If you use the version 1.x, try install the gcc 3.4. apt-get install gcc-3.4 Use this version for compile apps of tinyos 1.x
Sorry my bad english! Cheers Heberte On Wed, Nov 4, 2009 at 11:01, Razvan Musaloiu-E. <[email protected]> wrote: > Hi! > > On Wed, 4 Nov 2009, David Sanz wrote: > > > Hi, > > > > I had it, but tried again and.. nothing. Can I ask you if you installed > > Karmic or upgraded from 9.04? > > I did a clean install of the 9.10. Just to make sure, here are the > MSP430 packages I have: > > $ dpkg -l 'msp430*' | grep ^ii > ii msp430-binutils-tinyos 2.17-20080806 > MSP430TOOLS -- Binutils > ii msp430-gcc-tinyos 3.2.3-20080806 > MSP430TOOLS -- GNU CC > ii msp430-libc-tinyos 20060801cvs-20080806 > MSP430TOOLS -- Libc > ii msp430-tinyos 2.1-20080806 > Dummy package to pull in all msp430-related > ii msp430-tinyos-base 2.1-20080806 > Dummy package required by all msp430-tinyos > > The repository I have in /etc/apt/sources.list is the following: > > deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main > > -- > Razvan ME > > > I m thinking in format and install again 9.04 or use a virtual machine.. > :S > > > > Thanks, > > > > David > > > > > > 2009/11/3 Razvan Musaloiu-E. <[email protected]> > > > >> Hi! > >> > >> On Tue, 3 Nov 2009, David Sanz wrote: > >> > >> Hello Razvan, > >>> > >>> Thanks for your quick answer :-) Unfortunately, I already had > libc6-dev > >>> installed, and new nesc 1.3.0 package seems not to solve the problem: > when > >>> compiling, I obtain the same results. > >>> > >>> I ve also tried adding some includes in my makefie, but nothing.. is > there > >>> anyway to reset dependency manually? > >>> > >>> > >> My bad, I didn't notice that you are compiling for telosb. :P Did you > >> install the MSP430 toolchain? You should be able to get it by doing > 'apt-get > >> install msp430-tinyos'. Give it a try and let me know if doesn't work. I > >> just installed a fresh Ubuntu 9.10 and it worked. :D > >> > >> > >> All the best! > >> Razvan ME > >> > >> 2009/11/3 Razvan Musaloiu-E. <[email protected]> > >>> > >>> Hi! > >>>> > >>>> > >>>> On Tue, 3 Nov 2009, David Sanz wrote: > >>>> > >>>> Dear all, > >>>> > >>>>> > >>>>> After work perfectly with tin...@ubuntu 9.04, I upgraded my OS to > >>>>> Ubuntu > >>>>> 9.10, and now I am not able even to compile the simplest code. The > >>>>> results > >>>>> when trying to compile are in this way: > >>>>> > >>>>> $ make telosb > >>>>> > >>>>> mkdir -p build/telosb > >>>>> compiling SenseToRadioAppC to a telosb binary > >>>>> ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow > >>>>> -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= > >>>>> -DDEFINED_TOS_AM_GROUP=0x22 -I/opt/tinyos-2.1.0/tos/lib/printf > >>>>> -DIDENT_APPNAME=\"SenseToRadioApp\" -DIDENT_USERNAME=\"sanz\" > >>>>> -DIDENT_HOSTNAME=\"dSanz\" -DIDENT_USERHASH=0x556e4852L > >>>>> -DIDENT_TIMESTAMP=0x4aef1c37L -DIDENT_UIDHASH=0xb47d6cd5L > >>>>> SenseToRadioAppC.nc -lm > >>>>> > >>>>> /usr/lib/ncc/deputy_nodeputy.h:4:20: error: stddef.h: No such file or > directory > >>>>> /usr/lib/ncc/nesc_nx.h:14:26: error: sys/inttypes.h: No such file or > directory > >>>>> /usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8' > >>>>> /usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8' > >>>>> /usr/lib/ncc/nesc_nx.h:242: warning: type defaults to `int' in > declaration of `base' > >>>>> /usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in a > function) > >>>>> /usr/lib/ncc/nesc_nx.h:242: warning: data definition has no type or > storage class > >>>>> /usr/lib/ncc/nesc_nx.h:243: syntax error before `return' > >>>>> /usr/lib/ncc/nesc_nx.h:246: syntax error before `__nesc_ntoh_leuint8' > >>>>> /usr/lib/ncc/nesc_nx.h:251: syntax error before `__nesc_hton_leuint8' > >>>>> /usr/lib/ncc/nesc_nx.h:253: warning: type defaults to `int' in > declaration of `base' > >>>>> /usr/lib/ncc/nesc_nx.h:253: redefinition of `base' > >>>>> ... > >>>>> > >>>>> After looking for in the mailing list and forum, I ve done > >>>>> tos-check-env, > >>>>> and everything seem to be OK, so I guess is a problem with paths or > >>>>> similar. > >>>>> I ve included stddef.h at /usr/lib/ncc > >>>>> I ve also included this lines > >>>>> > >>>>> CFLAGS+=-I/usr/lib/gcc/.../include // where there was stddef.h > >>>>> CFLAGS+=-I/usr/include/ > >>>>> > >>>>> in /opt/tinyos-2.x/support/make/sim.extra > >>>>> > >>>>> and does not work. Don't know what else to do. > >>>>> > >>>>> Do someone has had a similar problem? Does someone have any idea? > >>>>> > >>>>> > >>>>> Try to to install the libc6-dev package (apt-get install libc6-dev). > The > >>>> nesc 1.3.0 package is missing this dependency. The 1.3.1 from here is > >>>> fixed: > >>>> http://cs.jhu.edu/~razvanm/wsn/debian/nesc-1.3.1.deb > >>>> > >>>> > >>>> All the best! > >>>> Razvan ME > >>>> > >>>> > >>> > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Héberte Fernandes de Moraes Mestrando - Programa de Engenharia de Sistemas e Computação LCP/PESC/COPPE/UFRJ
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
