Hi there, It looks like you're missing the header files for your standard C library. Try installing the "dev" package for your libc (e.g. "apt-get install libc6-dev" if you're on Ubuntu).
Good luck /Johny On 21 February 2012 22:21, David Rodenas Herráiz <[email protected]>wrote: > 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): > > > ----------------------------------------------------------------------------------------- > $ ./configure > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /usr/bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for gcc... gcc > checking whether the C compiler works... yes > checking for C compiler default output file name... a.exe > checking for suffix of executables... .exe > checking whether we are cross compiling... no > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking for style of include used by make... GNU > checking dependency style of gcc... gcc3 > checking for ranlib... ranlib > configure: creating ./config.status > config.status: creating Makefile > config.status: creating autoconf.h > config.status: autoconf.h is unchanged > config.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): > > > ----------------------------------------------------------------------------------------- > $ make > mig -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 implemented > SchedulerBasicP: `Scheduler.init' not implemented > SchedulerBasicP: `Scheduler.taskLoop' not implemented > SchedulerBasicP: `Scheduler.bool' not implemented > In 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 class > failed to parse message file /opt/tinyos-2.x/tos/lib/serial/Serial.h > Makefile:697: recipe for target `serialpacket.h' failed > make: *** [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 micaz > mkdir -p build/micaz > gcc -o seriallisten15-4 seriallisten15-4.o > /opt/tinyos-2.x/tos/../support/sdk/c/sf/libmote.a > gcc: /opt/tinyos-2.x/tos/../support/sdk/c/sf/libmote.a: No such file or > directory > Makefile:9: recipe for target `seriallisten15-4' failed > make: *** [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 > -- Johny Mattsson Senior Software Engineer DiUS Computing Pty. Ltd. *where ideas are engineered *
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
