Hi Andris,

Thanks for your reply. I reinstalled from the stanford repository. The error 
has now changed:

/usr/lib/ncc/nesc_nx.h:62:22: error: inttypes.h: No such file or directory
/usr/lib/ncc/nesc_nx.h:281: syntax error before `__nesc_ntoh_uint8'
/usr/lib/ncc/nesc_nx.h:286: syntax error before `__nesc_hton_uint8'
/usr/lib/ncc/nesc_nx.h:288: warning: type defaults to `int' in declaration of 
`base'
etc...

it goes on like that. I have checked, and "inttypes.h" is located in my 
/usr/avr/ directory -- so it's present, it's just not being located by TinyOS. 
I see that some forum posts on this were solved using:

maxwell@XXX: sudo apt-get install build-essential 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

but as you can see, this is apparently not the source of the problem. Any known 
fixes for this?

Thanks,
-Max



> Date: Thu, 13 Oct 2011 16:05:22 +0200
> Subject: Re: [Tinyos-help] TinyOS setup problem
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> Hi Max,
> 
> That avr-gcc is really old. Try to reinstall every avr related package
> from this repository:
> deb http://tinyos.stanford.edu/tinyos/dists/ubuntu/ lucid main
> 
> Andris
> 
> On Thu, Oct 13, 2011 at 2:06 PM, Morgan Reeves
> <[email protected]> wrote:
> > Hi Everyone,
> >
> > I have spent the last 3 hours trying to fix this and I'm totally stuck, so
> > I'm hoping someone can at least prod me forward towards a solution. I run
> > linux 10.04 and I installed following the TinyOS website.  I tried the
> > karmic, lucid, and hardy versions, and even the "apt-get upgrade tinyos",
> > yet the problem remains.  That is, when I call "make micaz" I get:
> >
> > mkdir -p build/micaz
> >     compiling SimpleAppC to a micaz binary
> > ncc -o build/micaz/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
> > -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
> > -DDEFINED_TOS_AM_GROUP=0x22 -finline-limit=100000
> > -DIDENT_APPNAME=\"SimpleAppC\" -DIDENT_USERNAME=\"maxwell\"
> > -DIDENT_HOSTNAME=\"maxwell-laptop\" -DIDENT_USERHASH=0xf0d57439L
> > -DIDENT_TIMESTAMP=0x4e96d083L -DIDENT_UIDHASH=0x6400933dL -fnesc-dump=wiring
> > -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
> > components)' -fnesc-dumpfile=build/micaz/wiring-check.xml SimpleAppC.nc -lm
> > In file included from /opt/tinyos-2.1.1/tos/system/TinySchedulerC.nc:41:
> > In component `McuSleepC':
> > /opt/tinyos-2.1.1/tos/chips/atm128/McuSleepC.nc: In function
> > `McuSleep.sleep':
> > /opt/tinyos-2.1.1/tos/chips/atm128/McuSleepC.nc:102: implicit declaration of
> > function `pgm_read_byte'
> > make: *** [exe0] Error 1
> >
> > I have seen this `pgm_read_byte' issue crop up many times on the forums, but
> > never solved so far as I can tell. If it is useful, I checked:
> >
> > maxwell@XXX:~/Simple$ avr-gcc --version
> > avr-gcc (GCC) 3.3-tinyos
> >
> > I cannot locate "pgmspace.h" whch is related to this `pgm_read_byte'. My
> > directory /usr/avr/ holds only bin and lib, and a grep search yields
> > nothing.
> >
> > Can someone point me in the right direction here?  Much thanks in advance,
> > -Max
> >
> >
> >
> > _______________________________________________
> > 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