Hi,
     I tried to compile the RSSISample program in
/tinyos-2.x-contrib/stanford-sing/apps/RssiSample for TOSSIM.
However, I got several error messages. Then, I tried to compile this
application to the MicaZ mote, and it seems to have worked. I then
compiled to TOSSIM again and I got a different error message!
     Please see the terminal dump in the attached text file.
     Does anyone know the reason for this behavior? Is it possible to
compile and run RSSI sample on TOSSIM? If not, then why?
     I really appreciate any assistance in advance.

Tal
Setting up for TinyOS 2.x
[EMAIL PROTECTED]:/opt/tinyos-2.x-contrib/stanford-sing/apps/RssiSample$ make 
micaz sim
mkdir -p build/micaz
mig java -target=null -DIDENT_PROGRAM_NAME=\"NoiseAppC\" 
-DIDENT_USER_ID=\"test\" -DIDENT_HOSTNAME=\"test-desktop\" 
-DIDENT_USER_HASH=0xb35df890L -DIDENT_UNIX_TIME=0x4687e9a6L 
-DIDENT_UID_HASH=0x6dee62baL -java-classname=RssiSampleMsg NoiseSample.h 
rssi_sample_msg -o RssiSampleMsg.java
javac *.java
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling NoiseAppC 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 -Ibuild/micaz 
-DIDENT_PROGRAM_NAME=\"NoiseAppC\" -DIDENT_USER_ID=\"test\" 
-DIDENT_HOSTNAME=\"test-desktop\" -DIDENT_USER_HASH=0xb35df890L 
-DIDENT_UNIX_TIME=0x4687e9a6L -DIDENT_UID_HASH=0x6dee62baL -Wno-nesc-data-race 
NoiseAppC.nc   -fnesc-dump=components -fnesc-dump=variables 
-fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs 
-fnesc-dump=tags -fnesc-dumpfile=app.xml
NoiseAppC.nc:38:28: error: StorageVolumes.h: No such file or directory
<commandline>: failed to preprocess NoiseAppC.nc
make: *** [sim-exe] Error 1
[EMAIL PROTECTED]:/opt/tinyos-2.x-contrib/stanford-sing/apps/RssiSample$ make 
micaz
mkdir -p build/micaz
tos-storage-at45db /opt/tinyos-2.x/tos/platforms/micaz <volumes-at45db.xml 
>build/micaz/StorageVolumes.h || rm -f build/micaz/StorageVolumes.h
    compiling NoiseAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow -Wnesc-all 
-target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -Ibuild/micaz 
-DIDENT_PROGRAM_NAME=\"NoiseAppC\" -DIDENT_USER_ID=\"test\" 
-DIDENT_HOSTNAME=\"test-desktop\" -DIDENT_USER_HASH=0xb35df890L 
-DIDENT_UNIX_TIME=0x4687ea03L -DIDENT_UID_HASH=0x49b630f5L -fnesc-dump=wiring 
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, 
components)' -fnesc-dumpfile=build/micaz/wiring-check.xml NoiseAppC.nc -lm 
    compiled NoiseAppC to build/micaz/main.exe
           19376 bytes in ROM
            2057 bytes in RAM
avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec
avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex
    writing TOS image
[EMAIL PROTECTED]:/opt/tinyos-2.x-contrib/stanford-sing/apps/RssiSample$ make 
micaz sim
mkdir -p build/micaz
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling NoiseAppC 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 -Ibuild/micaz 
-DIDENT_PROGRAM_NAME=\"NoiseAppC\" -DIDENT_USER_ID=\"test\" 
-DIDENT_HOSTNAME=\"test-desktop\" -DIDENT_USER_HASH=0xb35df890L 
-DIDENT_UNIX_TIME=0x4687ea18L -DIDENT_UID_HASH=0x05e1c028L -Wno-nesc-data-race 
NoiseAppC.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/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 component `NoiseAppC':
NoiseAppC.nc:49: failed to preprocess 
/opt/tinyos-2.x/tos/platforms/mica/Alarm32khz32C.nc
NoiseAppC.nc:49: component `Alarm32khz32C' is not generic
In file included from /opt/tinyos-2.x/tos/chips/cc2420/CC2420Register.nc:37,
                 from CC2420RssiC.nc:8,
                 from NoiseAppC.nc:50:
In C file:
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:75: syntax error before `nx_bool'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:75: warning: no semicolon at end of 
struct or union
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:76: syntax error before `ack'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:77: `time' redeclared as different 
kind of symbol
/usr/include/time.h:187: previous declaration of `time'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:86: syntax error before `}'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:86: warning: type defaults to `int' 
in declaration of `cc2420_metadata_t'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420.h:86: warning: data definition has no 
type or storage class
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:58,
                 from CC2420RssiC.nc:17,
                 from NoiseAppC.nc:50:
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:40: 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:58,
                 from CC2420RssiC.nc:17,
                 from NoiseAppC.nc:50:
In component `SimCC2420C':
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimCC2420C.nc:39: syntax 
error before `as'
In file included from 
/opt/tinyos-2.x/tos/platforms/micaz/chips/cc2420/sim/SimCC2420C.nc:49,
                 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:58,
                 from CC2420RssiC.nc:17,
                 from NoiseAppC.nc:50:
In interface `GpioCapture':
/opt/tinyos-2.x/tos/interfaces/GpioCapture.nc:50: warning: declaration of 
`time' shadows global declaration
/usr/include/time.h:187: warning: location of shadowed declaration
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:58,
                 from CC2420RssiC.nc:17,
                 from NoiseAppC.nc:50:
In component `SimCC2420C':
/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 `}'
SimCC2420C: `Init.init' not implemented
In component `SimAtm128SpiDeviceC':
/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 `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/interfaces/BlockRead.nc:40:
/opt/tinyos-2.x/tos/types/Storage.h:50:26: error: Storage_chip.h: No such file 
or directory
In file included from NoiseAppC.nc:51:
In component `NoiseSampleP':
NoiseSampleP.nc:50: failed to preprocess 
/opt/tinyos-2.x/tos/interfaces/BlockRead.nc
In file included from /opt/tinyos-2.x/tos/interfaces/BlockWrite.nc:40:
/opt/tinyos-2.x/tos/types/Storage.h:50:26: error: Storage_chip.h: No such file 
or directory
NoiseSampleP.nc:51: failed to preprocess 
/opt/tinyos-2.x/tos/interfaces/BlockWrite.nc
NoiseSampleP.nc: In function `DataWrite.runTask':
NoiseSampleP.nc:136: interface has no command or event named `write'
NoiseSampleP.nc: In function `DataRead.runTask':
NoiseSampleP.nc:148: interface has no command or event named `read'
NoiseSampleP.nc: In function `SerialControl.startDone':
NoiseSampleP.nc:235: interface has no command or event named `erase'
NoiseSampleP.nc: At top level:
NoiseSampleP.nc:293: syntax error before `addr'
NoiseSampleP.nc:295: `writeDone' is not in interface `BlockWrite'
NoiseSampleP.nc: In function `BlockWrite.writeDone':
NoiseSampleP.nc:296: `err' undeclared (first use in this function)
NoiseSampleP.nc:296: (Each undeclared identifier is reported only once
NoiseSampleP.nc:296: for each function it appears in.)
NoiseSampleP.nc:304: interface has no command or event named `sync'
NoiseSampleP.nc: At top level:
NoiseSampleP.nc:313: `eraseDone' is not in interface `BlockWrite'
NoiseSampleP.nc:332: `syncDone' is not in interface `BlockWrite'
NoiseSampleP.nc:344: syntax error before `addr'
NoiseSampleP.nc:346: `readDone' is not in interface `BlockRead'
NoiseSampleP.nc: In function `BlockRead.readDone':
NoiseSampleP.nc:347: `err' undeclared (first use in this function)
NoiseSampleP.nc: At top level:
NoiseSampleP.nc:359: syntax error before `addr'
NoiseSampleP.nc:361: `computeCrcDone' is not in interface `BlockRead'
NoiseSampleP.nc: In function `BlockRead.computeCrcDone':
NoiseSampleP.nc:362: `err' undeclared (first use in this function)
In component `NoiseAppC':
NoiseAppC.nc: At top level:
NoiseAppC.nc:55: component BlockStorageC not found
NoiseAppC.nc:55: component `BlockStorageC' is not generic
NoiseAppC.nc:60: no match
NoiseAppC.nc:68: no match
NoiseAppC.nc:69: no match
make: *** [sim-exe] Error 1
[EMAIL PROTECTED]:/opt/tinyos-2.x-contrib/stanford-sing/apps/RssiSample$ 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to