Hi Max,

On Fri, Oct 14, 2011 at 2:21 AM, Morgan Reeves
<[email protected]> wrote:
> Hi again,
>
> I followed Andrew's suggestion, but I had already updated everything:
>
> maxwell@XXX:~$ nescc --version
> nescc: 1.3.3
> gcc: gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
> Copyright (C) 2009 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> so perhaps ncc is not the problem... Following Andris' suggestion, it spits
> out:
>
> ii  avr-binutils            2.13.2.1-2          GNU binutils for the AVR
> platform
> ii  avr-binutils-tinyos     2.17-20110726       Binary utilities supporting
> Atmel's AVR targ
> ii  avr-gcc                 3.3tinyos-2         gcc compiled for the AVR
> platform with TinyO
> ii  avr-gcc-tinyos          4.1.2-20110803      The GNU C compiler (cross
> compiler for avr)
> ii  avr-libc-tinyos         1.6.7-20110726      Standard library used to the
> development of
> ii  avr-optional-tinyos     2.1-20090326        Dummy package to pull in all
> optional avr-re
> ii  avr-tinyos              2.1-20080806        Dummy package to pull in all
> avr-related pac
> ii  avr-tinyos-base         2.1-20080806        Dummy package required by
> all avr-tinyos too
> ii  avrdude-tinyos          5.10-20110819       AVRDUDE is an open source
> utility to downloa
> ii  tinyos-required-avr     2.1-20090326        Dummy package to pull in all
> required packag
>
> and I note that I have redundancy in binutils and gcc, so pehaps I should
> remove the non-tinyOS ones?

Yes, that will be your problem. If uninstalling the non-tinyOS
packages won't solve your problem, I recommend to remove all the
packages you listed, and reinstall avr-optional-tinyos (which depends,
therefore reinstall everything you need).

Andris

>
> Thanks,
> -Max
>
>
>
>> Date: Thu, 13 Oct 2011 20:25:32 +0200
>> Subject: Re: [Tinyos-help] TinyOS setup problem
>> From: [email protected]
>> To: [email protected]
>> CC: [email protected]; [email protected]
>>
>> Hi,
>>
>> On Thu, Oct 13, 2011 at 8:00 PM, Andrew Sabelhaus <[email protected]>
>> wrote:
>> > Hi Max,
>> >
>> > From that error message, it seems your issue is now with ncc (the nesC
>> > compiler.) Even though you updated your avr-gcc packages, did you do
>> > the same with ncc? The TinyOS wiki should have details for installing
>>
>> Good idea. You should use nesc 1.3.2 or newer.
>>
>> > everything manually, instead of relying on Ubuntu's apt-get system, so
>> > I'd suggest trying to install the ncc libraries manually.
>>
>> The tinyos wiki currently points to a dead repository. I don't
>> recommend to by-pass the apt system, it's far worse to install
>> packages with make install (it's hard to update and remove, and you
>> probably won't use the correct paths)
>>
>> > Also, have you edited your environment variables? When a program
>> > "can't locate" some needed library, then you probably need to add the
>> > containing folder to your $PATH environment variable. Again, check the
>> > wiki for more instructions on what environment variables you need, and
>> > how to use tos-check-env to work all of that out. Best of luck,
>>
>> I don't think this will be the problem. If the MAKERULES or
>> TOSDIR/TOSROOT isn't set up correctly, you will get a much nicer error
>> message. The CLASSPATH doesn't matter if he doesn't use java, and you
>> shouldn't edit the PATH on linux (that wiki is quite outdated).
>>
>> I think your problem is still avr-toolchain related.
>> What's the output of "dpkg -l|grep avr"? It should be something like this:
>> ii avr-binutils-tinyos 2.17-20110726
>> ii avr-gcc-tinyos 4.1.2-20110803
>> ii avr-libc-tinyos 1.6.7-20110726
>> ii avr-optional-tinyos 2.1-20090326
>> ii avr-tinyos 2.1-20080806
>> ii avr-tinyos-base 2.1-20080806
>> ii avrdude-tinyos 5.10-20110819
>>
>> Andris
>>
>> >
>> > Andrew Sabelhaus
>> > Chapter President, oSTEM at Maryland
>> > Mechanical Engineering, Class of 2012
>> > A. James Clark School of Engineering, The University of Maryland,
>> > College Park
>> > [email protected] - (301) 807-9842
>> >
>> >
>> >
>> > On Thu, Oct 13, 2011 at 1:34 PM, Morgan Reeves
>> > <[email protected]> wrote:
>> >> 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
>> >>
>> >
>> > _______________________________________________
>> > 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
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to