[Bug bootstrap/67373] Can't compile gcc snapshot for avr target with mingw
jj at stusta dot net
gcc-bugzilla@gcc.gnu.org
Thu Jan 14 11:25:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67373
Jonas Jelten <jj at stusta dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jj at stusta dot net
--- Comment #3 from Jonas Jelten <jj at stusta dot net> ---
I got the same problem:
avr-gcc -mmcu=atmega8 -O3 -T /usr/lib64/binutils/avr/2.25.1/ldscripts/avr4.xn
-Wl,-Map=blingbling.map blingbling.o -o blingbling.elf
/usr/libexec/gcc/avr/ld: cannot find crtatmega8.o: No such file or directory
/usr/libexec/gcc/avr/ld: cannot find -latmega8
collect2: error: ld returned 1 exit status
...
The -T option was required so gcc finds the linker script, without it, it
crashes even earlier:
avr-gcc -mmcu=atmega8 -O3 -Wl,-Map=blingbling.map blingbling.o -o
blingbling.elf
/usr/libexec/gcc/avr/ld: cannot open linker script file ldscripts/avr4.xn: No
such file or directory
collect2: error: ld returned 1 exit status
Any idea how to fix that?
More information about the Gcc-bugs
mailing list