[Tinyos-help] c serial forwarder in tinyos-2.x

David Gay dgay42 at gmail.com
Wed Jul 5 10:41:32 PDT 2006


On 7/5/06, Razvan Musaloiu-E. <razvanm at cs.jhu.edu> wrote:
> Hi!
>
> On Tue, 4 Jul 2006, Avinash Sridharan wrote:
>
> > The ncc --version output is :
> > ncc: 1.2
> > nescc: 1.2.2
> > gcc: gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)
> > Copyright (C) 2005 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.  There is NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> >
> > Output of make:
> > mig -o serialpacket.h -c-prefix=spacket c
> > /home/asridhar/developement/sandbox/latest/tinyos-2.x//tos/lib/serial/Serial.h
> > serial_packet
> > gcc: unrecognized option '-c-prefix=spacket'
> > warning: Cannot determine AM type for serial_packet
> >          (Looking for definition of AM_SERIAL_PACKET)
> > Unknown tool c
> > make: *** [serialpacket.h] Error 2
>
> I encounter the same problem some time ago [1] and I was using 1.2.4 at
> that time. Switching to the latest CVS fixed the problem in my case. Using

http://www.tinyos.net/dist-2.0.0/tinyos/linux/nesc-1.2.7-1.i386.rpm
or
http://www.tinyos.net/dist-2.0.0/tinyos/windows/nesc-1.2.7-1.cygwin.i386.rpm

should fix your problem.

David Gay


More information about the Tinyos-help mailing list