Are you using the avr-gcc that comes with 2.1 or are you using the one that comes with Ubuntu Jaunty?

John


On Tue, 16 Jun 2009, Quatre Horrace wrote:

Hi all. I am try to get a TinyOS-2.1.0 environment installed on a Linux Mint 
machine. Linux Mint is a derivative of Ubuntu 9.04 Jaunty Jackalope.

To install the toolchain, I followed the instructions from the following site:
http://nmlaxaman.blogspot.com/2009/01/installing-tinyos-2x-in-ubuntu-intrepid.html
These instructions are essentially the same as the ones recommended from the 
tinyos install wiki:
http://docs.tinyos.net/index.php/Installing_TinyOS_2.1

The install finishes without any problems. I then go to compile the Blink 
application for my target platform, micaz. Following is the output I get:

make micaz
mkdir -p build/micaz
    compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe  -Os -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c 
-board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"abc\" 
-DIDENT_HOSTNAME=\"abc-deskt\" -DIDENT_USERHASH=0xc60ca8bfL -DIDENT_TIMESTAMP=0x4a37f0faL 
-DIDENT_UIDHASH=0x378c0e71L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' 
-fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc 
-lm
/opt/tinyos-2.1.0/tos/chips/atm128/timer/HplAtm128Timer0AsyncP.nc:178: internal 
compiler error: in start_function, at c-decl.c:6177
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [exe0] Error 1


I am not sure what the source of the problem is. Looking around, it seems that 
someone had a similar problem in March:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2009-March/039066.html
They solved the problem by uninstalling and reinstalling tinyos. I have tried 
this several times without success.

Does anyone know how to fix this issue?


My gcc version is 4.3.3, java is 1.6.0_13, and following is the output from 
tos-check-env:

Path:
    /usr/local/sbin
    /usr/local/bin
    /usr/sbin
    /usr/bin
    /sbin
    /bin
    /usr/games
    /opt/omnetpp/bin

Classpath:
    /opt/tinyos-2.1.0/support/sdk/java/tinyos.jar
    .



rpms:


nesc:
    /usr/bin/nescc
    Version: nescc: 1.3.0


perl:
    /usr/bin/perl
    Version: v5.10.0 built for i486-linux-gnu-thread-multi

flex:
    /usr/bin/flex

bison:
    /usr/bin/bison

java:
    /usr/bin/java

--> WARNING: The JAVA version found first by tos-check-env may not be version 
1.4 or version 1.5one of which is required by TOS. Please ensure that the located 
Java version is 1.4 or 1.5

graphviz:
    /usr/bin/dot
    dot - Graphviz version 2.20.2 (Mon Mar 30 10:09:11 UTC 2009)

--> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10. 
Please update your graphviz version if you'd like to use the nescdoc documentation 
generator.


tos-check-env completed with errors:

--> WARNING: The JAVA version found first by tos-check-env may not be version 
1.4 or version 1.5one of which is required by TOS. Please ensure that the located 
Java version is 1.4 or 1.5
--> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10. 
Please update your graphviz version if you'd like to use the nescdoc documentation 
generator.



Thanks!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to