public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/67373] New: Can't compile gcc snapshot for avr target with mingw
@ 2015-08-27 16:31 kontakt at michaelstather dot com
  2015-09-01 11:39 ` [Bug bootstrap/67373] " senthil_kumar.selvaraj at atmel dot com
  2015-09-04 14:55 ` kontakt at michaelstather dot com
  0 siblings, 2 replies; 3+ messages in thread
From: kontakt at michaelstather dot com @ 2015-08-27 16:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67373

            Bug ID: 67373
           Summary: Can't compile gcc snapshot for avr target with mingw
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kontakt at michaelstather dot com
  Target Milestone: ---

Created attachment 36259
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36259&action=edit
config.log

I tried compiling a snapshot from gcc6 for avr target with mingw.

I configured with:

mkdir install-avr
mkdir obj-avr
cd obj-avr
../configure --prefix=/c/gcc-6-20150823/install-avr --target=avr
--enable-languages=c,c++ --disable-nls --disable-libssp

configure succeded, then I ran make which failed with:
checking for suffix of object files... configure: error in
/c/gcc-6-20150823/obj-avr/avr/libgcc
configure: error: cannot compute suffix of object files: cannot compile

Attached is obj-avr/avr/config.log


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bootstrap/67373] Can't compile gcc snapshot for avr target with mingw
  2015-08-27 16:31 [Bug bootstrap/67373] New: Can't compile gcc snapshot for avr target with mingw kontakt at michaelstather dot com
@ 2015-09-01 11:39 ` senthil_kumar.selvaraj at atmel dot com
  2015-09-04 14:55 ` kontakt at michaelstather dot com
  1 sibling, 0 replies; 3+ messages in thread
From: senthil_kumar.selvaraj at atmel dot com @ 2015-09-01 11:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67373

Senthil Kumar Selvaraj <senthil_kumar.selvaraj at atmel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |senthil_kumar.selvaraj@atme
                   |                            |l.com

--- Comment #1 from Senthil Kumar Selvaraj <senthil_kumar.selvaraj at atmel dot com> ---
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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bootstrap/67373] Can't compile gcc snapshot for avr target with mingw
  2015-08-27 16:31 [Bug bootstrap/67373] New: Can't compile gcc snapshot for avr target with mingw kontakt at michaelstather dot com
  2015-09-01 11:39 ` [Bug bootstrap/67373] " senthil_kumar.selvaraj at atmel dot com
@ 2015-09-04 14:55 ` kontakt at michaelstather dot com
  1 sibling, 0 replies; 3+ messages in thread
From: kontakt at michaelstather dot com @ 2015-09-04 14:55 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-04 14:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-27 16:31 [Bug bootstrap/67373] New: Can't compile gcc snapshot for avr target with mingw kontakt at michaelstather dot com
2015-09-01 11:39 ` [Bug bootstrap/67373] " senthil_kumar.selvaraj at atmel dot com
2015-09-04 14:55 ` kontakt at michaelstather dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).