All those missing header files belong to the "basic system".
If you were doing an actual micaz compile they would be found in:
/usr/local/avr/include
For a simulator compile I would guess that they should come from:
/usr/include
First verify that those directories and files exist. If they do
then we'll have to figure out how NCC goes about finding them
to see why it can't.
MS
Derek Tarm wrote:
Hi, when I compile Blink using 'sudo make micaz sim' in TinyOS 2.x under
Ubuntu 7.04, I got the following problem. I've search the help archive,
but it doesn't help....
mkdir -p build/micaz
placing object files in build/micaz
writing XML schema to app.xml
compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\) -finline-limit=100000
-Wall -Wshadow -Wnesc-all -target=micaz
-fnesc-cfile=build/micaz/app.c -board=micasb
-DIDENT_PROGRAM_NAME=\"BlinkAppC\" -DIDENT_USER_ID=\"root\"
-DIDENT_HOSTNAME=\"derek-laptop\" -DIDENT_USER_HASH=0xfd6d4b72L
-DIDENT_UNIX_TIME=0x470f5a51L -DIDENT_UID_HASH=0xa210f576L
-Wno-nesc-data-race BlinkAppC.nc -fnesc-dump=components
-fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
-fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
/usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or
directory
<commandline>: failed to preprocess /usr/lib/ncc/nesc_nx.h
/opt/tinyos-2.x/tos/lib/tossim/tos.h:41:22: error: inttypes.h:
No such file or directory
/opt/tinyos-2.x/tos/lib/tossim/tos.h:49:20: error: string.h : No
such file or directory
/opt/tinyos-2.x/tos/lib/tossim/tos.h:50:20: error: stdlib.h: No
such file or directory
/opt/tinyos-2.x/tos/lib/tossim/tos.h:51:18: error: math.h: No
such file or directory
/opt/tinyos- 2.x/tos/lib/tossim/tos.h:53:19: error: ctype.h: No
such file or directory
/opt/tinyos-2.x/tos/lib/tossim/tos.h:54:19: error: stdio.h: No
such file or directory
In file included from /opt/tinyos-2.x/tos/lib/tossim/tos.h:88:
/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.c:39:22: error:
sys/time.h: No such file or directory
In file included from /opt/tinyos-2.x/tos/lib/tossim/sim_mac.c:38,
from /opt/tinyos-2.x/tos/lib/tossim/tos.h:89:
/opt/tinyos-2.x/tos/lib/tossim/sim_noise.c:37:18: error: time.h:
No such file or directory
<commandline>: failed to preprocess
/opt/tinyos-2.x/tos/lib/tossim/tos.h
In file included from
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:35:
In interface `Scheduler':
/opt/tinyos-2.x/tos/interfaces/Scheduler.nc:54: only commands
and events can be defined in interfaces
/opt/tinyos-2.x/tos/interfaces/Scheduler.nc:54: warning:
return-type defaults to `int'
/opt/tinyos-2.x/tos/interfaces/Scheduler.nc:54: syntax error
before `runNextTask'
In file included from
/opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:42,
from
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:36:
In C file:
/opt/tinyos-2.x/tos/types/TinyError.h:47: syntax error before
`error_t'
/opt/tinyos-2.x/tos/types/TinyError.h:49: syntax error before
`ecombine'
In file included from
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:36:
In interface `TaskBasic':
/opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:56: only commands
and events can be defined in interfaces
/opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:56: warning:
return-type defaults to `int'
/opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:56: syntax error
before `postTask'
In component `TinySchedulerC':
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:36: syntax
error before `uint8_t'
In file included from /opt/tinyos-
2.x/tos/lib/tossim/sim_event_queue.h:40,
from
/opt/tinyos-2.x/tos/lib/tossim/SimSchedulerBasicP.nc:37:
/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.h:37:19: error:
stdio.h: No such file or directory
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:39: failed to
preprocess /opt/tinyos-2.x/tos/lib/tossim/SimSchedulerBasicP.nc
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:40: no match
/opt/tinyos-2.x/tos/lib/tossim/TinySchedulerC.nc:41: no match
In C file:
<commandline>: Scheduler `TinySchedulerC' has no scheduling
interface named `TaskBasic'
In file included from
/opt/tinyos-2.x/tos/chips/atm128/sim/atm128hardware.h:43,
from /opt/tinyos-
2.x/tos/platforms/micaz/sim/platform_hardware.h:44,
from /opt/tinyos-2.x/tos/lib/tossim/hardware.h:1,
from /opt/tinyos-2.x/tos/lib/tossim/MainC.nc:37:
/opt/tinyos-2.x/tos/lib/tossim/sim_tossim.h:37:19: error:
stdio.h: No such file or directory
In component `BlinkAppC':
BlinkAppC.nc:45: failed to preprocess
/opt/tinyos-2.x/tos/lib/tossim/MainC.nc
In file included from BlinkC.nc:41,
from BlinkAppC.nc :45:
...
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help