Dear John,
After updating my local TinyOS tree from CVS building even the simplest
programs fail. As far as I can tell this has to do with changes you made
on CVS around February 16, 2008 (including annots_stage1.h in tos.h and
TCAST in various modules). When updating to a version prior to Feb 2008
the compilation works again.
Any ideas what could cause the problem? Maybe I need a newer version of
a tool (if so, which one)?
Cheers,
Urs
nescc 1.2.9
tinyos 2.x (cvs update from this morning)
mac os 10.5.2 (x86)
Trying to compile the Blink application:
>> make clean && make tmote
rm -rf build
rm -rf _TOSSIMmodule.so TOSSIM.pyc TOSSIM.py
mkdir -p build/telosb
compiling BlinkAppC 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 -DIDENT_PROGRAM_NAME=\"BlinkAppC\"
-DIDENT_USER_ID=\"hunkeler\" -DIDENT_HOSTNAME=\"mymac\"
-DIDENT_USER_HASH=0x60220c52L -DIDENT_UNIX_TIME=0x4809a282L
-DIDENT_UID_HASH=0x9a0925bdL BlinkAppC.nc -lm
/opt/tinyos-2.x/tos/system/tos.h:21:47:
../lib/safe/include/annots_stage1.h: No such file or directory
<commandline>: failed to preprocess /opt/tinyos-2.x/tos/system/tos.h
In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:36:
In interface `Scheduler':
/opt/tinyos-2.x/tos/interfaces/Scheduler.nc:54: only commands and events
can be defined in interfaces
/opt/tinyos-2.x/tos/interfaces/Scheduler.nc:54: warning: return-type
defaults to `int'
/opt/tinyos-2.x/tos/interfaces/Scheduler.nc:54: syntax error before
`runNextTask'
In file included from /opt/tinyos-2.x/tos/platforms/telosb/hardware.h:4,
from /opt/tinyos-2.x/tos/system/SchedulerBasicP.nc:41,
from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:40:
In C file:
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:206: syntax error
before `__nesc_atomic_t'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:207: syntax error
before `__nesc_atomic_start'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:208: syntax error
before `reenable_interrupts'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:215: syntax error
before `__nesc_atomic_start'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:217: warning: type
defaults to `int' in declaration of `__x'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:217: warning: data
definition has no type or storage class
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:217: syntax error
before `}'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:218: warning:
return-type defaults to `int'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:218: conflicting types
for `__nesc_disable_interrupt'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:195: previous
declaration of `__nesc_disable_interrupt'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:218: warning: data
definition has no type or storage class
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:219: syntax error
before `volatile'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:223: syntax error
before `reenable_interrupts'
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h: In function
`__nesc_atomic_end':
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:226:
`reenable_interrupts' undeclared (first use in this function)
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:226: (Each undeclared
identifier is reported only once
/opt/tinyos-2.x/tos/chips/msp430/msp430hardware.h:226: for each function
it appears in.)
In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:40:
In component `SchedulerBasicP':
/opt/tinyos-2.x/tos/system/SchedulerBasicP.nc: At top level:
/opt/tinyos-2.x/tos/system/SchedulerBasicP.nc:86: syntax error before
`isWaiting'
SchedulerBasicP: `TaskBasic.postTask' not implemented
SchedulerBasicP: `Scheduler.init' not implemented
SchedulerBasicP: `Scheduler.taskLoop' not implemented
SchedulerBasicP: `Scheduler.bool' not implemented
In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:41:
In component `McuSleepC':
/opt/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:51: syntax error before
`dirty'
/opt/tinyos-2.x/tos/chips/msp430/McuSleepC.nc: In function `McuSleep.sleep':
/opt/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:111: `dirty' undeclared
(first use in this function)
/opt/tinyos-2.x/tos/chips/msp430/McuSleepC.nc: In function
`McuPowerState.update':
/opt/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:121: `dirty' undeclared
(first use in this function)
[truncated here because the full output is too long for the mailing list
server]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help