Hi,
I just went through the installation of 2.1.1 as described on the Wiki on a
Debian system (tracking unstable).
First, there are file conflicts with distribution packages:
* gcc-avr
* avrdude
* binutils-avr
Those are required by some packages in the TinyOS repository, instead of the
*-tinyos packages. So that requires quite a bit of manual interaction, and
likely breaks things because you're now dealign with a mix of distribtion- and
tos-packages.
Second, the provided nesc package does not provide an "ncc" binary.
After trying to work around that by symlinking ncc->nescc, and sourcing the
settings script, trying to run "make micaz" in the Blink app fails:
============================================================
~/Code/Blink$ make micaz
/bin/sh: tos-ident-flags: not found
mkdir -p build/micaz
compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all
-target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm
gcc: unrecognized option '-target=micaz'
gcc: unrecognized option '-board=micasb'
In component `BlinkAppC':
BlinkAppC.nc:45: component MainC not found
BlinkC.nc:37:19: error: Timer.h: No such file or directory
In file included from BlinkAppC.nc:45:
In component `BlinkC':
BlinkC.nc:41: interface Timer not found
BlinkC.nc:41: syntax error before `TMilli'
BlinkC.nc:42: syntax error before `TMilli'
BlinkC.nc:43: syntax error before `TMilli'
BlinkC.nc:44: interface Leds not found
BlinkC.nc:45: interface Boot not found
BlinkC.nc:50: `booted' is not in interface `Boot'
BlinkC.nc: In function `Boot.booted':
BlinkC.nc:51: `Timer0' undeclared (first use in this function)
BlinkC.nc:51: (Each undeclared identifier is reported only once
BlinkC.nc:51: for each function it appears in.)
BlinkC.nc:52: `Timer1' undeclared (first use in this function)
BlinkC.nc:53: `Timer2' undeclared (first use in this function)
BlinkC.nc: At top level:
BlinkC.nc:57: unknown interface `Timer0'
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:59: interface has no command or event named `led0Toggle'
BlinkC.nc: At top level:
BlinkC.nc:63: unknown interface `Timer1'
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:65: interface has no command or event named `led1Toggle'
BlinkC.nc: At top level:
BlinkC.nc:69: unknown interface `Timer2'
BlinkC.nc: In function `Timer2.fired':
BlinkC.nc:70: implicit declaration of function `dbg'
BlinkC.nc:70: implicit declaration of function `sim_time_string'
BlinkC.nc:71: interface has no command or event named `led2Toggle'
In component `BlinkAppC':
BlinkAppC.nc: At top level:
BlinkAppC.nc:45: component LedsC not found
BlinkAppC.nc:46: component TimerMilliC not found
BlinkAppC.nc:46: component `TimerMilliC' is not generic
BlinkAppC.nc:47: component `TimerMilliC' is not generic
BlinkAppC.nc:48: component `TimerMilliC' is not generic
BlinkAppC.nc:51: cannot find `Boot'
BlinkAppC.nc:53: cannot find `Timer0'
BlinkAppC.nc:54: cannot find `Timer1'
BlinkAppC.nc:55: cannot find `Timer2'
BlinkAppC.nc:56: no match
make: *** [exe0] Error 1
$ ncc --version
nescc: 1.3.1
gcc: gcc (Debian 4.4.5-10) 4.4.5
============================================================
I'd be grateful for pointers towards fixing that mess.
Regards,
Nicos
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help