Follow the instructions on this PDF; I found this on the web earlier when I had this problem. but following the instructions without regard to Kolab on the page should have it working.

I never exported CC differently; and it works fine for me.

 

http://www.auburn.edu/~kellebc/TinyOS-GCCWorkaround.pdf

 

Once I have 32 and 40 installed, I copy each item (g++,gcc,gcov) to its respective g++ (gcc32,g++40, etc.)

I also stash two copies of libc.so with the appropriate changes from that page; so if I have to switch, it’s as simple as /etc/install-gccXX where XX is 32 or 40.

 

#!/bin/sh

#install_gcc40

pushd .

cd /usr/bin

ln -fs gcov40 gcov

ln -fs g++40 g++

ln -fs gcc40 gcc

ln -fs /etc/libc40.so /usr/lib/libc.so

cd `popd`

 

 

and likewise for 32. 

 

 


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

 

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