[Bug bootstrap/67373] Can't compile gcc snapshot for avr target with mingw

2016-01-23 Thread senthil_kumar.selvaraj at atmel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67373

--- Comment #5 from Senthil Kumar Selvaraj  ---
The last released version of avr-libc (1.8.1) doesn't properly work with the
spec file based device support approach introduced in 5.x. As the GCC 5 release
notes (https://gcc.gnu.org/gcc-5/changes.html) describes

The AVR port uses a new scheme to describe supported devices: For each
supported device the compiler provides a device-specific spec file. If the
compiler is used together with AVR-LibC, this requires at least GCC 5.2 and a
version of AVR-LibC which implements feature #44574.

Can you try building with the trunk version of avr-libc? That should work fine.

[Bug bootstrap/67373] Can't compile gcc snapshot for avr target with mingw

2016-01-14 Thread jj at stusta dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67373

Jonas Jelten  changed:

   What|Removed |Added

 CC||jj at stusta dot net

--- Comment #3 from Jonas Jelten  ---
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?

[Bug bootstrap/67373] Can't compile gcc snapshot for avr target with mingw

2016-01-14 Thread jj at stusta dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67373

--- Comment #4 from Jonas Jelten  ---
It should be noted that my issue occurs on Gentoo with gcc 5.3.0, avr-libc
1.8.1 and avr binutils 2.25.1-r1.

[Bug bootstrap/67373] Can't compile gcc snapshot for avr target with mingw

2015-09-04 Thread kontakt at michaelstather dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67373

--- Comment #2 from kontakt at michaelstather dot com ---
Thank you very much, compiling works now.
But, I get linker errors. With gcc4.9.2 it works fine, but both with 5.2 and 6
I get e.g.:

C:\AVRTools4Windows\share\doc\avr-libc-1.8.1\examples\demo>make
avr-gcc -g -Wall -O2 -mmcu=atmega8-c -o demo.o demo.c
avr-gcc -g -Wall -O2 -mmcu=atmega8  -Wl,-Map,demo.map -o demo.elf demo.o
c:/avrtools4windows/bin/../lib/gcc/avr/6.0.0/../../../../avr/bin/ld.exe: cannot
find crtatmega8.o: No such file or directory
c:/avrtools4windows/bin/../lib/gcc/avr/6.0.0/../../../../avr/bin/ld.exe: cannot
find -latmega8
collect2.exe: error: ld returned 1 exit status
Makefile:75: recipe for target 'demo.elf' failed
make: *** [demo.elf] Error 1

The file crtatmega8.o doesn't seem to exist. Other target mcus give similar
errors.


[Bug bootstrap/67373] Can't compile gcc snapshot for avr target with mingw

2015-09-01 Thread senthil_kumar.selvaraj at atmel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67373

Senthil Kumar Selvaraj  changed:

   What|Removed |Added

 CC||senthil_kumar.selvaraj@atme
   ||l.com

--- Comment #1 from Senthil Kumar Selvaraj  ---
Looks like the build couldn't find an avr assembler that runs on the build
machine. Building binutils with host=mingw creates an assembler that can only
run on Windows.

Can you try building binutils without setting host=mingw, add that to the PATH
and then try building again?