[Tinyos-help] [TinyOS 1.X] Error on compiling apps on PPC Mac

Ubaldo Tiberi ubaldo.tiberi at email.it
Sun May 18 05:06:00 PDT 2008


Hi everybody,

I've got an iBook G4 PPC Based.
I've installed all the TinyOs 1.X environment and anything seems to  
work fine.
But I've got a problem. When I try to compile an application I get  
this error

bash$ make mica2
compiling Blink to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2 -Wall - 
Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=100000 - 
fnesc-cfile=build/mica2/app.c Blink.nc -lm
avr-gcc: error trying to exec 'cc1': execvp: No such file or directory
<commandline>: failed to preprocess /opt/local/stow/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 /opt/local/tinyos-1.x/tos/system/ 
tos.h
avr-gcc: error trying to exec 'cc1': execvp: No such file or directory
<commandline>: failed to preprocess Blink.nc
make: *** [build/mica2/main.exe] Error 1

I've tried to do the following:

bash$ type cc1
-bash: type: cc1: not found

bash$ gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable- 
checking -enable-werror --prefix=/usr --mandir=/share/man --enable- 
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ 
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ 
lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 -- 
target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)

I have installed the XCode ver. 2.5
It seems I don't have the cc1 compiler, isn't it? Should I install  
it? How can I do this?
Should I check anything else?
Thank you in advance

Ubaldo
--


 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Scopri le tue passioni con Leonardo.it!
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7653&d=18-5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080518/f04b8178/attachment.htm 


More information about the Tinyos-help mailing list