It looks like your tos path isn't correct, it's looking in
/opt/tinyos-2.x but you're in
/cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/

On Mon, Mar 3, 2008 at 10:27 AM, VIJAY SHEKAR MANGILIPALLI GANGU SHAM
<[EMAIL PROTECTED]> wrote:
>
>
> Hello all,
>
> I have tried simulating the 'radiocounttoleds' application using the command
> make micaz sim, but im getting an error which says 'synax error before
> nx_uint16_t'. I think the syntax is perfectly fine. here is the script in
> bash shell.
>
>
>
> [EMAIL PROTECTED] 
> /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/radiocounttoleds
> $ make micaz sim
> mkdir -p build/micaz
> mig python -target=micaz -DIDENT_PROGRAM_NAME=\"RadioCountToLed\"
> -DIDENT_USER_I
> D=\"VJ\" -DIDENT_HOSTNAME=\"Vijay\" -DIDENT_USER_HASH=0x33e160daL
> -DIDENT_UNIX_T
> IME=0x47cc3e50L -DIDENT_UID_HASH=0xf557e833L -python-classname=RadioCountMsg
> Rad
> ioCountToLeds.h radio_count_msg -o RadioCountMsg.py
> /usr/lib/ncc/nesc_nx.h:16:22: inttypes.h: No such file or directory
> <commandline>: failed to preprocess /usr/lib/ncc/nesc_nx.h
> /opt/tinyos-2.x/tos/system/tos.h:5:22: inttypes.h: No such file or directory
> /opt/tinyos-2.x/tos/system/tos.h:13:20: string.h: No such file or directory
> /opt/tinyos-2.x/tos/system/tos.h:14:20: stdlib.h: No such file or directory
> /opt/tinyos-2.x/tos/system/tos.h:15:18: math.h: No such file or directory
> /opt/tinyos-2.x/tos/system/tos.h:17:19: ctype.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: syntax error before
> `runNextTask
> '
> In file included from /opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:42,
>                  from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:37:
> In C file:
> /opt/tinyos-2.x/tos/types/TinyError.h:47: syntax error before `error_t'
> /opt/tinyos-2.x/tos/types/TinyError.h:49: syntax error before `ecombine'
> In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:37:
> In interface `TaskBasic':
> /opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:56: only commands and events can
> be
> defined in interfaces
> /opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:56: syntax error before
> `postTask'
> In component `TinySchedulerC':
> /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:37: syntax error before
> `uint8_t'
> In file included from /opt/tinyos-2.x/tos/platforms/micaz/hardware.h:50,
>                  from /opt/tinyos-2.x/tos/system/SchedulerBasicP.nc:41:
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:44:20: avr/io.h: No such
> file
> or directory
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:48:27: avr/interrupt.h: No
> suc
> h file or directory
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:49:24: avr/signal.h: No
> such f
> ile or directory
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:51:21: avr/wdt.h: No such
> file
>  or directory
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:52:26: avr/pgmspace.h: No
> such
>  file or directory
> /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:40: failed to preprocess
> /opt/tinyo
> s-2.x/tos/system/SchedulerBasicP.nc
> In file included from /opt/tinyos-2.x/tos/platforms/micaz/hardware.h:50,
>                  from /opt/tinyos-2.x/tos/interfaces/McuPowerOverride.nc:40:
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:44:20: avr/io.h: No such
> file
> or directory
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:48:27: avr/interrupt.h: No
> suc
> h file or directory
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:49:24: avr/signal.h: No
> such f
> ile or directory
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:51:21: avr/wdt.h: No such
> file
>  or directory
> /opt/tinyos-2.x/tos/chips/atm128/atm128hardware.h:52:26: avr/pgmspace.h: No
> such
>  file or directory
> In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:41:
> In component `McuSleepC':
> /opt/tinyos-2.x/tos/chips/atm128/McuSleepC.nc:46: failed to preprocess
> /opt/tiny
> os-2.x/tos/interfaces/McuPowerOverride.nc
> /opt/tinyos-2.x/tos/chips/atm128/McuSleepC.nc:58: syntax error before
> `atm128Pow
> erBits'
> /opt/tinyos-2.x/tos/chips/atm128/McuSleepC.nc:66: syntax error before
> `getPowerS
> tate'
> McuSleepC: `McuSleep.sleep' not implemented
> McuSleepC: `McuPowerState.update' not implemented
> In component `TinySchedulerC':
> /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:42: no match
> /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:43: no match
> /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:44: cannot find `McuSleep'
> In C file:
> <commandline>: Scheduler `TinySchedulerC' has no scheduling interface named
> `Tas
> kBasic'
> RadioCountToLeds.h:34: syntax error before `nx_uint16_t'
> RadioCountToLeds.h:34: warning: no semicolon at end of struct or union
> RadioCountToLeds.h:35: warning: data definition has no type or storage class
> failed to parse message file RadioCountToLeds.h
> make: *** [RadioCountMsg.py] Error 1
>
> ---------------------------------------------------------------------------------
>
>
>
> And the 'RadioCountToLeds.h' files looks like this
>
>
>
> #ifndef RADIO_COUNT_TO_LEDS_H
> #define RADIO_COUNT_TO_LEDS_H
>
> typedef nx_struct radio_count_msg {
>   nx_uint16_t counter;
> } radio_count_msg_t;
>
> enum {
>   AM_RADIO_COUNT_MSG = 6,
> };
>
> #endif
>
> Could anyone please tell me what could be the possible way to getrid of this
> error.
>
> Thank you.
> _______________________________________________
>  Tinyos-help mailing list
>  [email protected]
>  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to