[Tinyos-help] "inttypes.h: No such file or directory" when compiling Blink on tinyos-2.x

Liu Haibin liu.haibin at gmail.com
Thu Jun 22 01:07:27 PDT 2006


I found the answer at the tutorial lesson 1 under tinyos-2_0_devel-BRANCH.

Now I can compile telos but still cannot compile micaz. When I typed "make
micaz", it gave a bunch of errors.


/usr/lib/ncc/nesc_nx.h:4:22: inttypes.h: No such file or directory
<commandline>: failed to preprocess /usr/lib/ncc/nesc_nx.h
/home/liuhb/tinyos-2.x/tos/system/tos.h:5:22: inttypes.h: No such file or
directory
/home/liuhb/tinyos-2.x/tos/system/tos.h:13:20: string.h: No such file or
directory
/home/liuhb/tinyos-2.x/tos/system/tos.h:14:20: stdlib.h: No such file or
directory
/home/liuhb/tinyos-2.x/tos/system/tos.h:15:18: math.h: No such file or
directory
/home/liuhb/tinyos-2.x/tos/system/tos.h:17:19: ctype.h: No such file or
directory
<commandline>: failed to preprocess /home/liuhb/tinyos-2.x/tos/system/tos.h
In file included from /home/liuhb/tinyos-2.x
/tos/system/TinySchedulerC.nc:36:
In interface `Scheduler':
/home/liuhb/tinyos-2.x/tos/interfaces/Scheduler.nc:54: only commands and
events can be defined in interfaces
/home/liuhb/tinyos-2.x/tos/interfaces/Scheduler.nc:54: warning: return-type
defaults to `int'
/home/liuhb/tinyos-2.x/tos/interfaces/Scheduler.nc:54: syntax error before
`runNextTask'
In component `TinySchedulerC':
......


The first line says no inttypes.h is found. But I did install avr-libc and I
can find it at /usr/avr/include/inttypes.h



Regards,
Haibin



On 6/22/06, Liu Haibin <liu.haibin at gmail.com> wrote:
>
> Hi,
>
> I installed the tinyos-2_0_devel-BRANCH code on Linux and followed the
> instructions from "Upgrading from TinyOS 1.x to TinyOS 2.x". But I got an
> error when I compiled the Blink application.
>
> $ make micaz
> mkdir -p build/micaz
>     compiling BlinkAppC to a micaz binary
> ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow
> -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=micaz
> -fnesc-cfile=build/micaz/app.c -board=micasb  -fnesc-dump=wiring
> -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
> components)' -fnesc-dumpfile=build/micaz/wiring- check.xml BlinkAppC.nc-lm
> Unknown target micaz
> Known targets for TinyOS directory /home/liuhb/tinyos-2.x/tos
> and the specified include directories are:
> none.
> make: *** [exe0] Error 2
>
> I tried "make telsob" and I got the same error. I set the environment
> variables accordingly
>
> $ set | grep "TOSROOT\|TOSDIR\|CLASSPATH\|MAKERULES"
> CLASSPATH=/home/liuhb/tinyos-2.x/support/sdk/java/tinyos.jar:.
> MAKERULES=/home/liuhb/tinyos-2.x/support/make/Makerules
> TOSDIR=/home/liuhb/tinyos- 2.x/tos
> TOSROOT=/home/liuhb/tinyos-2.x
>
> Could someone give some idea what went wrong? Thanks.
>
>
> Regards,
> Haibin
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060622/4a2c4185/attachment.html


More information about the Tinyos-help mailing list