public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file
@ 2011-10-04 18:34 i.nixman at gmail dot com
  2011-10-04 18:35 ` [Bug lto/50616] " i.nixman at gmail dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: i.nixman at gmail dot com @ 2011-10-04 18:34 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50616
           Summary: lto1.exe: internal compiler error: invalid resolution
                    in the resolution file
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: i.nixman@gmail.com


I compile the files attached with this command-line: "g++ ltotest.cpp int.cpp
-oltotest -s -O3 -flto"
and get the following error: "lto1.exe: internal compiler error: invalid
resolution in the resolution file"

configured with:
g++ -v Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/i686-pc-mingw32/4.7.0/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with: ../../mingw-src/gcc-4.7-20111001/configure \
--host=i686-pc-mingw32 \
--build=i686-pc-mingw32 \
--target=i686-pc-mingw32 \
--prefix=/mingw-sjlj-x86 \
--with-arch=i686 \
--with-tune=generic \
--enable-languages=c,c++,lto,objc,obj-c++,fortran \
--with-host-libstdcxx=-lstdc++ \
--disable-shared \
--enable-static \
--enable-cxx-flags='-fno-function-sections -fno-data-sections' \
--enable-libstdcxx-time=yes \
--enable-libgomp \
--enable-lto \
--enable-graphite \
--enable-cloog-backend=isl \
--enable-checking=release \
--enable-fully-dynamic-string \
--enable-threads=posix \
--disable-libstdcxx-pch \
--enable-libstdcxx-debug \
--enable-sjlj-exceptions \
--disable-debug \
--disable-bootstrap \
--disable-multilib \
--disable-rpath \
--disable-win32-registry \
--disable-nls \
--disable-werror \
--disable-symvers \
--with-gmp=/mingw-libs \
--with-mpfr=/mingw-libs \
--with-mpc=/mingw-libs \
--with-ppl=/mingw-libs \
--with-cloog=/mingw-libs \
--with-libiconv-prefix=/mingw-libs \
Thread model: posix
gcc version 4.7.0 20111001 (experimental)


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
@ 2011-10-04 18:35 ` i.nixman at gmail dot com
  2011-10-04 18:38 ` i.nixman at gmail dot com
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: i.nixman at gmail dot com @ 2011-10-04 18:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from niXman <i.nixman at gmail dot com> 2011-10-04 18:35:30 UTC ---
Created attachment 25416
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25416
LTO test sources


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
  2011-10-04 18:35 ` [Bug lto/50616] " i.nixman at gmail dot com
@ 2011-10-04 18:38 ` i.nixman at gmail dot com
  2012-01-02  4:10 ` pinskia at gcc dot gnu.org
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: i.nixman at gmail dot com @ 2011-10-04 18:38 UTC (permalink / raw)
  To: gcc-bugs

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

niXman <i.nixman at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
  2011-10-04 18:35 ` [Bug lto/50616] " i.nixman at gmail dot com
  2011-10-04 18:38 ` i.nixman at gmail dot com
@ 2012-01-02  4:10 ` pinskia at gcc dot gnu.org
  2012-01-02 11:18 ` [Bug target/50616] " rguenth at gcc dot gnu.org
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-02  4:10 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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

* [Bug target/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (2 preceding siblings ...)
  2012-01-02  4:10 ` pinskia at gcc dot gnu.org
@ 2012-01-02 11:18 ` rguenth at gcc dot gnu.org
  2012-01-03  9:54 ` i.nixman at gmail dot com
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-02 11:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-01-02
          Component|lto                         |target
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-02 11:17:47 UTC ---
Please attach the resolution file (you can obtain it by adding -v -save-temps
to the command-line, the file is the one mentioned as argument to the
-fresolution= command-line argument to lto1.exe)

What binutils version are you using?  I suspect a mismatch between
binutils/gcc here.


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

* [Bug target/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (3 preceding siblings ...)
  2012-01-02 11:18 ` [Bug target/50616] " rguenth at gcc dot gnu.org
@ 2012-01-03  9:54 ` i.nixman at gmail dot com
  2012-01-03 10:32 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: i.nixman at gmail dot com @ 2012-01-03  9:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from niXman <i.nixman at gmail dot com> 2012-01-03 09:53:59 UTC ---
Created attachment 26229
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26229
sources + temp files + logs


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

* [Bug target/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (4 preceding siblings ...)
  2012-01-03  9:54 ` i.nixman at gmail dot com
@ 2012-01-03 10:32 ` rguenth at gcc dot gnu.org
  2012-01-08 15:15 ` i.nixman at gmail dot com
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-03 10:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-03 10:31:53 UTC ---
I think the (null)'s are odd at least.

2
ltotest.o 15
1068 a2f6b3c8 (null) PREVAILING_DEF
1010 a2f6b3c8 (null) RESOLVED_EXEC
1082 a2f6b3c8 (null) RESOLVED_EXEC
1086 a2f6b3c8 (null) RESOLVED_EXEC
1093 a2f6b3c8 (null) RESOLVED_EXEC
...

First of all, the symbol name should come 4th, not 3rd - the resolution
belongs there.

This means you are very likely using a bogus lto-plugin shared object that
does not match the GCC version you are using.  Though I do not remeber
any version that dumped things in the order I see in your attached file.

So, please check which file is specified as -plugin argument to the linker
(it should be visible in the -v dump) and remove that and/or replace it
with a current version.

Hmm.  We use

      fprintf (f, "%u %llx %s %s\n",
               (unsigned int) slot, symtab->aux[j].id,
               lto_resolution_str[resolution],
               symtab->syms[j].name);

maybe that falls foul of some special Window-ism (aka unportable %llx?).
Kai?


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

* [Bug target/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (5 preceding siblings ...)
  2012-01-03 10:32 ` rguenth at gcc dot gnu.org
@ 2012-01-08 15:15 ` i.nixman at gmail dot com
  2012-01-16  1:53 ` i.nixman at gmail dot com
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: i.nixman at gmail dot com @ 2012-01-08 15:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from niXman <i.nixman at gmail dot com> 2012-01-08 15:15:19 UTC ---
I don't have other GCC versions or lto-pugins on my computer.

Here is a fragment of code from gcc-4.6.2-release:
      fprintf (f, "%u %x %s %s\n", (unsigned int) slot, symtab->aux[j].id,
           lto_resolution_str[resolution], 
           symtab->syms[j].name);

This one is the same fragment from gcc-4.6.3-branch:
      fprintf (f, "%u %x %s %s\n", (unsigned int) slot, symtab->aux[j].id,
               lto_resolution_str[resolution], 
               symtab->syms[j].name);

And this one is the same fragment from gcc-trunk:
      fprintf (f, "%u %llx %s %s\n",
               (unsigned int) slot, symtab->aux[j].id,
               lto_resolution_str[resolution], 
               symtab->syms[j].name);


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

* [Bug target/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (6 preceding siblings ...)
  2012-01-08 15:15 ` i.nixman at gmail dot com
@ 2012-01-16  1:53 ` i.nixman at gmail dot com
  2012-01-16  4:45 ` [Bug lto/50616] " pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: i.nixman at gmail dot com @ 2012-01-16  1:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from niXman <i.nixman at gmail dot com> 2012-01-16 01:43:56 UTC ---
Replacing "%llx" to "%I64x" solves the problem.

http://msdn.microsoft.com/en-us/library/3b2e7499(v=vs.80).aspx

Thanks, niXman.


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (7 preceding siblings ...)
  2012-01-16  1:53 ` i.nixman at gmail dot com
@ 2012-01-16  4:45 ` pinskia at gcc dot gnu.org
  2012-02-19 14:43 ` fbi.sr at gmx dot de
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-16  4:45 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|i686-pc-mingw32             |
             Status|WAITING                     |NEW
          Component|target                      |lto
              Build|i686-pc-mingw32             |

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-16 02:52:29 UTC ---
This is a host side issue really.  Anyways we should use uin64_t with PRIx64 so
it is more portable.


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (8 preceding siblings ...)
  2012-01-16  4:45 ` [Bug lto/50616] " pinskia at gcc dot gnu.org
@ 2012-02-19 14:43 ` fbi.sr at gmx dot de
  2012-02-19 16:24 ` i.nixman at gmail dot com
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: fbi.sr at gmx dot de @ 2012-02-19 14:43 UTC (permalink / raw)
  To: gcc-bugs

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

Stefan Reichardt <fbi.sr at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fbi.sr at gmx dot de

--- Comment #8 from Stefan Reichardt <fbi.sr at gmx dot de> 2012-02-19 14:29:16 UTC ---
Could you please tell which file you are speaking of, where to apply your fix
from comment #6?

This bug does not occur on my system. i compiled gcc-4.7.0-20120217 on mingw32
on Windows 7 - 64bit for target=avr.
But my compiler will generate the bug when run on 32-bit Windows.

If i apply your hack from comment #6, will my compiler-lto then be usable on
32-bit but not on 64bit?


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (9 preceding siblings ...)
  2012-02-19 14:43 ` fbi.sr at gmx dot de
@ 2012-02-19 16:24 ` i.nixman at gmail dot com
  2012-02-19 16:54 ` ktietz at gcc dot gnu.org
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: i.nixman at gmail dot com @ 2012-02-19 16:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from niXman <i.nixman at gmail dot com> 2012-02-19 16:22:52 UTC ---
lto-plugin/lto-plugin.c

http://gcc.gnu.org/viewcvs/trunk/lto-plugin/lto-plugin.c?view=markup
line 363.


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (10 preceding siblings ...)
  2012-02-19 16:24 ` i.nixman at gmail dot com
@ 2012-02-19 16:54 ` ktietz at gcc dot gnu.org
  2012-02-22 10:21 ` ktietz at gcc dot gnu.org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-19 16:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-19 16:31:32 UTC ---
Yes, not all msvcrt versions are supporting %ll width modifier.  Modern
versions of it (as 64-bit versions) are supporting it, but older (and still
pretty common on 32-bit OSes) don't.  Therefore it is for native Windows apps
more compatible to use here instead %I64.
As Andrew mentioned we might should use here instead PRIx64 for output of
64-bit integer-scalars.
Any patch in this direction would be welcome for me.


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (11 preceding siblings ...)
  2012-02-19 16:54 ` ktietz at gcc dot gnu.org
@ 2012-02-22 10:21 ` ktietz at gcc dot gnu.org
  2012-02-22 10:29 ` ktietz at gcc dot gnu.org
  2012-04-28 21:19 ` gjl at gcc dot gnu.org
  14 siblings, 0 replies; 16+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-22 10:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-22 10:19:27 UTC ---
Author: ktietz
Date: Wed Feb 22 10:19:22 2012
New Revision: 184462

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184462
Log:
        PR lto/50616
        * lto-plugin.c (PRI_LL): New macro.
        (dump_symtab): Use PRI_LL instead of ll in print.
        (process_symtab): Use PRI_LL instead of ll in scan.


Modified:
    trunk/lto-plugin/ChangeLog
    trunk/lto-plugin/lto-plugin.c


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (12 preceding siblings ...)
  2012-02-22 10:21 ` ktietz at gcc dot gnu.org
@ 2012-02-22 10:29 ` ktietz at gcc dot gnu.org
  2012-04-28 21:19 ` gjl at gcc dot gnu.org
  14 siblings, 0 replies; 16+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-22 10:29 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #12 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-22 10:21:18 UTC ---
Fixed.


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

* [Bug lto/50616] lto1.exe: internal compiler error: invalid resolution in the resolution file
  2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
                   ` (13 preceding siblings ...)
  2012-02-22 10:29 ` ktietz at gcc dot gnu.org
@ 2012-04-28 21:19 ` gjl at gcc dot gnu.org
  14 siblings, 0 replies; 16+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-04-28 21:19 UTC (permalink / raw)
  To: gcc-bugs

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0


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

end of thread, other threads:[~2012-04-28 21:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-04 18:34 [Bug lto/50616] New: lto1.exe: internal compiler error: invalid resolution in the resolution file i.nixman at gmail dot com
2011-10-04 18:35 ` [Bug lto/50616] " i.nixman at gmail dot com
2011-10-04 18:38 ` i.nixman at gmail dot com
2012-01-02  4:10 ` pinskia at gcc dot gnu.org
2012-01-02 11:18 ` [Bug target/50616] " rguenth at gcc dot gnu.org
2012-01-03  9:54 ` i.nixman at gmail dot com
2012-01-03 10:32 ` rguenth at gcc dot gnu.org
2012-01-08 15:15 ` i.nixman at gmail dot com
2012-01-16  1:53 ` i.nixman at gmail dot com
2012-01-16  4:45 ` [Bug lto/50616] " pinskia at gcc dot gnu.org
2012-02-19 14:43 ` fbi.sr at gmx dot de
2012-02-19 16:24 ` i.nixman at gmail dot com
2012-02-19 16:54 ` ktietz at gcc dot gnu.org
2012-02-22 10:21 ` ktietz at gcc dot gnu.org
2012-02-22 10:29 ` ktietz at gcc dot gnu.org
2012-04-28 21:19 ` gjl at gcc dot gnu.org

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).