[Tinyos-help] Compiling error - no such file or directory

Morten Mjelde mortenm at ii.uib.no
Thu Aug 2 20:41:43 PDT 2007


Hi

I've just installed tiny-OS 2 on my Vista system, and after having 
fought Vista on several issues, it looked like I got everything 
installed correctly. But when I try to compile Blink, I get several 
errors. Most of the errors seem to be related to files that the compiler 
can not locate, but I have checked that they are indeed there. But if I 
for example manually edit the file 
/tinyos-2.x/tos/platforms/micaz/hardware.h, adding the complete path to 
the file atm128hardware.h, the error disappears (and new ones show up).

This leads me to believe that there may be an environmental variable 
that is incorrect or missing, but as far as I can tell, based on the 
installation instructions, everything is as it should be. I can add that 
I also experience this error when installing on an XP system.

I hope someone is able to help me resolve this. Thanks in advance.

Morten

Here is the result from compiling with micaz:
> $ make micaz
> mkdir -p build/micaz
>     compiling BlinkAppC to a micaz binary
> ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow 
> -Wnesc-all
> -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb 
> -DIDENT_PROGRAM_NAME=
> \"BlinkAppC\" -DIDENT_USER_ID=\"Mjelde\" 
> -DIDENT_HOSTNAME=\"Morten-PC\" -DIDENT_
> USER_HASH=0x90a58a4bL -DIDENT_UNIX_TIME=0x46b29db3L 
> -DIDENT_UID_HASH=0xa03aced3L
>  -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' 
> -fnesc-dump='reference
> d(interfacedefs, components)' 
> -fnesc-dumpfile=build/micaz/wiring-check.xml Blink
> AppC.nc -lm
> In file included from C:/cygwin/opt/tinyos-2.x/tos/system/MainC.nc:43:
> C:/cygwin/opt/tinyos-2.x/tos/platforms/micaz/hardware.h:50:28: 
> atm128hardware.h:
>  No such file or directory
> C:/cygwin/opt/tinyos-2.x/tos/platforms/micaz/hardware.h:51:23: 
> Atm128Adc.h: No s
> uch file or directory
> C:/cygwin/opt/tinyos-2.x/tos/platforms/micaz/hardware.h:52:23: 
> MicaTimer.h: No s
> uch file or directory
> In component `BlinkAppC':
> BlinkAppC.nc:45: failed to preprocess 
> C:/cygwin/opt/tinyos-2.x/tos/system/MainC.
> nc
> BlinkC.nc:37:19: Timer.h: No such file or directory
> BlinkAppC.nc:45: failed to preprocess BlinkC.nc
> In file included from BlinkAppC.nc:45:
> In component `LedsC':
> C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:38: component 
> PlatformLedsC not fou
> nd
> C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:42: cannot find `Init'
> C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:43: cannot find `Led0'
> C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:44: cannot find `Led1'
> C:/cygwin/opt/tinyos-2.x/tos/system/LedsC.nc:45: cannot find `Led2'
> C:/cygwin/opt/tinyos-2.x/tos/system/TimerMilliC.nc:34:19: Timer.h: No 
> such file
> or directory
> In component `BlinkAppC':
> BlinkAppC.nc:46: failed to preprocess 
> C:/cygwin/opt/tinyos-2.x/tos/system/TimerM
> illiC.nc
> BlinkAppC.nc:46: component `TimerMilliC' is not generic
> BlinkAppC.nc:47: component `TimerMilliC' is not generic
> BlinkAppC.nc:48: component `TimerMilliC' is not generic
> BlinkAppC.nc:51: cannot find `Boot'
> BlinkAppC.nc:53: cannot find `Timer0'
> BlinkAppC.nc:54: cannot find `Timer1'
> BlinkAppC.nc:55: cannot find `Timer2'
> BlinkAppC.nc:56: cannot find `Leds'
> make: *** [exe0] Error 1



More information about the Tinyos-help mailing list