My guess is that you still have an old version of the nesc compiler and tinyos tools. I suggest that you uninstall everything that is tinyos related and install the latest version from scratch.
Janos On Fri, Apr 20, 2012 at 9:11 AM, Rajarshi Middya <[email protected]> wrote: > Hello Everyone, > > I had recently installed tinyos 2.0.2 in RHEL6 and then upgraded to 2.1.1 > following the method in the website. I did the upgrade for the iris support. > However, when I try to make iris in the RadioCountLeds application the > following error appears. > > > > > In file included from > /opt/tinyos-2.x/tos/chips/atm1281/timer/HplAtm1281Timer2AsyncC.nc:89, > from > /opt/tinyos-2.x/tos/chips/atm1281/timer/Atm128AlarmAsyncC.nc:68, > from > /opt/tinyos-2.x/tos/platforms/mica/AlarmCounterMilliP.nc:33, > from > /opt/tinyos-2.x/tos/platforms/mica/HilTimerMilliC.nc:44, > from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41, > from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40, > from > /opt/tinyos-2.x/tos/chips/rf2xx/layers/PacketLinkLayerC.nc:88, > from > /opt/tinyos-2.x/tos/chips/rf2xx/rf230/RF230RadioC.nc:190, > from > /opt/tinyos-2.x/tos/chips/rf2xx/rf230/RF230ActiveMessageC.nc:75, > from > /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:65, > from /opt/tinyos-2.x/tos/system/AMQueueP.nc:43, > from /opt/tinyos-2.x/tos/system/AMSenderC.nc:50, > from RadioCountToLedsAppC.nc:48: > In component `HplAtm1281Timer2AsyncP': > /opt/tinyos-2.x/tos/chips/atm1281/timer/HplAtm1281Timer2AsyncP.nc:78: > unknown attribute `safe' > /opt/tinyos-2.x/tos/chips/atm1281/timer/HplAtm1281Timer2AsyncP.nc:78: empty > scalar initializer > /opt/tinyos-2.x/tos/chips/atm1281/timer/HplAtm1281Timer2AsyncP.nc:78: (near > initialization for `@safe') > In file included from > /opt/tinyos-2.x/tos/chips/atm1281/timer/HplAtm128Timer1C.nc:87, > from > /opt/tinyos-2.x/tos/platforms/iris/chips/rf230/HplRF230C.nc:71, > from > /opt/tinyos-2.x/tos/chips/rf2xx/rf230/RF230DriverLayerC.nc:65, > from > /opt/tinyos-2.x/tos/chips/rf2xx/rf230/RF230RadioC.nc:280, > from > /opt/tinyos-2.x/tos/chips/rf2xx/rf230/RF230ActiveMessageC.nc:75, > from > /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:65, > from /opt/tinyos-2.x/tos/system/AMQueueP.nc:43, > from /opt/tinyos-2.x/tos/system/AMSenderC.nc:50, > from RadioCountToLedsAppC.nc:48: > In component `HplAtm1281Timer1P': > /opt/tinyos-2.x/tos/chips/atm1281/timer/HplAtm1281Timer1P.nc:75: unknown > attribute `safe' > /opt/tinyos-2.x/tos/chips/atm1281/timer/HplAtm1281Timer1P.nc:75: empty > scalar initializer > /opt/tinyos-2.x/tos/chips/atm1281/timer/HplAtm1281Timer1P.nc:75: (near > initialization for `@safe') > In component `HplRF230C': > /opt/tinyos-2.x/tos/platforms/iris/chips/rf230/HplRF230C.nc:64: no match > In component `RF230RadioC': > /opt/tinyos-2.x/tos/chips/rf2xx/rf230/RF230RadioC.nc:118: constant > expression expected > make: *** [exe0] Error 1 > > > But when the compile it for TOSSIM, it compiles fine (though with some > warnings) and gives "successfully built TOSSIM library" . It is worth > mentioning here that when I compile for mica2 or micaz or anythign else. the > compilation is successful and the out is "writing TOS image". I do not have > a clue as to what went wrong with iris. > > Any help will be highy appreciated. > > Thanking You, > Yours Sincerely, > Bubun > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
