Re: [Tinyos-help] Problem with 'make pc'

2007-09-01 Thread Roberto

> Hi,
> 
> 'PC' is not a correct argument to the make-command. You should  
> specify on
> which node-platform do you want to compile the program to. Eg.
> "make mica2" if your nodes are Mica2.

perhaps, is make pc used in previous versions of tinyOS?
Anyway the command make  sim works only for micaz
I solved my problem installing g++. I hadn't this packet
Now, it seems work well
Thanks all


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Problem with 'make pc'

2007-09-01 Thread Risto Hietala

Hi,

'PC' is not a correct argument to the make-command. You should  
specify on

which node-platform do you want to compile the program to. Eg.
"make mica2" if your nodes are Mica2.

See http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson1.html for
tutorial on how to start with tinyos-programs.

If you want to simulate the behavior of the program on a PC, then you
should build with "make micaz sim" and read
http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson11.html for
instructions on how to proceed.

Hope this helps,

 Risto Hietala


On 1.9.2007, at 14.46, Roberto wrote:


Hi all
I have a problem when i compile using make pc
I can see the following message:
---
[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ make pc
/opt/tinyos-2.x/support/make/Makerules:168: ***

...

---

How can I solve this problem?
Thank you so much



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] problem with make pc

2006-05-30 Thread Ben Kelley
I got nesc to work using 1.1.3 and applying the patch, reversed.  

Here is an attached patch, just cd into the src directory of nesc and run
patch < c-parse.gperf.patch

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:tinyos-help-
> [EMAIL PROTECTED] On Behalf Of Justin Dugger
> Sent: Tuesday, May 30, 2006 10:21
> To: Michael D
> Cc: tinyos-help@Millennium.Berkeley.EDU
> Subject: Re: [Tinyos-help] problem with make pc
> 
> I was getting the same error on Ubuntu, but it turns out that my
> version of nescc was too old.  If you checked tinyos out from CVS,
> you'll need 1.2.4 it seems.  If "ncc --version" reports something like
> 1.1.2b instead of 1.2.4,  it will tank on the offset() function.  The
> most difficult part in fixing this would probably be finding where the
> old version is coming from. There's a command called "which" that
> reports back where a given program is stored. For example:
> 
>[EMAIL PROTECTED]:~$ which eclipse
>/usr/bin/eclipse
> 
> Hopefully that fixes it.
> 
> Justin Dugger
> 
> 
> On 5/30/06, Michael D <[EMAIL PROTECTED]> wrote:
> > When i try to compile a application with make pc i get the following
> error
> >
> > In file included from /opt/tinyos-1.x/tos/platform/pc/packet_sim.h:55,
> >  from /opt/tinyos-1.x/tos/platform/pc/nido.h:84,
> >  from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
> >  from /opt/tinyos-1.x/tos/system/tos.h:144:
> > /opt/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'
> > /opt/tinyos-1.x/tos/types/AM.h:156: parse error before `struct'
> > /opt/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'
> > /opt/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
> > /opt/tinyos-1.x/tos/types/AM.h:186: parse error before `TOS_Msg'
> > In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:116,
> >  from /opt/tinyos-1.x/tos/system/tos.h:144:
> > /opt/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
> > /opt/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of
> > `length' shadows global declaration
> > /opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
> > declaration
> > /opt/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of
> > `length' shadows global declaration
> > /opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
> > declaration
> > make: *** [exe0] Error 1
> >
> >
> > I already tried to recompile the nesc compiler with the patch that was
> > suggested in :
> > https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-
> September/012219.html
> > but it doesnt work.
> >
> > I tried to change the offestof() macro in stddef.h to the old function,
> > but i dont know how to do that.
> > Can anyone help me with this?
> >
> >
> >lg, mike
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-
> help
> >
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


c-parse.gperf.patch
Description: Binary data
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] problem with make pc

2006-05-30 Thread Justin Dugger

I was getting the same error on Ubuntu, but it turns out that my
version of nescc was too old.  If you checked tinyos out from CVS,
you'll need 1.2.4 it seems.  If "ncc --version" reports something like
1.1.2b instead of 1.2.4,  it will tank on the offset() function.  The
most difficult part in fixing this would probably be finding where the
old version is coming from. There's a command called "which" that
reports back where a given program is stored. For example:

  [EMAIL PROTECTED]:~$ which eclipse
  /usr/bin/eclipse

Hopefully that fixes it.

Justin Dugger


On 5/30/06, Michael D <[EMAIL PROTECTED]> wrote:

When i try to compile a application with make pc i get the following error

In file included from /opt/tinyos-1.x/tos/platform/pc/packet_sim.h:55,
 from /opt/tinyos-1.x/tos/platform/pc/nido.h:84,
 from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
 from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h:156: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/opt/tinyos-1.x/tos/types/AM.h:186: parse error before `TOS_Msg'
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:116,
 from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of
`length' shadows global declaration
/opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
declaration
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of
`length' shadows global declaration
/opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
declaration
make: *** [exe0] Error 1


I already tried to recompile the nesc compiler with the patch that was
suggested in :
https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/012219.html
but it doesnt work.

I tried to change the offestof() macro in stddef.h to the old function,
but i dont know how to do that.
Can anyone help me with this?


   lg, mike
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help