User forums > Help
No such file or directory "error not input file" Build filed 2 errors
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.
codeblokuser:
Hello, i have the same problem, by what i've read i have tried everything but still not fixed??
this is the build log:
g++.exe -o bin\Release\yesier.exe obj\Release\main.o -s
g++.exe: error: obj\Release\main.o: No such file or directory
g++.exe: fatal error: no input files
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:
--- Quote from: codeblokuser on November 18, 2024, 09:53:13 pm ---Hello, i have the same problem, by what i've read i have tried everything but still not fixed??
this is the build log:
g++.exe -o bin\Release\yesier.exe obj\Release\main.o -s
g++.exe: error: obj\Release\main.o: No such file or directory
g++.exe: fatal error: no input files
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))
--- End quote ---
So, since you tried everything there is no way I can help you.
Good luck and Good bye.
Reading the FAQs might help; but, you already did that!
You already tried building the project in a folder you have read/write permissions.
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version