Hi all,

Thanks Jordi for the quick answer, I am actually using the most recent CVS
chekout of tinyos-2.x and tinyos-2.x-contrib they are in /opt, the problem
appear no to be with those trees cause, this morning I reinstall both
(tinyos-2.x and tinyos-2.x-contrib) and the result was the same...

 I think it has to be some packet missing, not installed... I used to have
"make telosb blip" working with ubuntu 8.10, now I change the ubuntu dist to
9.10 and I had install tinyos manually with CVS... thats the reason why I
think it can be a packet not installed...

I found a similiar problem here:
http://webs.cs.berkeley.edu/tos/faq.html#SEC-104

Why do I get assembler errors that looks like this:

/tmp/ccFOvuiZ.s: Assembler messages:
/tmp/ccFOvuiZ.s:10: Error: unknown opcode `disablecou'
/tmp/ccFOvuiZ.s:12: Error: unrecognized symbol type ""
...

or

/tmp/ccrlquXA.s: Assembler messages:
/tmp/ccrlquXA.s:111: Error: `,' required
/tmp/ccrlquXA.s:111: Error: constant value required
/tmp/ccrlquXA.s:111: Error: garbage at end of line

when I try to compile an application?
<http://webs.cs.berkeley.edu/tos/faq.html#TOC-104> TinyOS requires a patch
to the assembler so that NesC can use dollarsigns within object names in
intermediate code representations. This patched assembler was included and
installed in versions of NesC prior to NesC version 1.2.

NesC 1.2 and beyond, however, does not install this patched assembler for
you. Instead, the patched assembler can be found in the binutils RPM
available for your platform. You can find these binutils RPMS for the
MSP430, AVR, and xscale platforms here:
http://www.tinyos.net/dist-1.2.0/tools/. To ensure compatibility within
compiler toolsets, you should upgrade all of your compiler tools
(gcc,binutils,libc) with the rpms found in the above source repository. They
are named by platform.

But reinstalling completely Tinyos, It still have problems doing make telosb
blip...

Has anybody faced a similiar problem???

Best Regards...

Aldo Insfran...

Have you tried to use the cvs version of tinyos? It works like a charm

> cvs -z3 -d:pserver:[email protected]:/cvsroot/tinyos
> co -P tinyos-2.x
> Good luck
>
> 2010/1/13 Aldo Insfran <[email protected]>:
> > Hi all,
> >
> > I trying to install the IPBaseStation to a telosb mote and I have some
> > errors...
> >
> > r...@aldo-laptop
> :/opt/tinyos-2.x-contrib/berkeley/blip/apps/IPBaseStation#
> > make telosb blip
> > mkdir -p build/telosb
> > ??? compiling BaseStationC to a telosb binary
> > ncc -o build/telosb/main.exe? -Os -O -DPACKET_LINK -DDEF_MEMCPY
> > -DENABLE_SPI0_DMA -DBLIP_MULTICAST -DCC2420_HW_ACKNOWLEDGEMENTS
> > -DTOSH_DATA_LENGTH=102 -I/opt/tinyos-2.x/tos/lib/net/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/libtcp/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/interfaces/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/nwprog/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/shell/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/serial/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/platform/
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpan.c
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpanFrag.c
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/in_cksum.c
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/ip_malloc.c
> > /opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/table.c
> > -mdisable-hwmul -fnesc-separator=__ -Wall -Wshadow -Wnesc-all
> -target=telosb
> > -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
> > -DPACKET_LINK -DDEF_MEMCPY -DCC2420_HW_ACKNOWLEDGEMENTS
> > -DTOSH_DATA_LENGTH=102
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/interfaces/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/packet/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/link/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/lowpan/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/include/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/libtcp/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/interfaces/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/nwprog/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/shell/
> > -I/opt/tinyos-2.x-contrib/berkeley/blip/tos/lib/net/blip/serial/
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpan.c
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/lib6lowpanFrag.c
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/in_cksum.c
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/support/sdk/c/blip/lib6lowpan/ip_malloc.c
> > -DNO_IP_MALLOC -DIDENT_APPNAME=\"BaseStationC\" -DIDENT_USERNAME=\"root\"
> > -DIDENT_HOSTNAME=\"aldo-laptop\" -DIDENT_USERHASH=0x8964ff76L
> > -DIDENT_TIMESTAMP=0x4b4d5809L -DIDENT_UIDHASH=0x2bd7802bL?
> BaseStationC.nc
> > -lm
> > /opt/tinyos-2.x/tos/chips/msp430/usart/Msp430Spi0C.nc:62:2: warning:
> > #warning "Enabling SPI DMA on USART0"
> > /opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
> > "*** LOW POWER COMMUNICATIONS DISABLED ***"
> >
> /opt/tinyos-2.x-contrib/berkeley/blip/tos/chips/cc2420/link/PacketLinkC.nc:38:2:
> > warning: #warning "*** USING PACKET LINK LAYER"
> > /tmp/ccCIiVPH.o: In function `getLowpanPayload':
> > lib6lowpan.c:(.text+0x0): multiple definition of `getLowpanPayload'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x0): first defined here
> > /tmp/ccCIiVPH.o: In function `getHeaderBitmap':
> > lib6lowpan.c:(.text+0x1e): multiple definition of `getHeaderBitmap'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x1e): first defined here
> > /tmp/ccCIiVPH.o: In function `setupHeaders':
> > lib6lowpan.c:(.text+0x82): multiple definition of `setupHeaders'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x82): first defined here
> > /tmp/ccCIiVPH.o: In function `hasFrag1Header':
> > lib6lowpan.c:(.text+0xd2): multiple definition of `hasFrag1Header'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0xd2): first defined here
> > /tmp/ccCIiVPH.o: In function `hasFragNHeader':
> > lib6lowpan.c:(.text+0xda): multiple definition of `hasFragNHeader'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0xda): first defined here
> > /tmp/ccCIiVPH.o: In function `getFragDgramSize':
> > lib6lowpan.c:(.text+0xe2): multiple definition of `getFragDgramSize'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0xe2): first defined here
> > /tmp/ccCIiVPH.o: In function `getFragDgramTag':
> > lib6lowpan.c:(.text+0x136): multiple definition of `getFragDgramTag'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x136): first defined here
> > /tmp/ccCIiVPH.o: In function `getFragDgramOffset':
> > lib6lowpan.c:(.text+0x16a): multiple definition of `getFragDgramOffset'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x16a): first defined here
> > /tmp/ccCIiVPH.o: In function `setFragDgramSize':
> > lib6lowpan.c:(.text+0x194): multiple definition of `setFragDgramSize'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x194): first defined here
> > /tmp/ccCIiVPH.o: In function `setFragDgramTag':
> > lib6lowpan.c:(.text+0x1d0): multiple definition of `setFragDgramTag'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x1d0): first defined here
> > /tmp/ccCIiVPH.o: In function `setFragDgramOffset':
> > lib6lowpan.c:(.text+0x1fc): multiple definition of `setFragDgramOffset'
> > /tmp/ccuo7VOS.o:lib6lowpan.c:(.text+0x1fc): first defined here
> > /tmp/ccg2v3hO.o:(.data+0x0): multiple definition of `linklocal_prefix'
> > /tmp/ccqJkAmq.o:(.data+0x0): first defined here
> > /tmp/ccg2v3hO.o:(.data+0x8): multiple definition of `multicast_prefix'
> > /tmp/ccqJkAmq.o:(.data+0x8): first defined here
> > /tmp/ccg2v3hO.o:(.data+0x10): multiple definition of `__my_address'
> > /tmp/ccqJkAmq.o:(.data+0x10): first defined here
> > /tmp/ccg2v3hO.o:(.data+0x20): multiple definition of `globalPrefix'
> > /tmp/ccqJkAmq.o:(.data+0x20): first defined here
> > /tmp/ccg2v3hO.o: In function `getLinkLocalPrefix':
> > lib6lowpanIP.c:(.text+0x0): multiple definition of `getLinkLocalPrefix'
> > /tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x0): first defined here
> > /tmp/ccg2v3hO.o: In function `cmpPfx':
> > lib6lowpanIP.c:(.text+0x6): multiple definition of `cmpPfx'
> > /tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x6): first defined here
> > /tmp/ccg2v3hO.o: In function `unpackHeaders':
> > lib6lowpanIP.c:(.text+0x1c): multiple definition of `unpackHeaders'
> > /tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x1c): first defined here
> > /tmp/ccg2v3hO.o: In function `packHeaders':
> > lib6lowpanIP.c:(.text+0x42e): multiple definition of `packHeaders'
> > /tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x42e): first defined here
> > /tmp/ccg2v3hO.o: In function `inet_pton6':
> > lib6lowpanIP.c:(.text+0x640): multiple definition of `inet_pton6'
> > /tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x640): first defined here
> > /tmp/ccg2v3hO.o: In function `inet_ntop6':
> > lib6lowpanIP.c:(.text+0x788): multiple definition of `inet_ntop6'
> > /tmp/ccqJkAmq.o:lib6lowpanIP.c:(.text+0x788): first defined here
> > /tmp/ccNmz38R.o:(.data+0x0): multiple definition of `lib6lowpan_frag_tag'
> > /tmp/cc6VpGY7.o:(.data+0x0): first defined here
> > /tmp/ccNmz38R.o: In function `ip_memclr':
> > lib6lowpanFrag.c:(.text+0x0): multiple definition of `ip_memclr'
> > /tmp/cc6VpGY7.o:lib6lowpanFrag.c:(.text+0x0): first defined here
> > /tmp/ccNmz38R.o: In function `ip_memcpy':
> > lib6lowpanFrag.c:(.text+0x10): multiple definition of `ip_memcpy'
> > /tmp/cc6VpGY7.o:lib6lowpanFrag.c:(.text+0x10): first defined here
> > /tmp/ccNmz38R.o: In function `getNextFrag':
> > lib6lowpanFrag.c:(.text+0x26): multiple definition of `getNextFrag'
> > /tmp/cc6VpGY7.o:lib6lowpanFrag.c:(.text+0x26): first defined here
> > /tmp/ccKI2Vn0.o: In function `in_cksum':
> > in_cksum.c:(.text+0x0): multiple definition of `in_cksum'
> > /tmp/ccivA1xW.o:in_cksum.c:(.text+0x0): first defined here
> > /tmp/ccKI2Vn0.o: In function `msg_cksum':
> > in_cksum.c:(.text+0x78): multiple definition of `msg_cksum'
> > /tmp/ccivA1xW.o:in_cksum.c:(.text+0x78): first defined here
> > make: *** [exe0] Error 1
> >
> > I do not Know if its a problem with assembler... or nesc... or maybe some
> > dependencies...
> > Here are the environmetal variables...
> >
> > PATH=/opt/tinyos-2.x/support/sdk/c:$PATH
> > TOSROOT=/opt/tinyos-2.x
> > TOSDIR=$TOSROOT/tos
> > CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar:.
> > MAKERULES=$TOSROOT/support/make/Makerules
> > PYTHONPATH=.:$TOSROOT/support/sdk/python:$PYTHONPATH
> > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/msp430/lib:/usr/local/lib
> > LOWPAN_ROOT=/opt/tinyos-2.x-contrib/berkeley/blip
> > TOSMAKE_PATH=$LOWPAN_ROOT/support/make
> >
> > I do not have any problems doing: make telosb (with Blink, for example)
> >
> > Notice that there is 2 lib6lowpan.c files... one in the
> tinyos-2.x-contrib
> > tree and another in the tinyos-2.x tree...
> > I do not know to which one the make rules point...
> >
> > Any one have any clues or ideas?
> >
> > Best Regards...
> >
> > Aldo Insfran...
> >
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
>
> --
> Jordi Soucheiron
> Software Engineer
>
> DEXMA
> Parc Tecnol?gic la Salle
> Sant Joan de la Salle, 42
> 08022 Barcelona
> t/f: [+34] 93 181 01 95
> www.dexmatech.com
> [email protected]

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to