Hi,

I'm trying to compile for micaz on PPC Mac (Tiger), and I have the  
standard problem which was already described here. Unforunately, I  
couldn't find a satisfactory answer in this mailing list, and nowhere  
else.

I installed TinyOS using recent instructions by Kevin Klues with  
precompiled binaries for msp430 (this works fine) and avr:
http://klueska.doesntexist.com/installing_tinyos2.html

The famous error goes here:

---------------
spiderman:~/src/tinyos-2.x/apps/Blink zina$ make micaz
mkdir -p build/micaz
     compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe  -Os -Wall -Wshadow -Wnesc-all - 
target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb - 
DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 - 
DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"zina\" - 
DIDENT_HOSTNAME=\"spiderman.infor\" -DIDENT_USERHASH=0x9bf9b498L - 
DIDENT_TIMESTAMP=0x484569aeL -DIDENT_UIDHASH=0x1f02a009L -fnesc- 
dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc- 
dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/ 
micaz/wiring-check.xml BlinkAppC.nc -lm
avr-gcc: error trying to exec 'cc1': execvp: No such file or directory
<commandline>: failed to preprocess /stow/repository/nesc-1.2.9/lib/ 
ncc/nesc_nx.h
avr-gcc: error trying to exec 'cc1': execvp: No such file or directory
<commandline>: failed to preprocess /Users/zina/src/tinyos-2.x/tos/ 
system/tos.h
avr-gcc: error trying to exec 'cc1': execvp: No such file or directory
<commandline>: failed to preprocess /Users/zina/src/tinyos-2.x/tos/ 
system/TinySchedulerC.nc
<commandline>: Scheduler `TinySchedulerC' has no scheduling interface  
named `TaskBasic'
avr-gcc: error trying to exec 'cc1': execvp: No such file or directory
<commandline>: failed to preprocess BlinkAppC.nc
make: *** [exe0] Error 1
-----------------

I checked that I have only one avr-gcc on my system, then deleted it  
and reinstalled (this is what Kevin recommended when this question  
was posted previously). No effect.

At first glance, avr-gcc cannot find the program called "cc1". However:

$ avr-gcc -print-prog-name=cc1
/stow/repository/avr-tinyos/bin/../libexec/gcc/avr/4.1.2/cc1

To compare:

$ msp430-gcc -print-prog-name=cc1
/stow/bin/../lib/gcc-lib/msp430/3.2.3/cc1

It can be seen that msp430-gcc was built using gcc 3.2.3, but avr-gcc  
uses gcc 4.1.2.

The only solution I could think of was to try and build avr-gcc using  
gcc 3.2.3. However, before I go to such trouble, I would like to hear  
what you think of this idea, and probably you can suggest something  
else (even if you are not a Mac user).

Cheers
Zinaida

--
Zinaida Benenson
http://pi1.informatik.uni-mannheim.de

University of Mannheim
A 5,6
68159 Mannheim
Germany

Room B 138
Phone +49 621 181 2556
Fax +49 621 181 3577
[EMAIL PROTECTED]



_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to