Hi everybody, I'm a new user of tinyOS and I got a small problem when I try to compile the Blink app for this platfrom.
Here is the error I get : clement@clement-laptop:/opt/tinyos-2.x/apps/Blink$ make intelmote2 install openocd /opt/tinyos-2.x-contrib/intelmote2/support/make/intelmote2.extra:41: warning: overriding commands for target `bytes' /opt/tinyos-2.x/support/make/pxa27x/pxa27x.rules:102: warning: ignoring old commands for target `bytes' mkdir -p build/intelmote2 echo -mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1 /opt/tinyos-2.x-contrib/intelmote2/tos/platforms/intelmote2/toscrt0.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x/pxa27x_util.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x/mmu_table.s -o build/intelmote2/asms.o -mcpu=iwmmxt -mfpu=softfpa -defsym BOOTLOADER=1 /opt/tinyos-2.x-contrib/intelmote2/tos/platforms/intelmote2/toscrt0.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x/pxa27x_util.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x/mmu_table.s -o build/intelmote2/asms.o compiling BlinkAppC to a intelmote2 binary ncc -o build/intelmote2/main.exe -Os -I/opt/tinyos-2.x-contrib/intelmote2/tos/platforms/intelmote2 -I/opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x -I/opt/tinyos-2.x-contrib/intelmote2/tos/sensorboards/im2cb -I/opt/tinyos-2.x-contrib/intelmote2/tos/platforms/intelmote2 -I/opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x -I/opt/tinyos-2.x-contrib/intelmote2/tos/chips/ov7649 -I/opt/tinyos-2.x-contrib/intelmote2/tos/chips/ov7670 -Wall -Wshadow -Wnesc-all -target=intelmote2 -fnesc-cfile=build/intelmote2/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 -DBOOTLOADER -T/opt/tinyos-2.x-contrib/intelmote2/tos/platforms/intelmote2/tos.x -DSYSTEM_CORE_FREQUENCY=13 -DSYSTEM_BUS_FREQUENCY=13 BlinkAppC.nc -lm /opt/tinyos-2.x-contrib/intelmote2/tos/platforms/intelmote2/toscrt0.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x/pxa27x_util.s /opt/tinyos-2.x-contrib/intelmote2/tos/chips/pxa27x/mmu_table.s /opt/tinyos-2.x/tos/system/tos.h:13:20: error: string.h: No such file or directory /opt/tinyos-2.x/tos/system/tos.h:14:20: error: stdlib.h: No such file or directory /opt/tinyos-2.x/tos/system/tos.h:15:18: error: math.h: No such file or directory /opt/tinyos-2.x/tos/system/tos.h:17:19: error: ctype.h: No such file or directory In file included from /opt/tinyos-2.x/tos/system/TinySchedulerC.nc:40: In component `SchedulerBasicP': /opt/tinyos-2.x/tos/system/SchedulerBasicP.nc: In function `Scheduler.init': /opt/tinyos-2.x/tos/system/SchedulerBasicP.nc:117: implicit declaration of function `memset' In file included from /opt/tinyos-2.x/tos/chips/pxa27x/timer/HplPXA27xOSTimerC.nc:57, from /opt/tinyos-2.x/tos/chips/pxa27x/timer/HalPXA27xOSTimerMapC.nc:47, from /opt/tinyos-2.x/tos/platforms/intelmote2/HilTimerMilliC.nc:49, from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41, from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40, from /opt/tinyos-2.x/tos/platforms/intelmote2/chips/da9030/PMICC.nc:81, from /opt/tinyos-2.x/tos/platforms/intelmote2/PlatformC.nc:44, from /opt/tinyos-2.x/tos/system/MainC.nc:50, from BlinkAppC.nc:45: In component `HplPXA27xInterruptM': /opt/tinyos-2.x/tos/chips/pxa27x/HplPXA27xInterruptM.nc: In function `allocate': /opt/tinyos-2.x/tos/chips/pxa27x/HplPXA27xInterruptM.nc:131: implicit declaration of function `memcpy' make: *** [exe0] Error 1 The weird thing is that I don't have any problem when I try with micaz : clement@clement-laptop:/opt/tinyos-2.x/apps/Blink$ make micaz mkdir -p build/micaz compiling BlinkAppC to a micaz binary ncc -o build/micaz/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"clement\" -DIDENT_HOSTNAME=\"clement-laptop\" -DIDENT_USERHASH=0xf8225cdbL -DIDENT_TIMESTAMP=0x507d6c0aL -DIDENT_UIDHASH=0xded5db08L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm compiled BlinkAppC to build/micaz/main.exe 2048 bytes in ROM 51 bytes in RAM avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex writing TOS imag I checked my gcc and everythings seems fine : clement@clement-laptop:/opt/tinyos-2.x/apps/Blink$ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5.1' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix And these three packets are installed : xscale-elf-binutils-2.15-2.i386.deb xscale-elf-gcc-3.4.3-2.i386.deb xscale-elf-newlib-1.13.0-1.i386.deb FYI I'm using an Ubuntu 10.04 x86. Thanks in advance for your help, C. _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help