[Tinyos-help] RE: Tinyos-help Digest, Vol 60, Issue 8

KURT PETERS peterskurt at msn.com
Tue Apr 1 05:47:49 PDT 2008


I think the newer avr libc is incompatible with tos 2.x.
  Use the one on the TOS web site instead.  Also, you'll need to make sure 
you disable future updates of the lib in YAST.
Kurt

----Original Message Follows----
From: "Eoin ORegan" <Eoin.ORegan at cit.ie>
To: <tinyos-help at millennium.berkeley.edu>
Subject: [Tinyos-help] Problem with compilation of Blink on fresh install 
ofTinyOS2 - "inttypes.h: No such file or directory"
Date: Tue, 1 Apr 2008 12:31:59 +0100

Hi,

I'm a newbie to TinyOS and I'm just trying to run the Blink application 
after just installing TinyOS 2 in Opensuse.

The problem I'm having is as follows -  when I try to do a 'make micaz' I 
get a compilation error...........

/usr/lib/ncc/nesc_nx.h:16:22: inttypes.h: No such file or directory
<commandline>: failed to preprocess /usr/lib/ncc/nesc_nx.h
/opt/tinyos-2.x/tos/system/tos.h:5:22: inttypes.h: No such file or directory
/opt/tinyos-2.x/tos/system/tos.h:13:20: string.h: No such file or directory
/opt/tinyos-2.x/tos/system/tos.h:14:20: stdlib.h: No such file or directory
/opt/tinyos-2.x/tos/system/tos.h:15:18: math.h: No such file or directory
/opt/tinyos-2.x/tos/system/tos.h:17:19: ctype.h: No such file or directory
<commandline>: failed to preprocess /opt/tinyos-2.x/tos/system/tos.h
In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:36:
In interface `Scheduler': 
.....................................................

I checked the mail archives and in June 2006 someone had the exact same 
problem (see the thread for [Tinyos-help] "inttypes.h: No such file or 
directory" when compiling Blink on tinyos-2.x 
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-June/thread.html#17416 
)

However, the issue for this user turned out to be that the avc-gcc was 
looking at the wrong avr-libc. It seems out the user had 2 avr-gcc's and 
deleted one and pointed to the other which resolved the issue.

Unfortunately, I don't think that this is the problem that I am having.

I have avr-gcc 3.4.3-1 and avr-libc 1.4.5-46 installed with no other avr-gcc 
present.

Using the Yast software control center utility on Opensuse it says the 
avrlibs has dependencies which means it requires avr-programmer, 
cross-avr-binutils and cross-avr-gcc. I have cross-avr-binutils and 
cross-avr-gcc but when I do a search for the avr-programmer package it 
doesn't have this present - I don't what effect this has on my problem if 
any at all.

Any help is definitely appreciated!

Thanks, Eoin.




More information about the Tinyos-help mailing list