User forums > Help

No such file or directory "error not input file" Build filed 2 errors

<< < (6/6)

Carnel X:
Check that the name of the folder that content your program is correct (whithout special character)

hs:
please help for this error in code blocks

-------------- Build: Debug in 1 (compiler: GNU GCC Compiler for AVR)---------------

avr-gcc.exe -Wall -mmcu=atmega8 -DF_CPU=16000000UL -g -IC:\WinAVR\avr\include -c fuse.c -o obj\Debug\fuse.o
avr-gcc.exe -Wall -mmcu=atmega8 -DF_CPU=16000000UL -g -IC:\WinAVR\avr\include -c main.c -o obj\Debug\main.o
avr-gcc.exe -LC:\WinAVR\avr\lib -o bin\Debug\1.elf obj\Debug\fuse.o obj\Debug\main.o  -mmcu=atmega8 -Wl,-Map=bin\Debug\1.map,--cref 
avr-gcc.exe: fatal error: cannot read spec file 'device-specs/specs-atmega8': No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
avr-gcc.exe: fatal error: cannot read spec file 'device-specs/specs-atmega8': No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

stahta01:
To hs:


--- Code: ----mmcu=atmega8
--- End code ---

The above is likely wrong.

You likely want

--- Code: ----mmcu=avr4
--- End code ---
along with

--- Code: ----D__AVR_ATmega8__
--- End code ---

This info found on https://gcc.gnu.org/wiki/avr-gcc

Note: Please tell us whether a CB Wizard or you the user set these values.

Edit: Looks like the CB Wizard and Compiler settings; I am guessing both being wrong is not likely; maybe the just the linker using
--- Code: ----mmcu=atmega8
--- End code ---
is wrong, instead.

Tim S.

Navigation

[0] Message Index

[*] Previous page

Go to full version