Hi guys, 1.3.2 and older versions of nesc has this bug when tries to compile with gcc 4.6. You can do eighter of these solutions: -add option -target=iris (or telos or whatever mote you're using, it doesn't really matter, the generated code is the same) to the mig command to use avr-gcc or msp430-gcc instead of gcc. -update nesc to 1.3.3. (from here: http://tinyos.stanford.edu/tinyos/dists/ubuntu/pool/main/n/nesc/, http://tinyos.stanford.edu/tinyos/dists/cygwin/ or from source) -use the patch from here (the bug is in a perl script, so you don't need to recompile anything): http://sourceforge.net/tracker/?func=detail&aid=3153727&group_id=56288&atid=480036
Andris On Fri, Nov 11, 2011 at 1:05 PM, Jakob Bieling <biel...@cs.uni-bonn.de> wrote: > Hi George, > > I do not have a solution, but I thought I'd share our findings. We are > facing the same problem on Ubuntu 11. But the identical code compiles on > Debian5 and Ubuntu 10 machines. The error we get is similar to yours, but not > identical: > > two source files specified (PLATFORM_NULL and TOSH_DATA_LENGTH=100) > .. > > Due to time constraints, we did not dig deeper into this, as we are able to > take the class files from the Debian machine. But maybe this info helps you > find the actual cause of the error. > > Best, > Jakob > > > On Nov 7, 2011, at 3:08 PM, George Smart wrote: > >> Hi. I am trying to build the Java program to go with the RssiDemo. I >> have all the nodes programmed and can read binary data from the nodes >> via terminal program. When it comes to running the Java PC program, I >> just can't seem to get it to compile! I get the following errors: >> >> george@box:/opt/tinyos-2.1.1/apps/tutorials/RssiDemo/java$ sudo make >> mig java -target=null -java-classname=RssiMsg ../RssiDemoMessages.h >> RssiMsg -o RssiMsg.java >> two source files specified (PLATFORM_NULL and NESC=131) >> failed to parse message file ../RssiDemoMessages.h >> make: *** [RssiMsg.java] Error 1 >> george@box:/opt/tinyos-2.1.1/apps/tutorials/RssiDemo/java$ >> >> I just don't have enough experience to fix it. If anyone can offer any >> suggestions, that would be great. I'm running Ubuntu 11.10, 64-bit with >> the proper Oracle Java 7 suite. I had a good around and a search this >> mailing list but I couldn't find an answer to this. >> >> Thanks in Advance. >> >> George Smart >> Ph.D Student, E&EE, UCL. > > -- > net.cs.bonn.edu/bieling > > > -----BEGIN PGP SIGNATURE----- > > iQIcBAEBAgAGBQJOvQ9wAAoJEHEm4kjjmybAHqgQAK3IuTxGazUPOlKJmyextSZp > uTi6XI1W0M82pr9CG63uvpuzM4FXfJmIQ9JrajgyK0QufjFDC1vF+QgkX0+VW+vU > XyoFGMTrofnLUbc7siY+CbnAD13mKX1ByLvYOkMgjHm1vjurIwnBJRIx1ryzySBr > lzE+p5D/MkP+tTYYfdGQVvn7JC7qZ6sGobI3liXBQItx3gkVVjXuEu4X2xILjsZq > AsfCdp4UiigUTpjINMvayfxOoVSuvMkm9Z0e5NjsQc8JZWPxxCXJTogy3Ijadwiy > afx2Y33K4WYJ80dOFkbSI4ENcJCNYV/mQQGNqQA4DmQDOY3ylsQShvDpfUSpI/N5 > aefY0ElR/190B7JICeR1XnHCLhbZ0pVmNRXszeuVREuqc3DatDTLACPaEc2B3v+D > jiM4oueDsK4Ls/rdiHW+I0o431mFLnjwphFF78PhzQKtceXZFsOoCyMnI6uee/ee > aPNmq0U/LJTORqUS5iGuUufPTwl+vsNOL/6SbqEoMCCQvZ3MO4mRIlCA4zBdYa24 > RahQm9CeA6okAlZRnVISlZxXHSIxcI/Hau1IeZjHNs/YbPCe+58dp/ScJR2sndiS > eD2lXV79EBkOxsbkV5Sb9nDbMase+iwGk01DcqQFTpfA6Kr7GrDyItk+VjidoBSM > Sj66KGeDoq5hEhkv5W3h > =/v5d > -----END PGP SIGNATURE----- > > _______________________________________________ > 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