Hi all I found the problem. I needed to generate the libmote.a file within the tinyos-2.x/support/sdk/c/sf directory. However, I cannot fulfill the instalation: First, you have to type "./boostrap". Secondly, you have to type "./configure". Then, it outputs the following for me (which I think is ok): ----------------------------------------------------------------------------------------- $ ./configurechecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /usr/bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.exechecking for suffix of executables... .exechecking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for style of include used by make... GNUchecking dependency style of gcc... gcc3checking for ranlib... ranlibconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating autoconf.hconfig.status: autoconf.h is unchangedconfig.status: executing depfiles commands----------------------------------------------------------------------------------------- Finally, you have to type "make", but this step fails in my case. The output is the following (I add [...] in order to shorten the output): -----------------------------------------------------------------------------------------$ makemig -o serialpacket.h -c-prefix=spacket c /opt/tinyos-2.x/tos/lib/serial/Serial.h serial_packet -D_POSIX_C_SOURCE/usr/lib/ncc/deputy_nodeputy.h:4:20: error: stddef.h: No such file or directory/usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory/usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'/usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'/usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in a function)/usr/lib/ncc/nesc_nx.h:242: warning: data definition has no type or storage class[...]/usr/lib/ncc/nesc_nx.h:400: syntax error before `nxle_uint16_t'/usr/lib/ncc/nesc_nx.h:401: syntax error before `nxle_uint32_t'/usr/lib/ncc/nesc_nx.h:402: syntax error before `nxle_uint64_t'/opt/tinyos-2.x/tos/system/tos.h:8:20: error: unistd.h: No such file or directory[...] /opt/tinyos-2.x/tos/system/tos.h:26: syntax error before `nx_bool'/opt/tinyos-2.x/tos/system/tos.h:27: syntax error before `TOS_NODE_ID'In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:47:In interface `Scheduler':/opt/tinyos-2.x/tos/interfaces/Scheduler.nc:65: only commands and events can be defined in interfaces/opt/tinyos-2.x/tos/interfaces/Scheduler.nc:65: syntax error before `runNextTask'In file included from /opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:53, from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:48:In C file:/opt/tinyos-2.x/tos/types/TinyError.h:67: syntax error before `error_t'/opt/tinyos-2.x/tos/types/TinyError.h:69: syntax error before `ecombine'In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:48:In interface `TaskBasic':/opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:67: only commands and events can be defined in interfaces/opt/tinyos-2.x/tos/interfaces/TaskBasic.nc:67: syntax error before `postTask'In component `TinySchedulerC':/opt/tinyos-2.x/tos/system/TinySchedulerC.nc:48: syntax error before `uint8_t'In file included from /opt/tinyos-2.x/tos/system/SchedulerBasicP.nc:52, from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:51:In C file:/opt/tinyos-2.x/tos/platforms/null/hardware.h:7: syntax error before `__nesc_atomic_t'/opt/tinyos-2.x/tos/platforms/null/hardware.h:8: syntax error before `mcu_power_t'/opt/tinyos-2.x/tos/platforms/null/hardware.h:10: syntax error before `__nesc_atomic_start'/opt/tinyos-2.x/tos/platforms/null/hardware.h:14: syntax error before `x'In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:51:In component `SchedulerBasicP':/opt/tinyos-2.x/tos/system/SchedulerBasicP.nc:56: syntax error before `uint8_t'In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:51:/opt/tinyos-2.x/tos/system/SchedulerBasicP.nc:67: syntax error before `m_head'[...] /opt/tinyos-2.x/tos/system/SchedulerBasicP.nc:83: warning: data definition has no type or storage class/opt/tinyos-2.x/tos/system/SchedulerBasicP.nc:84: syntax error before `if'SchedulerBasicP: `TaskBasic.error_t' not implementedSchedulerBasicP: `Scheduler.init' not implementedSchedulerBasicP: `Scheduler.taskLoop' not implementedSchedulerBasicP: `Scheduler.bool' not implementedIn C file:<commandline>: Scheduler `TinySchedulerC' has no scheduling interface named `TaskBasic'In file included from /opt/tinyos-2.x/tos/lib/serial/Serial.h:81:/opt/tinyos-2.x/tos/types/AM.h:6: syntax error before `nx_am_id_t'[...] /opt/tinyos-2.x/tos/types/AM.h:12: syntax error before `am_addr_t'/opt/tinyos-2.x/tos/lib/serial/Serial.h:83: syntax error before `uart_id_t'[...] /opt/tinyos-2.x/tos/lib/serial/Serial.h:138: warning: data definition has no type or storage classfailed to parse message file /opt/tinyos-2.x/tos/lib/serial/Serial.hMakefile:697: recipe for target `serialpacket.h' failedmake: *** [serialpacket.h] Error 1-----------------------------------------------------------------------------------------
I've been looking for a solution, but I cannot find it. All the help possible would be appreciated. Thanks in advance David From: [email protected] To: [email protected] Date: Tue, 21 Feb 2012 09:10:13 +0000 Subject: [Tinyos-help] Problem with BaseStation15.4 Hi all I'm having problems when compiling the BaseStation15.4 application for Micaz devices: ----------------------------------------------------------------------------------------------------------$ make micazmkdir -p build/micazgcc -o seriallisten15-4 seriallisten15-4.o /opt/tinyos-2.x/tos/../support/sdk/c/sf/libmote.agcc: /opt/tinyos-2.x/tos/../support/sdk/c/sf/libmote.a: No such file or directoryMakefile:9: recipe for target `seriallisten15-4' failedmake: *** [seriallisten15-4] Error 1---------------------------------------------------------------------------------------------------------- Does anyone else have this problem? I appreciate all the help possible Thanks, David _______________________________________________ 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
