Hi,
     I just installed TinyOS 2.x using the Debian packages, as described on
http://www.tinyos.net/scoop/story/2007/3/1/142950/4912,
under Ubunutu Linux 7.04.
     I am experiencing some problems related to compiling for TOSSIM:
1)   Although I installed the supported Python version 2.4, the "python"
command still maps to the default Ubuntu version 2.5. How can I change
this?
2)   TOSSIM never gets past the ncc part of the compilation, as shown on
the attached terminal session (abbreviated to fit size limit). It seems as
though it cannot find the C libraries, although tos-check-env passes and I
believe that these are installed on my system. How do I get around these
errors?

Thanks,
Tal
[EMAIL PROTECTED]:~$ cd /opt/tinyos-2.x/apps/Blink/
[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ make micaz sim
mkdir -p build/micaz
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim 
-fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   
-finline-limit=100000 -Wall -Wshadow -Wnesc-all -target=micaz 
-fnesc-cfile=build/micaz/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"BlinkAppC\" 
-DIDENT_USER_ID=\"tr76\" -DIDENT_HOSTNAME=\"tr76-laptop\" 
-DIDENT_USER_HASH=0x44ac39e7L -DIDENT_UNIX_TIME=0x46908923L 
-DIDENT_UID_HASH=0x711a21a6L -Wno-nesc-data-race BlinkAppC.nc   
-fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants 
-fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags 
-fnesc-dumpfile=app.xml
/usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory
<commandline>: failed to preprocess /usr/lib/ncc/nesc_nx.h
/opt/tinyos-2.x/tos/lib/tossim/tos.h:41:22: error: inttypes.h: No such file or 
directory
/opt/tinyos-2.x/tos/lib/tossim/tos.h:49:20: error: string.h: No such file or 
directory
/opt/tinyos-2.x/tos/lib/tossim/tos.h:50:20: error: stdlib.h: No such file or 
directory
/opt/tinyos-2.x/tos/lib/tossim/tos.h:51:18: error: math.h: No such file or 
directory
/opt/tinyos-2.x/tos/lib/tossim/tos.h:53:19: error: ctype.h: No such file or 
directory
/opt/tinyos-2.x/tos/lib/tossim/tos.h:54:19: error: stdio.h: No such file or 
directory
In file included from /opt/tinyos-2.x/tos/lib/tossim/tos.h:88:
/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:39:22: error: sys/time.h: No such 
file or directory
In file included from /opt/tinyos-2.x/tos/lib/tossim/sim_mac.c:38,
                 from /opt/tinyos-2.x/tos/lib/tossim/tos.h:89:
/opt/tinyos-2.x/tos/lib/tossim/sim_noise.c:37:18: error: time.h: No such file 
or directory
<commandline>: failed to preprocess /opt/tinyos-2.x/tos/lib/tossim/tos.h
In file included from /opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:35:
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/interfaces/TaskBasic.nc:42,
                 from /opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:36:
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/lib/tossim/TinySchedulerC.nc:36:
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: warning: return-type defaults 
to `int'
/opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:56: syntax error before `postTask'
In component `TinySchedulerC':
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:36: syntax error before 
`uint8_t'
In file included from /opt/tinyos-2.x/tos/lib/tossim/sim_event_queue.h:40,
                 from /opt/tinyos-2.x/tos/lib/tossim/SimSchedulerBasicP.nc:37:
/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.h:37:19: error: stdio.h: No such file 
or directory
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:39: failed to preprocess 
/opt/tinyos-2.x/tos/lib/tossim/SimSchedulerBasicP.nc
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:40: no match
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:41: no match
In C file:
<commandline>: Scheduler `TinySchedulerC' has no scheduling interface named 
`TaskBasic'
In file included from /opt/tinyos-2.x/tos/chips/atm128/sim/atm128hardware.h:43,
                 from 
/opt/tinyos-2.x/tos/platforms/micaz/sim/platform_hardware.h:44,
                 from /opt/tinyos-2.x/tos/lib/tossim/hardware.h:1,
                 from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:37:
/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.h:37:19: error: stdio.h: No such file 
or directory
In component `BlinkAppC':
BlinkAppC.nc:45: failed to preprocess /opt/tinyos-2.x/tos/lib/tossim/MainC.nc
In file included from BlinkC.nc:41,
                 from BlinkAppC.nc:45:
In interface `Timer':
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:53: syntax error before `dt'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:62: syntax error before `dt'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:81: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:81: warning: return-type defaults to 
`int'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:81: syntax error before `isRunning'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:87: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:87: warning: return-type defaults to 
`int'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:87: redefinition of `bool'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:87: syntax error before `isOneShot'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:103: syntax error before `t0'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:118: syntax error before `t0'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:125: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:125: warning: return-type defaults to 
`int'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:125: syntax error before `getNow'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:133: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:133: warning: return-type defaults to 
`int'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:133: redefinition of `uint32_t'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:133: syntax error before `gett0'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:140: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:140: warning: return-type defaults to 
`int'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:140: redefinition of `uint32_t'
/opt/tinyos-2.x/tos/lib/timer/Timer.nc:140: syntax error before `getdt'
In file included from BlinkC.nc:44,
                 from BlinkAppC.nc:45:
In interface `Leds':
/opt/tinyos-2.x/tos/interfaces/Leds.nc:106: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/interfaces/Leds.nc:106: warning: return-type defaults to 
`int'
/opt/tinyos-2.x/tos/interfaces/Leds.nc:106: syntax error before `get'
/opt/tinyos-2.x/tos/interfaces/Leds.nc:123: warning: declaration of `uint8_t' 
shadows global declaration
/opt/tinyos-2.x/tos/interfaces/Leds.nc:106: warning: location of shadowed 
declaration
/opt/tinyos-2.x/tos/interfaces/Leds.nc:123: syntax error before `val'
In file included from BlinkAppC.nc:45:
In component `BlinkC':
BlinkC.nc: In function `Timer0.fired':
BlinkC.nc:58: implicit declaration of function `dbg'
BlinkC.nc:58: implicit declaration of function `sim_time_string'
BlinkC.nc: In function `Timer1.fired':
BlinkC.nc:64: implicit declaration of function `dbg'
BlinkC.nc:64: implicit declaration of function `sim_time_string'
BlinkC.nc: In function `Timer2.fired':
BlinkC.nc:70: implicit declaration of function `dbg'
BlinkC.nc:70: implicit declaration of function `sim_time_string'
In file included from /opt/tinyos-2.x/tos/system/LedsP.nc:35,
                 from /opt/tinyos-2.x/tos/system/LedsC.nc:38,
                 from BlinkAppC.nc:45:
In interface `Init':
/opt/tinyos-2.x/tos/interfaces/Init.nc: At top level:
/opt/tinyos-2.x/tos/interfaces/Init.nc:51: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/interfaces/Init.nc:51: warning: return-type defaults to 
`int'
/opt/tinyos-2.x/tos/interfaces/Init.nc:51: syntax error before `init'
In file included from /opt/tinyos-2.x/tos/system/LedsP.nc:39,
                 from /opt/tinyos-2.x/tos/system/LedsC.nc:38,
                 from BlinkAppC.nc:45:
In interface `GeneralIO':
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:32: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:32: warning: return-type defaults 
to `int'
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:32: syntax error before `get'
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:34: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:34: warning: return-type defaults 
to `int'
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:34: redefinition of `bool'
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:34: syntax error before `isInput'
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:36: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:36: warning: return-type defaults 
to `int'
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:36: redefinition of `bool'
/opt/tinyos-2.x/tos/interfaces/GeneralIO.nc:36: syntax error before `isOutput'
In file included from /opt/tinyos-2.x/tos/system/LedsC.nc:38,
                 from BlinkAppC.nc:45:
In component `LedsP':
/opt/tinyos-2.x/tos/system/LedsP.nc:45: syntax error before `Init'
LedsP: `Init.error_t' not implemented
LedsP: `Leds.led0Off' not implemented
LedsP: `Leds.led0Toggle' not implemented
LedsP: `Leds.led1On' not implemented
LedsP: `Leds.led1Toggle' not implemented
LedsP: `Leds.led2Toggle' not implemented
LedsP: `Leds.led2Off' not implemented
LedsP: `Leds.led1Off' not implemented
LedsP: `Leds.uint8_t' not implemented
LedsP: `Leds.set' not implemented
LedsP: `Leds.led0On' not implemented
LedsP: `Leds.led2On' not implemented
In file included from /opt/tinyos-2.x/tos/chips/atm128/sim/atm128hardware.h:43,
                 from 
/opt/tinyos-2.x/tos/platforms/micaz/sim/platform_hardware.h:44,
                 from /opt/tinyos-2.x/tos/lib/tossim/hardware.h:1,
                 from /opt/tinyos-2.x/tos/platforms/mica/PlatformLedsC.nc:31:
/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.h:37:19: error: stdio.h: No such file 
or directory
In file included from BlinkAppC.nc:45:
In component `LedsC':
/opt/tinyos-2.x/tos/system/LedsC.nc:38: failed to preprocess 
/opt/tinyos-2.x/tos/platforms/mica/PlatformLedsC.nc
/opt/tinyos-2.x/tos/system/LedsC.nc:42: cannot find `Init'
/opt/tinyos-2.x/tos/system/LedsC.nc:43: cannot find `Led0'
/opt/tinyos-2.x/tos/system/LedsC.nc:44: cannot find `Led1'
/opt/tinyos-2.x/tos/system/LedsC.nc:45: cannot find `Led2'
In file included from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
                 from BlinkAppC.nc:46:
In component `TimerMilliP':
/opt/tinyos-2.x/tos/system/TimerMilliP.nc:38: syntax error before `uint8_t'
In file included from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
                 from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
                 from BlinkAppC.nc:46:
In component `HilTimerMilliC':
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:36: syntax error 
before `uint8_t'
In file included from 
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:37,
                 from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
                 from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
                 from BlinkAppC.nc:46:
In interface `LocalTime':
/opt/tinyos-2.x/tos/lib/timer/LocalTime.nc:50: only commands and events can be 
defined in interfaces
/opt/tinyos-2.x/tos/lib/timer/LocalTime.nc:50: warning: return-type defaults to 
`int'
/opt/tinyos-2.x/tos/lib/timer/LocalTime.nc:50: syntax error before `get'
In file included from 
/opt/tinyos-2.x/tos/platforms/mica/AlarmCounterMilliP.nc:21,
                 from 
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:41,
                 from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
                 from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
                 from BlinkAppC.nc:46:
In C file:
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:91: syntax error before 
`uint8_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:91: warning: no semicolon 
at end of struct or union
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:93: syntax error before 
`uint8_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:93: warning: no semicolon 
at end of struct or union
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:94: syntax error before 
`wgm1'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:95: syntax error before 
`com'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:96: syntax error before 
`wgm0'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:97: syntax error before 
`foc'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:98: warning: type defaults 
to `int' in declaration of `bits'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:98: warning: data 
definition has no type or storage class
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:99: syntax error before `}'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:99: warning: type defaults 
to `int' in declaration of `Atm128TimerControl_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:99: warning: data 
definition has no type or storage class
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:101: syntax error before 
`Atm128_TCCR0_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:102: syntax error before 
`Atm128_TCNT0_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:103: syntax error before 
`Atm128_OCR0_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:105: syntax error before 
`Atm128_TCCR2_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:106: syntax error before 
`Atm128_TCNT2_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:107: syntax error before 
`Atm128_OCR2_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:113: syntax error before 
`uint8_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:113: warning: no semicolon 
at end of struct or union
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:115: syntax error before 
`uint8_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:115: warning: no semicolon 
at end of struct or union
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:116: syntax error before 
`ocr0ub'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:117: syntax error before 
`tcn0ub'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:118: syntax error before 
`as0'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:119: syntax error before 
`rsvd'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:120: warning: type 
defaults to `int' in declaration of `bits'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:120: warning: data 
definition has no type or storage class
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:121: syntax error before 
`}'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:121: warning: type 
defaults to `int' in declaration of `Atm128Assr_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:121: warning: data 
definition has no type or storage class
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:126: syntax error before 
`uint8_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:126: warning: no semicolon 
at end of struct or union
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:128: syntax error before 
`uint8_t'
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:128: warning: no semicolon 
at end of struct or union
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128Timer.h:129: syntax error before 
`ocie0'
 . . . 
/opt/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc:50: warning: no semicolon at 
end of struct or union
/opt/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc:51: syntax error before `dt'
/opt/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc:52: syntax error before 
`isoneshot'
/opt/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc:53: syntax error before 
`isrunning'
/opt/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc:54: syntax error before 
`_reserved'
VirtualizeTimerC: `TimerFrom.fired' not implemented
VirtualizeTimerC: `Timer.startPeriodicAt' not implemented
VirtualizeTimerC: `Timer.startOneShotAt' not implemented
VirtualizeTimerC: `Timer.startPeriodic' not implemented
VirtualizeTimerC: `Timer.startOneShot' not implemented
VirtualizeTimerC: `Timer.stop' not implemented
In file included from 
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:43,
                 from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41,
                 from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40,
                 from BlinkAppC.nc:46:
In component `CounterToLocalTimeC':
/opt/tinyos-2.x/tos/lib/timer/CounterToLocalTimeC.nc:38: syntax error before 
`uint32_t'
/opt/tinyos-2.x/tos/lib/timer/CounterToLocalTimeC.nc:42: syntax error before 
`LocalTime'
In component `HilTimerMilliC':
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:47: no match
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:48: cannot find 
`TimerFrom'
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:49: cannot find `Alarm'
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:51: no match
/opt/tinyos-2.x/tos/platforms/mica/sim/HilTimerMilliC.nc:52: cannot find 
`Counter'
In component `TimerMilliP':
/opt/tinyos-2.x/tos/system/TimerMilliP.nc:42: cannot find `SoftwareInit'
In component `TimerMilliC':
/opt/tinyos-2.x/tos/system/TimerMilliC.nc:44: too many arguments
In component `BlinkAppC':
BlinkAppC.nc:51: cannot find `Boot'
make: *** [sim-exe] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to