Hello to all!
First sorry for my 
english
I want to install TinyOS 2.1.1 on Ubuntu 10.04 (Lucid Lynx). 
For this, I've followed the steps from
http://docs.tinyos.net/index.php/Installing_TinyOS_2.1.1#Two-step_install_on_your_host_OS_with_Debian_packages

I
 added "/opt/tinyos-2.1.1/support/sdk/java/tinyos.jar:." to the 
CLASSPATH variable because "tos-check-env" command warned me. All OK.

When
 I compile Blink application for Telosb, I get the following:

mkdir -p build/telosb    
compiling BlinkAppC to a telosb binaryncc -o 
build/telosb/main.exe  -Os -O -mdisable-hwmul -fnesc-separator=__ -Wall 
-Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c 
-board= -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\" 
-DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"iesluiscarrillo\" 
-DIDENT_USERHASH=0x1b64954cL -DIDENT_TIMESTAMP=0x4c40af2aL 
-DIDENT_UIDHASH=0xbb49d646L  BlinkAppC.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 `b
... ... ... ...
 ...
In component 
`HilTimerMilliC':
/opt/tinyos-2.1.1/tos/chips/msp430/timer/HilTimerMilliC.nc:47:
 no match
/opt/tinyos-2.1.1/tos/chips/msp430/timer/HilTimerMilliC.nc:48:
 no match
/opt/tinyos-2.1.1/tos/chips/msp430/timer/HilTimerMilliC.nc:50:
 cannot find `TimerFrom'
/opt/tinyos-2.1.1/tos/chips/msp430/timer/HilTimerMilliC.nc:51: cannot find 
`Alarm'
/opt/tinyos-2.1.1/tos/chips/msp430/timer/HilTimerMilliC.nc:52:
 cannot find `Counter'
In component `TimerMilliC':
/opt/tinyos-2.1.1/tos/system/TimerMilliC.nc:44: 
too many arguments
make: *** [exe0] Error 1

I've read 
the problem may be the GCC compiler version  (4.4.3) :
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2009-November/043045.html

If
 I compile for micaz, for example, there is NO problem :S

Should I
 install an older Ubuntu version? Is there any way to fix the problem on
 this Ubuntu 10.04?

Thanks in advance!!

╔══════════════════════════════════════╗
║                José A. Tarifa Galisteo
║
║  Estudiante Ingeniería de Telecomunicación
║  Escuela Superior de Ingenieros - U. Sevilla
║  http://alumno.us.es/j/jostargal/
╚══════════════════════════════════════╝
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to