Hi,

I am having problem in compiling application for
simulation. The application compiles when I compile
for mote but fails when I try to compile for
simulation.

I.e. >make micaz  works fine
But  >make micaz sim    donot work.

I am able to compile and run simulation for the other
applications like Oscilloscope,RadioCountToLeds etc.
But my application does not compile for simulation. I
am trying to compile the EasyCollection application
described in TinyOS tutorial. 

Are ther any specific guidelines for coding the
application to be able to compiled for simulation?

Attached below is a snippet of the errors produced by
make micaz sim for easycollection application:

-Regards




$ make micaz sim
mkdir -p build/micaz
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling EasyCollectionAppC to object file sim.o
ncc -c -DUSE_DL_IMPORT -fpic  -o build/micaz/sim.o -g
-O0 -tossim -fnesc-nido-to
snodes=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 -I/opt/tinyos-2.x/tos/lib/net
-I/opt/tinyos-2.x/tos/lib/net/le -I/o
pt/tinyos-2.x/tos/lib/net/ctp
-DIDENT_PROGRAM_NAME=\"EasyCollectionA\" -DIDENT_U
SER_ID=\"ravi\" -DIDENT_HOSTNAME=\"ravi\"
-DIDENT_USER_HASH=0x7cf8
5e9cL -DIDENT_UNIX_TIME=0x46ce8773L
-DIDENT_UID_HASH=0x2635a0aeL -Wno-nesc-data-
race EasyCollectionAppC.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 EasyCollectionC.nc:11,
                 from EasyCollectionAppC.nc:5:
/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 st
ruct 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 kin
d of symbol
/usr/include/time.h:49: 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 ty
pe or storage class
In file included from EasyCollectionAppC.nc:25:
In component `CC2420ActiveMessageC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:48:
interface CC2420Pac
ket not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:50:
interface RadioBack
off not found
In file included from
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:5
7,
                 from EasyCollectionAppC.nc:25:
In component `CC2420ActiveMessageP':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:49:
interface CC2420Pac
ketBody not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:50:
interface CC2420Con
fig not found
In file included from
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:5
7,
                 from EasyCollectionAppC.nc:25:
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMSend.se
nd':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:64:
interface has no co
mmand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:67:
interface has no co
mmand or event named `getPanAddr'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMPacket.
destination':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:108:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMPacket.
source':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:113:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMPacket.
setDestination':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:118:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMPacket.
setSource':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:123:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMPacket.
type':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:133:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMPacket.
setType':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:138:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMPacket.
group':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:143:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMPacket.
setGroup':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:148:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `AMPacket.
localGroup':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:152:
interface has no c
ommand or event named `getPanAddr'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `Packet.pa
yloadLength':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:161:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
In function `Packet.se
tPayloadLength':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:165:
interface has no c
ommand or event named `getHeader'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:
At top level:
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc:202:
`syncDone' is not
in interface `CC2420Config'
In file included from EasyCollectionAppC.nc:25:
In component `CC2420ActiveMessageC':
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:58:
component CC2420Csm
aC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:60:
component UniqueSen
dC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:61:
component UniqueRec
eiveC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:62:
component CC2420Tin
yosNetworkC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:63:
component CC2420Pac
ketC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:64:
component CC2420Con
trolC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:69:
component DummyLplC
 not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:75:
component PacketLin
kDummyC not found
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:79:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:85:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:86:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:87:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:88:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:92:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:93:
cannot find `SubCon
trol'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:96:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:97:
cannot find `SubSen
d'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:98:
cannot find `Send'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:99:
cannot find `Send'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:100:
cannot find `SubSe
nd'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:103:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:104:
cannot find `Recei
ve'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:105:
cannot find `Recei
ve'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:106:
cannot find `SubRe
ceive'
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:108:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:109:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:110:
no match
/opt/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageC.nc:111:
no match
In component `EasyCollectionAppC':
EasyCollectionAppC.nc:47: ambiguous match
make: *** [sim-exe] Error 1


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to