I am using Fedora Core 5 for my Operation system. And both gcc 4 and gcc32 have been installed. I have export "CC=gcc32", but still have the same problem.

On 6/27/06, Ben Kelley <[EMAIL PROTECTED]> wrote:

Are you using GCC4.x?  What operating system?

I can reproduce these errors when using the 4.0 series of toolchains.  I keep 3.2 and 4.0 installed, with 3.2 as my default.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ming
Sent: Tuesday, June 27, 2006 13:46
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Error on AM.h

 

Hi

I have an error when use "make pc" to compile the Blink application in tutorial. However I have no error on "make telosb". The error message as follows:

[EMAIL PROTECTED] Blink]# make pc
mkdir -p build/pc
    compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"root\" -DIDENT_HOSTNAME=\"DMH855\" -DIDENT_USER_HASH=0x992985abL -DIDENT_UNIX_TIME=0x44a22454L -DIDENT_UID_HASH=0x298cc163L Blink.nc -lm
In file included from /opt/tinyos-1.x/tos/platform/pc/packet_sim.h:55,
                 from /opt/tinyos-1.x/tos/platform/pc/nido.h:84,
                 from /opt/tinyos- 1.x/tos/platform/pc/hardware.h:43,
                 from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/types/AM.h:155: syntax error before `struct'
/opt/tinyos-1.x/tos/types/AM.h:156: syntax error before `struct'
/opt/tinyos-1.x/tos/types/AM.h:158: syntax error before `struct'
/opt/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/opt/tinyos-1.x/tos/types/AM.h:186: syntax error before `TOS_Msg'
In file included from /opt/tinyos- 1.x/tos/platform/pc/hardware.h:116,
                 from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of `length' shadows global declaration
/opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of `length' shadows global declaration
/opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration
make: *** [exe0] Error 1

Cound anyone tell me what is going wrong? Thank you in advance.


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

Reply via email to