Well, I went looking for those folders, and I wonder if this is the problem.
Apparently my version of avr is 3.0.3, because I do not have a path
"/usr/local/lib/gcc-lib/avr/3.3-tinyos".  Instead, I have
"/usr/local/lib/gcc-lib/avr/3.0.3"

Is the version difference possibly the problem?

Also, inside the ncc folder (/usr/local/lib/ncc), I don't have an avr
directory.  I'm guessing that the absence of this folder would be
problematic; however I don't know how to rectify it.  Which part(s) of
tinyos, etc., should I reinstall?

Thanks,
Greg Turnipseed


> From: Michael Schippling <[EMAIL PROTECTED]>
> Reply-To: <[EMAIL PROTECTED]>
> Date: Wed, 25 Apr 2007 16:52:17 -0600
> To: TINYOS HELP <[email protected]>
> Subject: Re: [Tinyos-help] Compiling on MacOSX 10.4 for MICA
> 
> I tried to send something like this but it got stuck in the
> probably non-existant moderator's queue for being too large.
> It won't let me get it back so this is what I remember...
> 
> The errors Greg sent indicated that the processor define
> "__AVR_ATmega128__" was not set in his MacOS compile attempt.
> 
> I don't know how this gets set, but there are two subdirs
> of TOS stuff in /usr/local that may be implicated:
> /usr/local/lib/gcc-lib/avr/3.3-tinyos
> /usr/local/lib/ncc/avr/3.3-tinyos
> 
> In case it's of any use, included below is the output of a
> "make mica2" with a "PFLAGS = -v" set in the makefile.
> Strangely the compile in tos/apps/Blink (below) has a
> platform option "atmega103" sprinkled around, whereas when
> I did it in contrib/xbow I got "atmega128" !!?
> 
> MS
> 
> ----------------------------- full make output -------------------------
> 
> compiling Blink to a mica2 binary
> 
> ncc -o build/mica2/main.exe -Os -v  Blink.nc -lm
> 
> nescc -DPLATFORM_MICA -fnesc-include=tos -topdir=/opt/tinyos-1.1.7 -o
> build/mica2/main.exe -Os -v Blink.nc -lm -gcc=avr-gcc -mmcu=atmega103
> -fnesc-target=avr -fnesc-no-debug -mingw-gcc
> -I/opt/tinyos-1.1.7/tos/platform/mica
> -I/opt/tinyos-1.1.7/tos/platform/avrmote -I/opt/tinyos-1.1.7/tos/interfaces
> -I/opt/tinyos-1.1.7/tos/types -I/opt/tinyos-1.1.7/tos/system
> 
> avr-gcc -specs=c:\cygwin\usr\local\lib\ncc\tdspecs -DPLATFORM_MICA
> -_fnesc-include=tos -obuild\mica2\main.exe -Os -v Blink.nc -lm
> -mmcu=atmega103 -_fnesc-target=avr -_fnesc-no-debug
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\platform\mica
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\platform\avrmote
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\interfaces
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\types
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\system -DNESC=110
> 
> Reading specs from /usr/local/lib/gcc-lib/avr/3.3-tinyos/specs
> 
> Reading specs from c:\cygwin\usr\local\lib\ncc\tdspecs
> 
> Configured with: ./configure --target=avr --disable-nls
> 
> Thread model: single
> 
> gcc version 3.3-tinyos
> 
>   perl -S nesc-compile -_fnesc-include=tos -_fnesc-target=avr
>   -_fnesc-no-debug -mmcu=atmega103 -DPLATFORM_MICA -DNESC=110
>   -Ic:\cygwin\opt\tinyos-1.1.7\tos\platform\mica
>   -Ic:\cygwin\opt\tinyos-1.1.7\tos\platform\avrmote
>   -Ic:\cygwin\opt\tinyos-1.1.7\tos\interfaces
>   -Ic:\cygwin\opt\tinyos-1.1.7\tos\types
>   -Ic:\cygwin\opt\tinyos-1.1.7\tos\system -Os -v
>   -fnesc-tmpcfile=/cygdrive/c/tmp/ccM67iWh.c -o /cygdrive/c/tmp/cco35rIp.o
>   Blink.nc
> 
> nesc1 -_fnesc-include=tos -_fnesc-target=avr -_fnesc-no-debug
> -mmcu=atmega103 -DPLATFORM_MICA -DNESC=110
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\platform\mica
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\platform\avrmote
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\interfaces
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\types
> -Ic:\cygwin\opt\tinyos-1.1.7\tos\system -v Blink.nc -o
> /cygdrive/c/tmp/ccM67iWh.c
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/tos.h
> 
> preprocessing Blink.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/Main.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\interfaces/StdControl.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/RealMain.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\interfaces/Pot.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/PotC.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/PotM.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\interfaces/HPLPot.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\platform\avrmote/HPLPotC.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\platform\avrmote/HPLInit.nc
> 
> preprocessing BlinkM.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\interfaces/Timer.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\interfaces/Timer.h
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\interfaces/Leds.nc
> 
> preprocessing SingleTimer.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/TimerC.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/TimerM.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\interfaces/Clock.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\platform\mica/Clock.h
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\interfaces/PowerManagement.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/ClockC.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\platform\mica/HPLClock.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/NoLeds.nc
> 
> preprocessing
> c:\cygwin\opt\tinyos-1.1.7\tos\platform\mica/HPLPowerManagementM.nc
> 
> preprocessing c:\cygwin\opt\tinyos-1.1.7\tos\system/LedsC.nc
> 
> avr-gcc -Bc:\cygwin\usr\local\lib\ncc -mmcu=atmega103 -Os -v -o
> /cygdrive/c/tmp/cco35rIp.o -c /cygdrive/c/tmp/ccM67iWh.c
> 
> Reading specs from /usr/local/lib/gcc-lib/avr/3.3-tinyos/specs
> 
> Configured with: ./configure --target=avr --disable-nls
> 
> Thread model: single
> 
> gcc version 3.3-tinyos
> 
>   /usr/local/lib/gcc-lib/avr/3.3-tinyos/cc1.exe -quiet -v -isystem
>   c:/cygwin/usr/local/lib/ncc/include -D__GNUC__=3 -D__GNUC_MINOR__=3
>   -D__GNUC_PATCHLEVEL__=0 /cygdrive/c/tmp/ccM67iWh.c -quiet -dumpbase
>   ccM67iWh.c -mmcu=atmega103 -auxbase-strip /cygdrive/c/tmp/cco35rIp.o -Os
>   -version -o /cygdrive/c/tmp/ccoxw8ln.s
> 
> ignoring nonexistent directory "c:/cygwin/usr/local/lib/ncc/include"
> 
> GNU C version 3.3-tinyos (avr)
> 
> compiled by GNU C version 3.2 20020927 (prerelease).
> 
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> 
> ignoring nonexistent directory "NONE/include"
> 
> ignoring nonexistent directory "/usr/local/avr/sys-include"
> 
> #include "..." search starts here:
> 
> #include <...> search starts here:
> 
>   /usr/local/lib/gcc-lib/avr/3.3-tinyos/include
> 
>   /usr/local/avr/include
> 
> End of search list.
> 
>   c:/cygwin/usr/local/lib/ncc/avr/3.3-tinyos/as.exe -mmcu=atmega103 -o
>   /cygdrive/c/tmp/cco35rIp.o /cygdrive/c/tmp/ccoxw8ln.s
> 
>   /usr/local/lib/gcc-lib/avr/3.3-tinyos/../../../../avr/bin/ld.exe -m avr3
>   -obuild\mica2\main.exe
>   /usr/local/lib/gcc-lib/avr/3.3-tinyos/../../../../avr/lib/avr3/crtm103.o
>   -L/usr/local/lib/gcc-lib/avr/3.3-tinyos/avr3
>   -L/usr/local/lib/gcc-lib/avr/3.3-tinyos
>   -L/usr/local/lib/gcc-lib/avr/3.3-tinyos/../../../../avr/lib/avr3
>   -L/usr/local/lib/gcc-lib/avr/3.3-tinyos/../../../../avr/lib
>   /cygdrive/c/tmp/cco35rIp.o -lm -lgcc -lc -lgcc
> 
> compiled Blink to build/mica2/main.exe
> 
> 1566 bytes in ROM
> 
>  46 bytes in RAM
> 
> avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


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

Reply via email to