Davide, My guess is that your toolchain is not installed correctly. Make sure that your avr-gcc, avr-libc and avr-binutils packages are coming from the tinyos repository at Stanford.
Janos On Wed, Apr 25, 2012 at 1:33 PM, scatram...@gmail.com <scatram...@gmail.com> wrote: > Hi all, > > I've a problem compiling the Null application for the IRIS platform using > TinyOS 2.1.1. It seems to not recognize the platform at all... > > I look for some inspiration going trough the platform tutorial but I had no > luck (http://docs.tinyos.net/tinywiki/index.php/Platforms) > > The list of errors is quite long (makes the mail bigger then 40K) > > I compile as usual: > > scatramato@ubuntu:/opt/tinyos-2.1.1/apps/Null$ make iris > > The outputs starts as: > > mkdir -p build/iris > compiling NullAppC to a iris binary > ncc -o build/iris/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all > -target=iris -fnesc-cfile=build/iris/app.c -board=micasb > -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 > -DIDENT_APPNAME=\"NullAppC\" -DIDENT_USERNAME=\"orange\" > -DIDENT_HOSTNAME=\"ubuntu\" -DIDENT_USERHASH=0xdcd45315L > -DIDENT_TIMESTAMP=0x4f91f1d7L -DIDENT_UIDHASH=0x5ec0a11fL -fnesc-dump=wiring > -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, > components)' -fnesc-dumpfile=build/iris/wiring-check.xml NullAppC.nc -lm > > Then I get errors like: > > /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' > > It seems to me, it doesn't find the right one > > The very end of the error is: > > MeasureClockC: `Init.error_t' not implemented > MeasureClockC: `Atm128Calibrate.uint32_t' not implemented > MeasureClockC: `Atm128Calibrate.uint32_t' not implemented > MeasureClockC: `Atm128Calibrate.uint8_t' not implemented > MeasureClockC: `Atm128Calibrate.uint16_t' not implemented > MeasureClockC: `Atm128Calibrate.uint16_t' not implemented > In component `PlatformC': > /opt/tinyos-2.1.1/tos/platforms/mica/PlatformC.nc:45: `Atm128Calibrate' not > connected > In file included from /opt/tinyos-2.1.1/tos/system/MainC.nc:50, > from NullAppC.nc:44: > In component `RealMainP': > /opt/tinyos-2.1.1/tos/system/RealMainP.nc: In function `main': > /opt/tinyos-2.1.1/tos/system/RealMainP.nc:68: interface has no command or > event named `init' > /opt/tinyos-2.1.1/tos/system/RealMainP.nc:69: interface has no command or > event named `runNextTask' > /opt/tinyos-2.1.1/tos/system/RealMainP.nc:75: interface has no command or > event named `init' > /opt/tinyos-2.1.1/tos/system/RealMainP.nc:76: interface has no command or > event named `runNextTask' > /opt/tinyos-2.1.1/tos/system/RealMainP.nc: At top level: > /opt/tinyos-2.1.1/tos/system/RealMainP.nc:93: syntax error before > `PlatformInit' > make: *** [exe0] Error 1 > > > Any suggestion is much appreciated. > > Many thanks, > > Davide > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help