Barzi
31-05-08, 14:38
Ciao a tutti.
Ho questo problema. Sto compilando un programma con un compilatore per applicazioni embedded chiamato avr-gcc. Ho installato XCode (ver. 2.5 su tiger) e tutto il necessario per compilare.
In fase di compilazione ottengo questo errore:
-----cut here --------
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
------ cut here ------------
A quanto sembra non trova il cc1.
Facendo un mdfind da terminale ho trovato questi 2 percorsi:
/Developer/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/cc1
/opt/local/stow/repository/avr-tinyos/libexec/gcc/avr/4.1.2/cc1
Inoltre facendo type cc1 mi dice che non trova nulla.
Come risolvo? E' un problema di versione di gcc?
Thanx :-)
Ho questo problema. Sto compilando un programma con un compilatore per applicazioni embedded chiamato avr-gcc. Ho installato XCode (ver. 2.5 su tiger) e tutto il necessario per compilare.
In fase di compilazione ottengo questo errore:
-----cut here --------
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
------ cut here ------------
A quanto sembra non trova il cc1.
Facendo un mdfind da terminale ho trovato questi 2 percorsi:
/Developer/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/cc1
/opt/local/stow/repository/avr-tinyos/libexec/gcc/avr/4.1.2/cc1
Inoltre facendo type cc1 mi dice che non trova nulla.
Come risolvo? E' un problema di versione di gcc?
Thanx :-)