Hello,

It seems that something goes wrong in /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h syntax. If it's not, try to pass the path of msp430hardware.h file to compiler with -I flag.

I've just realized that you have install tinyos with root priviledges. That might cause problems on compiling with user priviledges.

I guess you are Greek. If so, try to follow my guide on tinyos installation <http://titan.softnet.tuc.gr:8082/index.php?title=User:aigglezakis/How_to:_%CE%95%CE%B3%CE%BA%CE%B1%CF%84%CE%AC%CF%83%CF%84%CE%B1%CF%83%CE%B7_TinyOS_2.x.x&highlight=tinyos>, updating the repository's link.



On 01/27/2015 10:03 PM, Antonis Tzounis wrote:
Hello,
Today I came up a strange issue while trying to compile a simple blink application for my new Zolertia Z1 nodes. While I can complile blink for telosb, when I chanve target to z1 I have the following error:

---------------------------------------------------------------------------------------
mkdir -p build/z1
    compiling BlinkAppC to a z1 binary
ncc -o build/z1/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=z1 -fnesc-cfile=build/z1/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"ubuntu\" -DIDENT_USERHASH=0xa3473ba6L -DIDENT_TIMESTAMP=0x54c7edbeL -DIDENT_UIDHASH=0xba6f7826L BlinkAppC.nc -lm
In file included from /opt/tinyos-2.1.2/tos/system/SchedulerBasicP.nc:52:
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:43:28: error: msp430hardware.h: No such file or directory
In file included from /opt/tinyos-2.1.2/tos/system/SchedulerBasicP.nc:52,
                 from /opt/tinyos-2.1.2/tos/system/TinySchedulerC.nc:51:
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:46: syntax error before `5'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:46: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:46: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:47: syntax error before `5'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:47: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:47: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:48: syntax error before `5'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:48: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:48: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:51: syntax error before `3'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:51: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:51: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:52: syntax error before `3'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:52: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:52: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:53: syntax error before `3'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:53: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:53: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:54: syntax error before `3'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:54: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:54: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:55: syntax error before `3'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:55: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:55: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:56: syntax error before `3'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:56: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:56: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:57: syntax error before `3'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:57: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:57: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:58: syntax error before `5'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:58: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:58: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:59: syntax error before `5'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:59: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:59: warning: data definition has no type or storage class
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:60: syntax error before `5'
/opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:60: warning: return-type defaults to `int' /opt/tinyos-2.1.2/tos/platforms/z1/hardware.h:60: warning: data definition has no type or storage class
In component `TinySchedulerC':
/opt/tinyos-2.1.2/tos/system/TinySchedulerC.nc:52: component McuSleepC not found
/opt/tinyos-2.1.2/tos/system/TinySchedulerC.nc:55: no match
In file included from /opt/tinyos-2.1.2/tos/platforms/z1/PlatformC.nc:47,
                 from /opt/tinyos-2.1.2/tos/system/MainC.nc:61,
                 from BlinkAppC.nc:56:
In component `PlatformP':
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformP.nc: In function `Init.init':
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformP.nc:51: `WDTCTL' undeclared (first use in this function) /opt/tinyos-2.1.2/tos/platforms/z1/PlatformP.nc:51: (Each undeclared identifier is reported only once /opt/tinyos-2.1.2/tos/platforms/z1/PlatformP.nc:51: for each function it appears in.) /opt/tinyos-2.1.2/tos/platforms/z1/PlatformP.nc:51: `WDTPW' undeclared (first use in this function) /opt/tinyos-2.1.2/tos/platforms/z1/PlatformP.nc:51: `WDTHOLD' undeclared (first use in this function)
In component `PlatformC':
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformC.nc: At top level:
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformC.nc:47: component Msp430ClockC not found
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformC.nc:49: cannot find `Init'
In file included from /opt/tinyos-2.1.2/tos/system/LedsC.nc:49,
                 from BlinkAppC.nc:56:
In component `PlatformLedsC':
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:51: component HplMsp430GeneralIOC not found /opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:52: component Msp430GpioC not found /opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:52: component `Msp430GpioC' is not generic /opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:53: component `Msp430GpioC' is not generic /opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:54: component `Msp430GpioC' is not generic
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:60: no match
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:62: cannot find `Port54'
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:64: no match
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:65: cannot find `Port56'
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:67: no match
/opt/tinyos-2.1.2/tos/platforms/z1/PlatformLedsC.nc:68: cannot find `Port55'
In file included from /opt/tinyos-2.1.2/tos/system/TimerMilliC.nc:48,
                 from BlinkAppC.nc:57:
In component `TimerMilliP':
/opt/tinyos-2.1.2/tos/system/TimerMilliP.nc:52: component HilTimerMilliC not found
/opt/tinyos-2.1.2/tos/system/TimerMilliP.nc:53: no match
/opt/tinyos-2.1.2/tos/system/TimerMilliP.nc:54: no match
make: *** [exe0] Error 1
-------------------------------------------------------------------------------------------------

I checked if msp430hardware.h file was missing, but it doesn't.
Any ideas what could possibly cause this problem?
Please note that I am using Ubuntu 13 on VMware.
Has anyone had a similar issue?
Thank you in advance,
Antonis


_______________________________________________
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

Reply via email to