Eva,

 

Based on the compiler output you sent, you don't have the most recent CVS tree:

 

> /opt/tinyos-2.x/tos/interfaces/Packet.nc:108: previous declaration of 
> `Packet.getPayload'

 

Packet.getPayload should be on line 115 in the most recent version. It used to 
be on line 108 last December - probably this is the version you have. 

 

Please check out the whole T2 tree, not just the IRIS related folders.

 

Janos

 

From: Philip Levis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 08, 2008 3:36 PM
To: Janos Sallai; Miklos Maroti
Subject: Fwd: [Tinyos-help] Error compiling Oscilloscope with IRIS mote

 

 


Begin forwarded message:





From: "Eva Maria Garcia" <[EMAIL PROTECTED]>

Date: April 8, 2008 11:21:59 AM PDT

To: <tinyos-help@millennium.berkeley.edu>

Subject: [Tinyos-help] Error compiling Oscilloscope with IRIS mote

 

Hi everyone,

 

I'm working with IRIS motes on TinyOS 2.0.2 with the latest CVS tree. When I 
try to compile the Oscilloscope application, I encountered a series of compile 
errors. The compile information is listed at the end of this email.

 

Any idea?

 

Regards,

Eva

 

 

 

Compiling OscilloscopeAppC to a iris binary

ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all -target=iris 
-fnesc-cfile=build/iris/app.c -board=micasb 
-DIDENT_PROGRAM_NAME=\"OscilloscopeApp\" -DIDENT_USER_ID=\"xubuntos\" 
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L 
-DIDENT_UNIX_TIME=0x47fbb64dL -DIDENT_UID_HASH=0x747002abL -fnesc-dump=wiring 
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, 
components)' -fnesc-dumpfile=build/iris/wiring-check.xml OscilloscopeAppC.nc -lm

In file included from /opt/tinyos-2.x/tos/chips/rf230/DefaultPacketC.nc:45,

                 from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:49,

                 from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:45,

                 from OscilloscopeAppC.nc:22:

In component `DefaultPacketP':

/opt/tinyos-2.x/tos/chips/rf230/DefaultPacketP.nc:92: conflicting types for 
`Packet.getPayload'

/opt/tinyos-2.x/tos/interfaces/Packet.nc:108: previous declaration of 
`Packet.getPayload'

In file included from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:68,

                 from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:45,

                 from OscilloscopeAppC.nc:22:

In component `ActiveMessageLayerC':

/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:81: conflicting types 
for `AMSend.getPayload'

/opt/tinyos-2.x/tos/interfaces/AMSend.nc:125: previous declaration of 
`AMSend.getPayload'

/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc: In function 
`AMSend.getPayload':

/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:82: too many arguments 
to function `SubSend.getPayload'

/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc: At top level:

/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41: 
`Snoop.payloadLength' not implemented

/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41: `Snoop.getPayload' 
not implemented

/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41: 
`Receive.payloadLength' not implemented

/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41: `Receive.getPayload' 
not implemented

In file included from /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerC.nc:44,

                 from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:69,

                 from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:45,

                 from OscilloscopeAppC.nc:22:

In component `MessageBufferLayerP':

/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:230: conflicting types 
for `Send.getPayload'

/opt/tinyos-2.x/tos/interfaces/Send.nc:114: previous declaration of 
`Send.getPayload'

/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc: In function 
`Send.getPayload':

/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:231: warning: passing 
argument 2 of `Packet.getPayload' makes pointer from integer without a cast

/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc: In function 
`deliverTask.runTask':

/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:283: warning: passing 
argument 2 of `Packet.getPayload' makes pointer from integer without a cast

/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc: At top level:

/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:48: 
`Receive.payloadLength' not implemented

/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:48: `Receive.getPayload' 
not implemented

In file included from /opt/tinyos-2.x/tos/chips/rf230/UniqueLayerC.nc:43,

                 from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:70,

                 from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:45,

                 from OscilloscopeAppC.nc:22:

In component `UniqueLayerP':

/opt/tinyos-2.x/tos/chips/rf230/UniqueLayerP.nc:80: conflicting types for 
`Send.getPayload'

/opt/tinyos-2.x/tos/interfaces/Send.nc:114: previous declaration of 
`Send.getPayload'

/opt/tinyos-2.x/tos/chips/rf230/UniqueLayerP.nc: In function `Send.getPayload':

/opt/tinyos-2.x/tos/chips/rf230/UniqueLayerP.nc:81: too many arguments to 
function `SubSend.getPayload'

make: *** [exe0] Error 1

 

 

 

 

 Departmento de 
 Sistemas Informáticos

Eva María García
Profesora Asociada
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

Teléfono: +34 967 599 200 (ext. 2495)
Dirección:
Escuela Politécnica Superior de Albacete
Campus Universitario
Avenida de España s/n 
02071 - Albacete (ESPAÑA)
Web: www.uclm.es <http://www.uclm.es/> 

 

 

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

 

<<image001.gif>>

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to