public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32
@ 2012-11-27 16:22 fanael4 at gmail dot com
  2012-11-27 16:26 ` [Bug lto/55493] " fanael4 at gmail dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: fanael4 at gmail dot com @ 2012-11-27 16:22 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

             Bug #: 55493
           Summary: [4.8 Regression] LTO always ICEs on i686-w64-mingw32
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: fanael4@gmail.com


Revision 193777 ICEs with 

    lto1.exe: internal compiler error: cannot read LTO decls from <the object
file>

when linking with -flto on i686-w64-mingw32. This happens for all inputs, even
for "int main() { return 0; }" or "" (that is, an empty file).

 >> gcc -v
Using built-in specs.
COLLECT_GCC=C:\devel\mingw\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/devel/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.8.0/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../gcc-4.8-svn/configure --disable-nls
--build=i686-w64-mingw32 --disable-multilib --enable-languages=c,c++,lto
--disable-win32-registry --enable-openmp --enable-libgomp --enable-graphite
--enable-cxx-flags='-fno-function-sections -fno-data-sections'
--enable-threads=posix --disable-symvers --enable-fully-dynamic-string
--disable-libstdcxx-pch --with-arch=i686 --with-tune=generic
--enable-checking=release --disable-werror --disable-sjlj-exceptions
--prefix=/c/builds/gcc/toolchain/out --with-gmp=/c/builds/gcc/prerequisites/out
--with-mpfr=/c/builds/gcc/prerequisites/out
--with-mpc=/c/builds/gcc/prerequisites/out
--with-isl=/c/builds/gcc/prerequisites/out
--with-cloog=/c/builds/gcc/prerequisites/out
--with-libiconv-prefix=/c/builds/gcc/prerequisites/out
--with-host-libstdcxx=-lstdc++ --enable-cloog-backend=isl
Thread model: posix
gcc version 4.8.0 20121124 (experimental) (GCC)


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-w64-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
@ 2012-11-27 16:26 ` fanael4 at gmail dot com
  2012-11-28 12:40 ` rguenth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: fanael4 at gmail dot com @ 2012-11-27 16:26 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

--- Comment #1 from fanael4 at gmail dot com 2012-11-27 16:25:58 UTC ---
Forgot to mention:

4.7.2 - works
4.8.0 r193777 - fails


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-w64-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
  2012-11-27 16:26 ` [Bug lto/55493] " fanael4 at gmail dot com
@ 2012-11-28 12:40 ` rguenth at gcc dot gnu.org
  2013-01-07 15:26 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-11-28 12:40 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-w64-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
  2012-11-27 16:26 ` [Bug lto/55493] " fanael4 at gmail dot com
  2012-11-28 12:40 ` rguenth at gcc dot gnu.org
@ 2013-01-07 15:26 ` rguenth at gcc dot gnu.org
  2013-01-09 14:19 ` [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32 fanael4 at gmail dot com
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-01-07 15:26 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-01-07
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-07 15:25:22 UTC ---
Are you sure that you do not somehow pull in LTO objects from older releases?
Needs someone with access to $target to debug.


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
                   ` (2 preceding siblings ...)
  2013-01-07 15:26 ` rguenth at gcc dot gnu.org
@ 2013-01-09 14:19 ` fanael4 at gmail dot com
  2013-01-15 17:38 ` ktietz at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: fanael4 at gmail dot com @ 2013-01-09 14:19 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

--- Comment #3 from Fanael <fanael4 at gmail dot com> 2013-01-09 14:19:09 UTC ---
(In reply to comment #2)
> Are you sure that you do not somehow pull in LTO objects from older releases?

Yes, happens even with -nostdlib, even on builds where I'm absolutely sure
there's no way an old LTO object could sneak in.


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
                   ` (3 preceding siblings ...)
  2013-01-09 14:19 ` [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32 fanael4 at gmail dot com
@ 2013-01-15 17:38 ` ktietz at gcc dot gnu.org
  2013-01-15 18:33 ` ktietz at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-15 17:38 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu.org

--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-01-15 17:38:31 UTC ---
(In reply to comment #3)
> (In reply to comment #2)
> > Are you sure that you do not somehow pull in LTO objects from older releases?
> 
> Yes, happens even with -nostdlib, even on builds where I'm absolutely sure
> there's no way an old LTO object could sneak in.

I can't reproduce that.  btw how are you doing linker-tests without specifying
object-code and libraries?
Nevertheless I assume that runtime is build with older-version of gcc.  It is a
bit sad that LTO doesn't tell that version is outdated.

I've tested it with gcc version from 15th of January 2012 and it works
flawless.  But I have rebuild my runtime with new version.  That is recommented
to do.

I would suggest to close that bug as WORKSFORME


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
                   ` (4 preceding siblings ...)
  2013-01-15 17:38 ` ktietz at gcc dot gnu.org
@ 2013-01-15 18:33 ` ktietz at gcc dot gnu.org
  2013-01-16 18:15 ` fanael4 at gmail dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-15 18:33 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-01-15 18:32:45 UTC ---
After retesting it, I close it as works for me.


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
                   ` (5 preceding siblings ...)
  2013-01-15 18:33 ` ktietz at gcc dot gnu.org
@ 2013-01-16 18:15 ` fanael4 at gmail dot com
  2013-01-18 18:46 ` fanael4 at gmail dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: fanael4 at gmail dot com @ 2013-01-16 18:15 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

--- Comment #6 from Fanael <fanael4 at gmail dot com> 2013-01-16 18:15:25 UTC ---
Oh right. Works for me too. I should've tested it more thoroughly first.

Sorry for bothering you guys.


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
                   ` (6 preceding siblings ...)
  2013-01-16 18:15 ` fanael4 at gmail dot com
@ 2013-01-18 18:46 ` fanael4 at gmail dot com
  2013-01-20 18:34 ` vanboxem.ruben at gmail dot com
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: fanael4 at gmail dot com @ 2013-01-18 18:46 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

Fanael <fanael4 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |

--- Comment #7 from Fanael <fanael4 at gmail dot com> 2013-01-18 18:45:50 UTC ---
Reopening.

The build that worked for me was a cross compiler on x86_64-unknown-linux-gnu
host. Native compiler on i686-mingw32 host still fails when trying to use LTO.
So either I'm doing something terribly wrong (I think I'm not, I built
everything from scratch with the very same compiler version this time), or
there *is* a bug.


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
                   ` (7 preceding siblings ...)
  2013-01-18 18:46 ` fanael4 at gmail dot com
@ 2013-01-20 18:34 ` vanboxem.ruben at gmail dot com
  2013-02-08 14:58 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: vanboxem.ruben at gmail dot com @ 2013-01-20 18:34 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

Ruben Van Boxem <vanboxem.ruben at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vanboxem.ruben at gmail dot
                   |                            |com

--- Comment #8 from Ruben Van Boxem <vanboxem.ruben at gmail dot com> 2013-01-20 18:34:11 UTC ---
I can confirm that this bug is present for GCC 4.8 dated 20121221, which is
available here:
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.8-unstable/i686-w64-mingw32-gcc-4.8-unstable-win32_rubenvb.7z/download

I get:

lto1.exe: internal compiler error: cannot read LTO decls from
R:\temp\ccgzHybZ.o
Please submit a full bug report,
with preprocessed source if appropriate.
See <mingw-w64-public@lists.sourceforge.net> for instructions.
lto-wrapper: g++ returned 1 exit status
m:/development/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe:
lto-wrapper failed
collect2.exe: error: ld returned 1 exit status


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
                   ` (8 preceding siblings ...)
  2013-01-20 18:34 ` vanboxem.ruben at gmail dot com
@ 2013-02-08 14:58 ` rguenth at gcc dot gnu.org
  2013-02-12 15:28 ` ktietz at gcc dot gnu.org
  2013-02-27 16:40 ` [Bug lto/55493] [4.8 Regression] LTO always ICEs on native i686-mingw32 fanael4 at gmail dot com
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-08 14:58 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |WAITING

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-08 14:58:02 UTC ---
Somebody needs to debug this.


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
                   ` (9 preceding siblings ...)
  2013-02-08 14:58 ` rguenth at gcc dot gnu.org
@ 2013-02-12 15:28 ` ktietz at gcc dot gnu.org
  2013-02-27 16:40 ` [Bug lto/55493] [4.8 Regression] LTO always ICEs on native i686-mingw32 fanael4 at gmail dot com
  11 siblings, 0 replies; 13+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-02-12 15:28 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

--- Comment #10 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-02-12 15:27:45 UTC ---
Well, I re-tried to reproduce this issue with current 4.8 gcc version (native).
As before, I can't reproduce that issue.  Anyway I don't get what report was
actual doing differently as I did, so I will keep this bug open.
Nevertheless we had recently some changes to lto, which are affecting mingw
targets, so it might be worth that report are retrying to reproduce.

Please make sure that you aren't mixing objects with LTO-infomration of
different versions.


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

* [Bug lto/55493] [4.8 Regression] LTO always ICEs on native  i686-mingw32
  2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
                   ` (10 preceding siblings ...)
  2013-02-12 15:28 ` ktietz at gcc dot gnu.org
@ 2013-02-27 16:40 ` fanael4 at gmail dot com
  11 siblings, 0 replies; 13+ messages in thread
From: fanael4 at gmail dot com @ 2013-02-27 16:40 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55493

Fanael <fanael4 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #11 from Fanael <fanael4 at gmail dot com> 2013-02-27 16:39:56 UTC ---
Revision 196313 appears to work.


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

end of thread, other threads:[~2013-02-27 16:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-27 16:22 [Bug lto/55493] New: [4.8 Regression] LTO always ICEs on i686-w64-mingw32 fanael4 at gmail dot com
2012-11-27 16:26 ` [Bug lto/55493] " fanael4 at gmail dot com
2012-11-28 12:40 ` rguenth at gcc dot gnu.org
2013-01-07 15:26 ` rguenth at gcc dot gnu.org
2013-01-09 14:19 ` [Bug lto/55493] [4.8 Regression] LTO always ICEs on i686-mingw32 fanael4 at gmail dot com
2013-01-15 17:38 ` ktietz at gcc dot gnu.org
2013-01-15 18:33 ` ktietz at gcc dot gnu.org
2013-01-16 18:15 ` fanael4 at gmail dot com
2013-01-18 18:46 ` fanael4 at gmail dot com
2013-01-20 18:34 ` vanboxem.ruben at gmail dot com
2013-02-08 14:58 ` rguenth at gcc dot gnu.org
2013-02-12 15:28 ` ktietz at gcc dot gnu.org
2013-02-27 16:40 ` [Bug lto/55493] [4.8 Regression] LTO always ICEs on native i686-mingw32 fanael4 at gmail 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).