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