yep.   your mig is doing very strange things.

What system are you running on?   Perhaps windows?

So I looked into what mig I've got and here is what I see...   (my mig works
fine, same output as your friend)

zot (159): which mig
/usr/bin/mig
zot (160): dpkg -S /usr/bin/mig
tinyos-tools: /usr/bin/mig
zot (161): dpkg -l tinyos-tools
ii  tinyos-tools                1.4.0-20100323              Tools for use
with tinyos. Includes, for example: uisp, motelist, pybs
zot (162):

I'm running Ubuntu 10.04 with the Stanford tinyos tools installed.

Here is the list of all the tinyos tools I've got installed.

ii  avr-binutils-tinyos         2.17-20080806               GNU binutils for
the avr platform
ii  avr-gcc-tinyos              4.1.2-20080806              gcc compiled for
the AVR platform with TinyOS patches
ii  avr-libc-tinyos             1.4.7-20080806              C library for
the AVR platform.
ii  avr-optional-tinyos         2.1-20090326                Dummy package to
pull in all optional avr-related packages for tinyos
ii  avr-tinyos                  2.1-20080806                Dummy package to
pull in all avr-related packages for tinyos
ii  avr-tinyos-base             2.1-20080806                Dummy package
required by all avr-tinyos tools.  Removing this package
ii  avrdude-tinyos              5.4-20080806                AVRDUDE is an
open source utility to download/upload/manipulate the RO
ii  deputy-tinyos               1.1-20080807                This is the
Deputy compiler used for Safe TinyOS applications.
ii  msp430-binutils-tinyos      2.17-20080806               MSP430TOOLS --
Binutils
ii  msp430-gcc-tinyos           3.2.3-20080806              MSP430TOOLS --
GNU CC
ii  msp430-libc-tinyos          20060801cvs-20080806        MSP430TOOLS --
Libc
ii  msp430-optional-tinyos      2.1-20090326                Dummy package to
pull in all optional msp430-related packages for tiny
ii  msp430-tinyos               2.1-20080806                Dummy package to
pull in all msp430-related packages for tinyos
ii  msp430-tinyos-base          2.1-20080806                Dummy package
required by all msp430-tinyos tools.  Removing this pack
ii  tinyos-2.1.1                2.1.1-20100401              An event-based
operating environment designed for use with
ii  tinyos-base                 2.1-20080806                Dummy package
required by all tinyos realated packages.  Removing this
ii  tinyos-required-avr         2.1-20090326                Dummy package to
pull in all required packages for tinyos
ii  tinyos-tools                1.4.0-20100323              Tools for use
with tinyos. Includes, for example: uisp, motelist, pybs
ii  tinyos-z1                   2.1.1-16                    This package
adds suport to the z1 plattform into an existing tinyos-2
zot (163):


On Fri, Mar 25, 2011 at 2:40 AM, Denilson Figueiredo de Sá <
[email protected]> wrote:

> Okay, sorry, I guess I didn't paste the complete output here. I did exactly
> the same commands as you described, but when pasting the output, I left off
> a few important lines.
>
> I'm attaching the complete output of "./bootstrap", "./configure" and
> "make".
>
> What I've discovered so far is that the generation of serialpacket.h (using
> mig) is broken. See the attached "serialpacket.h" to understand. (just for
> comparison, I've also attached that file generated at a friend's computer)
>
> So, somehow, the "mig" command seems broken for some reason. I just need
> help to understand and fix it!
>
>
>
> On Thu, 24 Mar 2011 23:08:56 -0300, Eric Decker <[email protected]> wrote:
>
>  I helps if you read the instructions....    ie.   Look at the README file
>> and follow the
>> instructions.   It says.
>>
>>  ./bootstrap
>>  ./configure --prefix=<somewhere>
>>  make
>>
>>
>> But if you look carefully at what you typed below, you typed "make
>> all-am".
>>  Not sure
>> why you did that.   This short circuits building constructed sources one
>> of
>> which is
>> serialpacket.c
>>
>> I don't understand from your output where your serialpacket.c is coming
>> from.  When I
>> try to duplicate what you are doing, I do see a mig run.
>>
>> So, please go read the README.  And try again.
>>
>>
>>
>> On Thu, Mar 24, 2011 at 1:15 PM, Denilson Figueiredo de Sá <
>> [email protected]> wrote:
>>
>>  Hello!
>>>
>>> I got TinyOS 2.1.0 tarball, but the same issue also happens when I try a
>>> checkout from tinyos-main SVN at Google Code.
>>>
>>>
>>> I go to "support/sdk/c/sf" directory, and then type "./bootstrap",
>>> followed by "./configure". It all goes fine. However, the following error
>>> shows up when I type "make":
>>>
>>> make  all-am
>>> make[1]: Entering directory
>>> `/tmp/software/tinyos/tinyos-main-svn/support/sdk/c/sf'
>>> gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT message.o -MD -MP -MF
>>> .deps/message.Tpo -c -o message.o message.c
>>> mv -f .deps/message.Tpo .deps/message.Po
>>> gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT serialpacket.o -MD -MP -MF
>>> .deps/serialpacket.Tpo -c -o serialpacket.o serialpacket.c
>>> In file included from serialpacket.c:8:
>>> serialpacket.h:22: error: expected ‘,’ or ‘}’ before ‘SERIAL_PACKET’
>>> serialpacket.h:190: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:197: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:204: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:218: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:225: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:232: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:239: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:246: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:253: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:260: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:267: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:274: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:281: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:288: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.h:295: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.c:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:66: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’
>>> before ‘serial_packet’
>>> serialpacket.c:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.c:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> serialpacket.c:115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>>> ‘__attribute__’ before ‘serial_packet’
>>> make[1]: *** [serialpacket.o] Error 1
>>> make[1]: Leaving directory
>>> `/tmp/software/tinyos/tinyos-main-svn/support/sdk/c/sf'
>>> make: *** [all] Error 2
>>>
>>>
>>>
>>> I have nescc version 1.3.2, tinyos-tools 1.3.0 and gcc version 4.4.5.
>>> Running on Gentoo Linux 64-bit.
>>>
>>> I already have the following environment variables:
>>> TOSROOT=/usr/src/tinyos-2.x
>>> TOSDIR=/usr/src/tinyos-2.x/tos
>>>
>>>
>>>
>>> Any suggestions?
>>>
>>>
>>> --
>>> Denilson Figueiredo de Sá
>>> Vialink
>>> Rio de Janeiro - Brasil
>>>
>>> /"\
>>> \ /  ASCII Ribbon Campaign
>>>   X    against HTML e-mail
>>> / \
>>> _______________________________________________
>>> Tinyos-help mailing list
>>> [email protected]
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>>
>>
>>
>
> --
> Denilson Figueiredo de Sá
> Vialink
> Rio de Janeiro - Brasil
>
> /"\
> \ /  ASCII Ribbon Campaign
>  X    against HTML e-mail
> / \




-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to