The issue is caused due to old compiler of nesc. Updating nesc to 1.3.3 helps. Mig stops complaining. Other solutions are outlined in here- http://www.george-smart.co.uk/wiki/TinyOS#mig_issue_failed_parsing_RssiDemoMessages.h
On Mon, Apr 2, 2012 at 6:07 AM, Siddharth Dagar <[email protected]>wrote: > > Have you been able to find a solution to your problem? > > This issue is resolved if you use > -target=telosb (or any other platform you are using) > instead of -target=null > > It seems to be an issue with mig. Changing the target resolves the issue > of parsing TestSerial.h. > But the real problem starts after that. The .java file that mig is > generating is throwing up a lot of errors when the java compiler tries to > compile it. > > Some of the errors: > javac -target 1.4 -source 1.4 *.java > TestSerialMsg.java:88: unclosed string literal > s += " [nx_struct test_serial_msg 2 137 > ^ > TestSerialMsg.java:89: illegal start of expression > =0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137 > ^ > TestSerialMsg.java:89: hexadecimal numbers must contain at least one > hexadecimal digit > =0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137 > ^ > TestSerialMsg.java:89: unclosed string literal > =0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137 > > I think it's still a problem with mig. It's not generating the right .java > files. > Does anybody have any idea about this? > > On Mon, Mar 12, 2012 at 5:53 PM, Prasanth P <[email protected]>wrote: > >> I am trying Tinyos 2.1.0 in Ubuntu 11.10. >> Seems some problem in compiling TestSerial application in >> /apps/test/TestSerial/ >> >> This is the error am getting while compiling for Telosb >> >> make telosb >> >> mkdir -p build/telosb >> mig java -target=null -I/opt/tinyos-2.1.0/tos/lib/T2Hack >> -DIDENT_APPNAME=\"TestSerialAppC\" -DIDENT_USERNAME=\"root\" >> -DIDENT_HOSTNAME=\"ubuntu\" -DIDENT_USERHASH=0xa3473ba6L >> -DIDENT_TIMESTAMP=0x4f5de953L -DIDENT_UIDHASH=0x76093f42L >> -java-classname=TestSerialMsg TestSerial.h test_serial_msg -o >> TestSerialMsg.java >> two source files specified (PLATFORM_NULL and >> IDENT_APPNAME="TestSerialAppC") >> failed to parse message file TestSerial.h >> make: *** [TestSerialMsg.java] Error 1 >> >> Plz reply if somebody have any idea on this. >> >> >> -- >> Regards >> Prasanth.P >> >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > > > > -- > Thanks, > Siddharth Dagar > IIT Kharagpur > > -- Thanks, Siddharth Dagar IIT Kharagpur
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
