[Tinyos-devel] TCAST definition
John Regehr
regehr at cs.utah.edu
Sun Feb 17 12:08:10 PST 2008
Roman-
TCAST is a new macro used by Safe TinyOS, it means "trusted cast".
Please do a "make install" in $TOSROOT/tools. This will upgrade you to
the latest version of ncc, which knows how to deal with TCAST.
If you care, it is dealt with by including
$TOSDIR/lib/safe/include/annots_stage1.h
If you haven't built the TinyOS tools before, you'll want to run
./Bootstrap and ./configure (with an appropriate --prefix option) before
installing the tools. Please let me know if this fails to fix the problem
you are seeing.
John Regehr
On Sun, 17 Feb 2008, Romain Thouvenin wrote:
> Hello all,
>
> I am Romain, and just rejoined the list. You may remember me from a
> couple of months ago when I was working on the implementation of a
> routing protocol (DYMO) on TinyOS for my final study project.
> You may also know that after discussion with Omprakash, I am pleased
> to learn that my project could be useful for TinyOS and its community.
> I recently joined the net2 WG in order to include the project (called
> tymo) in the tinyos tree and maintain it.
>
> This brings me to my first compilation problem :-) Well, not the first
> one, as I first faced quite a lot of errors due to the recent
> interfaces changes in Receive, AMSend, Packet and Intercept... Anyway,
> a recent change in chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc
> introduced the TCAST macro, which can't be found by my compiler:
>
> /opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc:
> In function `IO.isOutput':
> /opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc:54:
> implicit declaration of function `TCAST'
> /opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc:54:
> syntax error before `volatile'
> /opt/tinyos-2.x/tos/chips/atm128/pins/HplAtm128GeneralIOSlowPinP.nc:54:
> syntax error before `)'
>
>
> Until now, I had TinyOS 2.0.1 on my laptop, and I just replaced the
> tree with the CVS one, so I guess I don't need to change any path, do
> I?
> I did not update the tools (I relied on apt to do it), could that be the reason?
> Or maybe you have another clue that could help me solve the problem.
> Thanks for your help, I am looking forward to working with you.
> Romain
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>
More information about the Tinyos-devel
mailing list