Hi!

I'm still trying to fix the problem and what I found so far is that
"-c-prefix" is not present in the nesc version that I'm using (1.2.4). I
checkout the latest CVS version of nesc which does contain the code to
deal with new argument but I'm stuck at the first step of building:

[EMAIL PROTECTED]:~/local/src/nesc$ ./Bootstrap
+ aclocal
+ autoconf
+ '[' -d config-aux ']'
+ mkdir config-aux
+ automake -a -c
automake: configure.in: installing `config-aux/install-sh'
automake: configure.in: installing `config-aux/mkinstalldirs'
automake: configure.in: installing `config-aux/missing'
automake: configure.in: installing `config-aux/config.guess'
automake: configure.in: installing `config-aux/config.sub'
tools/Makefile.am:43: invalid variable `nodist_ncclib_DATA'
+ rm -f config.cache src/config.cache
[EMAIL PROTECTED]:~/local/src/nesc$

Does anyone (David Gay perhaps :-)) know what is the problem?

--
Razvan ME


On Wed, 24 May 2006, Razvan Musaloiu-E. wrote:

> Hi!
>
> On Tue, 23 May 2006, Philip Levis wrote:
>
> > On May 23, 2006, at 12:11 PM, Razvan Musaloiu-E. wrote:
> >
> > > Hi!
> > >
> > > I'm trying to compile the C SDK for TinyOS 2 and the make ends with this
> > > error:
> > >
> > >   $ make
> > >   mig -o serialpacket.h -c-prefix=spacket c 
> > > /home/tinyos2/local/src/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
> > >
> > > Does anyone know what I did wrong? :-)
> > > I'm using the latest version of tinyos-2_0_devel-BRANCH.
> >
> > The C sdk also includes support in mig for generating C packets. But
> > you need to install the updated version of mig to be able to do this.
> > Go into
> >
> > tinyos-2.x/tools/tinyos/ncc/
> >
> > and
> >
> > $ make
> > $ make install
>
> I did that and I still receive the same error:
>
> [EMAIL PROTECTED]:~/local/src/tinyos-2.x/tools/tinyos/ncc$ make
> Making all in nesdoc-py
> make[1]: Entering directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc/nesdoc-py'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc/nesdoc-py'
> make[1]: Entering directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc'
> make[1]: Nothing to be done for `all-am'.
> make[1]: Leaving directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc'
> [EMAIL PROTECTED]:~/local/src/tinyos-2.x/tools/tinyos/ncc$ make install
> Making install in nesdoc-py
> make[1]: Entering directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc/nesdoc-py'
> make[2]: Entering directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc/nesdoc-py'
> make[2]: Nothing to be done for `install-exec-am'.
> /bin/sh ../../../config-aux/mkinstalldirs 
> /home/tinyos2/local/lib/tinyos/nesdoc
>  /usr/bin/install -c -m 644 ./__init__.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/__init__.py
>  /usr/bin/install -c -m 644 ./archive.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/archive.py
>  /usr/bin/install -c -m 644 ./components.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/components.py
>  /usr/bin/install -c -m 644 ./generators.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/generators.py
>  /usr/bin/install -c -m 644 ./genhtml.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/genhtml.py
>  /usr/bin/install -c -m 644 ./graph.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/graph.py
>  /usr/bin/install -c -m 644 ./html.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/html.py
>  /usr/bin/install -c -m 644 ./index.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/index.py
>  /usr/bin/install -c -m 644 ./interfaces.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/interfaces.py
>  /usr/bin/install -c -m 644 ./utils.py 
> /home/tinyos2/local/lib/tinyos/nesdoc/utils.py
>  /usr/bin/install -c -m 644 ./nesdoc.css 
> /home/tinyos2/local/lib/tinyos/nesdoc/nesdoc.css
> make[2]: Leaving directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc/nesdoc-py'
> make[1]: Leaving directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc/nesdoc-py'
> make[1]: Entering directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc'
> make[2]: Entering directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc'
> /bin/sh ../../config-aux/mkinstalldirs /home/tinyos2/local/bin
>  /usr/bin/install -c mig /home/tinyos2/local/bin/mig
>  /usr/bin/install -c ncg /home/tinyos2/local/bin/ncg
>  /usr/bin/install -c ncc /home/tinyos2/local/bin/ncc
>  /usr/bin/install -c nesdoc /home/tinyos2/local/bin/nesdoc
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc'
> make[1]: Leaving directory 
> `/home/tinyos2/local/src/tinyos-2.x/tools/tinyos/ncc'
> [EMAIL PROTECTED]:~/local/src/tinyos-2.x/tools/tinyos/ncc$ cd 
> ../../../support/sdk/c/
> [EMAIL PROTECTED]:~/local/src/tinyos-2.x/support/sdk/c$ make
> mig -o serialpacket.h -c-prefix=spacket c 
> /home/tinyos2/local/src/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
> [EMAIL PROTECTED]:~/local/src/tinyos-2.x/support/sdk/c$ which mig
> /home/tinyos2/local/bin/mig
> [EMAIL PROTECTED]:~/local/src/tinyos-2.x/support/sdk/c$ which ncc
> /home/tinyos2/local/bin/ncc
>
> Any ideas? :-)
>
> One more detail: before the above command I already run ./Bootstrap ;
> ./configure --prefix=$HOME/local ; make ; make install in
> tinyos-2.x/tools.
>
> Thanks for help and I'm sorry I need to ask for more. :P
> Razvan ME
>
>

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to