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