Hello,

I am trying to compile the example application Blink in apps directory, but I meet following errors:

"../../tos/lib/tossim/platform_message.h:48:20: error: Serial.h: No such file or directory"
(full error traces are in the attachment)

In fact I found the file "Serial.h" is in the directory "tos/lib/serial/" which is also in the include path of the nesc compile command.

The target for the make command is "micaz sim", the version of the nesc is 1.3.4 and the version of tinyos is 2.1.2.
(BTW. target "telosb" can be correctly compiled)

Does anybody know how to solve this problem?

Thanks.

Best Regards,
Xueguang
../../support/make/Makerules:56:  Old TinyOS environment variables detected.

    This version of the TinyOS make system has deprecated the TOSDIR, TOSROOT,
    and MAKERULES environment variables. Generally, you shouldn't need
    environment variables with this version of the TinyOS make system, and if
    you are not using any older versions of TinyOS on your system you should
    delete these environment variables. If you wish to leave these variables
    but hide this warning, set the TINYOS_NO_DEPRECATION_WARNING environment
    variable. If you are looking to compile against a different TinyOS tree,
    configure the makefiles used when compiling, or setup an external TinyOS
    tree with additional source files, please visit
    https://github.com/tinyos/tinyos-main/blob/master/support/make/README.md
    for more information about the TinyOS make system.

[INFO] placing object files in simbuild/micaz
[INFO] writing XML schema to app.xml
[INFO] compiling BlinkAppC to object file sim.o
nescc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -gcc=gcc -Wnesc-all -fnesc-include=tos -fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask -fnesc-cfile=simbuild/micaz/app.c -fnesc-separator=__ -DTOSSIM -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -I../../tos/lib/tossim ../../tos/platforms/mica ../../tos/platforms/micaz/chips/cc2420 ../../tos/chips/cc2420 ../../tos/chips/cc2420/alarm ../../tos/chips/cc2420/control ../../tos/chips/cc2420/csma ../../tos/chips/cc2420/interfaces ../../tos/chips/cc2420/link ../../tos/chips/cc2420/lowpan ../../tos/chips/cc2420/lpl ../../tos/chips/cc2420/packet ../../tos/chips/cc2420/receive ../../tos/chips/cc2420/spi ../../tos/chips/cc2420/transmit ../../tos/chips/cc2420/unique ../../tos/platforms/mica2/chips/at45db ../../tos/platforms/mica/chips/at45db ../../tos/chips/at45db ../../tos/chips/atm128 ../../tos/chips/atm128/adc ../../tos/chips/atm128/pins ../../tos/chips/atm128/spi ../../tos/chips/atm128/timer ../../tos/lib/power ../../tos/lib/timer ../../tos/lib/serial -fnesc-no-debug -DPLATFORM_MICAZ -Wall -Wshadow --param max-inline-insns-single=100000 -Wno-unused-but-set-variable -Wno-enum-compare -I../../tos/system -I../../tos/types -I../../tos/interfaces -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"xueguang\" -DIDENT_HOSTNAME=\"xueguang-ThinkP\" -DIDENT_USERHASH=0x16df3b85L -DIDENT_TIMESTAMP=0x5593e964L -DIDENT_UIDHASH=0xc19342c1L -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
In file included from ../../tos/types/message.h:4,
                 from ../../tos/lib/tossim/sim_packet.c:44,
                 from ../../tos/lib/tossim/tos.h:106:
../../tos/lib/tossim/platform_message.h:48:20: error: Serial.h: No such file or directory
In file included from ../../tos/types/message.h:4,
                 from ../../tos/lib/tossim/sim_packet.c:44,
                 from ../../tos/lib/tossim/tos.h:106:
../../tos/lib/tossim/platform_message.h:52: syntax error before `serial_header_t'
../../tos/lib/tossim/platform_message.h:52: warning: no semicolon at end of struct or union
../../tos/lib/tossim/platform_message.h:53: warning: type defaults to `int' in declaration of `message_header_t'
../../tos/lib/tossim/platform_message.h:53: warning: data definition has no type or storage class
In file included from ../../tos/lib/tossim/MainC.nc:45:
../../tos/lib/tossim/hardware.h:1:31: error: platform_hardware.h: No such file or directory
../../tos/lib/tossim/SimMoteP.nc:44:20: error: CC2420.h: No such file or directory
In file included from ../../tos/lib/tossim/MainC.nc:57,
                 from BlinkAppC.nc:56:
In component `SimMoteP':
../../tos/lib/tossim/SimMoteP.nc:56: `CC2420_DEF_CHANNEL' undeclared here (not in a function)
../../tos/lib/tossim/SimMoteP.nc: In function `SimMote.getRadioChannel':
../../tos/lib/tossim/SimMoteP.nc:77: `CC2420_DEF_CHANNEL' undeclared (first use in this function)
../../tos/lib/tossim/SimMoteP.nc:77: (Each undeclared identifier is reported only once
../../tos/lib/tossim/SimMoteP.nc:77: for each function it appears in.)
BlinkC.nc:48:19: error: Timer.h: No such file or directory
In file included from BlinkAppC.nc:56:
In component `BlinkC':
BlinkC.nc: At top level:
BlinkC.nc:52: interface Timer not found
BlinkC.nc:52: syntax error before `TMilli'
BlinkC.nc:53: syntax error before `TMilli'
BlinkC.nc:54: syntax error before `TMilli'
In file included from BlinkAppC.nc:56:
BlinkC.nc: In function `Boot.booted':
BlinkC.nc:62: `Timer0' undeclared (first use in this function)
BlinkC.nc:63: `Timer1' undeclared (first use in this function)
BlinkC.nc:64: `Timer2' undeclared (first use in this function)
BlinkC.nc: At top level:
BlinkC.nc:68: unknown interface `Timer0'
BlinkC.nc:74: unknown interface `Timer1'
BlinkC.nc:80: unknown interface `Timer2'
In file included from BlinkAppC.nc:56:
In component `LedsC':
../../tos/system/LedsC.nc:49: component PlatformLedsC not found
../../tos/system/LedsC.nc:53: cannot find `Init'
../../tos/system/LedsC.nc:54: cannot find `Led0'
../../tos/system/LedsC.nc:55: cannot find `Led1'
../../tos/system/LedsC.nc:56: cannot find `Led2'
../../tos/system/TimerMilliC.nc:42:19: error: Timer.h: No such file or directory
In file included from BlinkAppC.nc:57:
In component `TimerMilliC':
../../tos/system/TimerMilliC.nc:45: syntax error before `TMilli'
../../tos/system/TimerMilliP.nc:46:19: error: Timer.h: No such file or directory
In file included from ../../tos/system/TimerMilliC.nc:48,
                 from BlinkAppC.nc:57:
In component `TimerMilliP':
../../tos/system/TimerMilliP.nc:49: syntax error before `TMilli'
../../tos/system/TimerMilliP.nc:52: component HilTimerMilliC not found
../../tos/system/TimerMilliP.nc:53: no match
../../tos/system/TimerMilliP.nc:54: cannot find `TimerMilli'
In component `TimerMilliC':
../../tos/system/TimerMilliC.nc:52: `UQ_TIMER_MILLI' undeclared here (not in a function)
../../tos/system/TimerMilliC.nc:52: argument 1 to magic function `unique' is not constant
../../tos/system/TimerMilliC.nc:52: cannot find `Timer'
In component `BlinkAppC':
BlinkAppC.nc:64: cannot find `Timer0'
BlinkAppC.nc:65: cannot find `Timer1'
BlinkAppC.nc:66: cannot find `Timer2'
make: *** [sim-exe] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to