Hi, I'm compiling a small application to do some tests with TinyOS-2.x. I'm
able to compile for the micaz platform, but if I try to do "make micaz sim"
I obtain this result:
[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Prova$ make micaz sim
mkdir -p build/micaz
placing object files in build/micaz
writing XML schema to app.xml
compiling Prova 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
-Wno-nesc-data-race Prova.nc -fnesc-dump=components -fnesc-dump=variables
-fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs
-fnesc-dump=tags -fnesc-dumpfile=app.xml
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:36,
from Prova.nc:8:
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:59: syntax error before `nx_bool'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:59: warning: no semicolon at end
of struct or union
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:60: syntax error before `ack'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:62: syntax error before `}'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:62: warning: type defaults to
`int' in declaration of `cc2420_metadata_t'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:62: warning: data definition has
no type or storage class
In file included from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:55,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `CC2420CsmaP':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaP.nc:78: syntax error before `*'
In file included from /opt/tinyos-2.x
/tos/platforms/mica/Alarm32khz32C.nc:24:
/opt/tinyos-2.x/tos/platforms/mica/MicaTimer.h:121:2: error: #error "Unknown
clock rate. MHZ must be defined to one of 1, 2, 4, or 8."
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/AlarmMultiplexC.nc:52,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ControlC.nc:62,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:61,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `HplCC2420AlarmC':
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/HplCC2420AlarmC.nc:72:
failed to preprocess /opt/tinyos-2.x/tos/platforms/mica/Alarm32khz32C.nc
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/HplCC2420AlarmC.nc:72:
component `Alarm32khz32C' is not generic
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/HplCC2420AlarmC.nc:75: no
match
In file included from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:39,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ControlC.nc:70,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:61,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In interface `GpioCapture':
/opt/tinyos-2.x/tos/interfaces/GpioCapture.nc:50: warning: declaration of
`time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:61: warning: location of shadowed
declaration
In file included from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:47,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ControlC.nc:70,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:61,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `Atm128GpioCaptureC':
/opt/tinyos-2.x/tos/chips/atm128/timer/Atm128GpioCaptureC.nc:64: warning:
declaration of `time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:61: warning: location of shadowed
declaration
In file included from /opt/tinyos-2.x
/tos/chips/atm128/timer/sim/HplAtm128Timer0AsyncC.nc:58,
from /opt/tinyos-2.x
/tos/chips/atm128/timer/HplAtm128Timer1C.nc:44,
from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:48,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ControlC.nc:70,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:61,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `HplAtm128CompareC':
/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc: In function
`timer0_compare_handle':
/opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc:195:
warning: declaration of `time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:61: warning: location of shadowed
declaration
In file included from /opt/tinyos-2.x
/tos/chips/atm128/timer/HplAtm128Timer1C.nc:44,
from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:48,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ControlC.nc:70,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:61,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `HplAtm128Timer1P':
/opt/tinyos-2.x/tos/chips/atm128/timer/HplAtm128Timer1P.nc: At top level:
/opt/tinyos-2.x/tos/chips/atm128/timer/HplAtm128Timer1P.nc:206: warning:
declaration of `time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:61: warning: location of shadowed
declaration
In file included from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:53,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ControlC.nc:70,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:61,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:53: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:54: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:55: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:56: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:57: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:58: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:59: component
arguments must be constants
In component `HplAtm128InterruptPinP':
/opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128InterruptC.nc:60: component
arguments must be constants
In file included from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420SpiC.nc:49,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420SpiP.nc:56,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420SpiC.nc:81,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ControlC.nc:73,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:61,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `Atm128SpiC':
/opt/tinyos-2.x/tos/chips/atm128/spi/sim/Atm128SpiC.nc:39: interface SPIByte
not found
/opt/tinyos-2.x/tos/chips/atm128/spi/sim/Atm128SpiC.nc:39: interface SPIByte
not found
/opt/tinyos-2.x/tos/chips/atm128/spi/sim/Atm128SpiC.nc:40: interface
SPIPacket not found
/opt/tinyos-2.x/tos/chips/atm128/spi/sim/Atm128SpiC.nc:40: interface
SPIPacket not found
In file included from /opt/tinyos-2.x
/tos/chips/atm128/spi/sim/Atm128SpiC.nc:44,
from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420SpiC.nc:49,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420SpiP.nc:56,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420SpiC.nc:81,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ControlC.nc:73,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:61,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `SimAtm128SpiDeviceC':
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:43:
interface SPIByte not found
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:43:
interface SPIByte not found
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:44:
interface SPIPacket not found
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:44:
interface SPIPacket not found
In file included from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:54,
from /opt/tinyos-2.x
/tos/chips/atm128/spi/sim/Atm128SpiC.nc:44,
from /opt/tinyos-2.x
/tos/platforms/micaz/chips/cc2420/HplCC2420SpiC.nc:49,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420SpiP.nc:56,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420SpiC.nc:81,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ControlC.nc:73,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:61,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `SimCC2420C':
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimCC2420C.nc:39:
syntax error before `as'
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimCC2420C.nc:40:
interface SPIByte not found
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimCC2420C.nc:40:
interface SPIByte not found
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimCC2420C.nc:41:
interface SPIPacket not found
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimCC2420C.nc:41:
interface SPIPacket not found
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimCC2420C.nc:54:
syntax error before `as'
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimCC2420C.nc:66:
syntax error before `}'
In component `SimAtm128SpiDeviceC':
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:56:
no match
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:57:
cannot find `SpiResource'
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:58:
no match
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:59:
no match
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:61:
cannot find `SubSpiResource'
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:62:
no match
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimAtm128SpiDeviceC.nc:63:
no match
In component `Atm128SpiC':
/opt/tinyos-2.x/tos/chips/atm128/spi/sim/Atm128SpiC.nc:50: no match
/opt/tinyos-2.x/tos/chips/atm128/spi/sim/Atm128SpiC.nc:51: no match
In component `HplCC2420SpiC':
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/HplCC2420SpiC.nc:53: no
match
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/HplCC2420SpiC.nc:54: no
match
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420TransmitC.nc:45,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:66,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In interface `RadioTimeStamping':
/opt/tinyos-2.x/tos/interfaces/RadioTimeStamping.nc:39: warning: declaration
of `time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:61: warning: location of shadowed
declaration
/opt/tinyos-2.x/tos/interfaces/RadioTimeStamping.nc:50: warning: declaration
of `time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:61: warning: location of shadowed
declaration
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420TransmitP.nc:60,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420TransmitC.nc:51,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:66,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In interface `CC2420Receive':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420Receive.nc:47: warning: declaration
of `time' shadows global declaration
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:61: warning: location of shadowed
declaration
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420TransmitC.nc:51,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:66,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `CC2420TransmitP':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitP.nc:101: syntax error before
`*'
In file included from /opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:50,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420TransmitC.nc:80,
from /opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:66,
from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:53,
from Prova.nc:8:
In component `CC2420ReceiveP':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveP.nc:91: syntax error before
`*'
In component `CC2420ReceiveC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:57: cannot find `Leds'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:59: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:60: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:61: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:62: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:64: cannot find `CSN'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:65: cannot find `FIFO'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:66: cannot find `FIFOP'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:67: cannot find
`InterruptFIFOP'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:69: cannot find
`SpiResource'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:70: cannot find `RXFIFO'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ReceiveC.nc:71: cannot find
`SFLUSHRX'
In component `CC2420TransmitC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:53: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:54: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:55: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:56: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:57: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:60: cannot find
`BackoffTimer'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:63: cannot find `CCA'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:64: cannot find `CSN'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:65: cannot find `SFD'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:68: cannot find
`CaptureSFD'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:71: cannot find
`SpiResource'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:72: cannot find `SNOP'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:73: cannot find `STXON'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:74: cannot find
`STXONCCA'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:75: cannot find
`SFLUSHTX'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:76: cannot find `TXCTRL'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:77: cannot find `TXFIFO'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:78: cannot find
`TXFIFO_RAM'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:81: cannot find
`CC2420Receive'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420TransmitC.nc:84: cannot find `Leds'
In component `CC2420CsmaC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:57: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:58: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:59: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:63: cannot find `Resource'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:64: cannot find
`CC2420Power'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:68: cannot find `SubControl'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:69: cannot find
`CC2420Transmit'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:70: cannot find
`CsmaBackoff'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:74: cannot find `SubControl'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:77: cannot find `Random'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:80: cannot find `Leds'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420CsmaC.nc:83: no match
In file included from /opt/tinyos-2.x
/tos/chips/cc2420/CC2420ActiveMessageC.nc:69,
from Prova.nc:8:
In component `CC2420PacketC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420PacketC.nc:50: syntax error before
`*'
In component `CC2420ActiveMessageC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:70: no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:71: no match
make: *** [sim-exe] Error 1
I tried to check this files, but I'm not able to find the error...
Could me help?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help