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

Razvan Musaloiu-E. razvanm at cs.jhu.edu
Wed Jul 5 07:04:33 PDT 2006


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
anything newer than 1.2.4 should do the same.

[1] http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-May/017020.html

--
Razvan ME

>
> On 7/4/06, Philip Levis <pal at cs.stanford.edu> wrote:
> >
> >
> > On Jul 4, 2006, at 3:12 PM, Avinash Sridharan wrote:
> >
> > > Hi All,
> > >  In order to compile the latest c serial forwarder in tinyos-2.x
> > > what is the version of nesc(mig) that is required. I believe I have
> > > nesc 1.2.2 and hence this might be causing a problem with the
> > > compilation ?
> > >
> >
> > Can you send the error you see as well as the result of 'ncc --version'?
> >
> > Phil
> >
>
>
>
> --
> Phd Dept. of Electrical Engineering
> University of Southern California
> http://www-scf.usc.edu/~asridhar <http://www-scf.usc.edu/%7Easridhar>
>



More information about the Tinyos-help mailing list