public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
@ 2011-09-11 10:31 xunxun1982 at gmail dot com
2011-09-11 14:54 ` [Bug lto/50351] " xunxun1982 at gmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: xunxun1982 at gmail dot com @ 2011-09-11 10:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
Bug #: 50351
Summary: An internal compiler error when building gcc4.6 using
"-flto -fuse-linker-plugin" on Win7 mingw64 target
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: xunxun1982@gmail.com
Host: *-*-mingw*
Target: *-*-mingw*
Build: *-*-mingw*
Hi, all
When I use mingw64 gcc build gcc4.6.2 20110909 using "-flto
-fuse-linker-plugin", an internal compiler error came out:
----------------------------------------------------------------------------------------------------------
i686-w64-mingw32-gcc -pipe -g0 -O2 -fomit-frame-pointer -finline-functions
-minline-all-stringops -flto -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -Wl,-O1 -Wl,--as-needed
-s -Wl,--large-address-aware -flto -fuse-linker-plugin -o cc1.exe c-lang.o
c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o
c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o
c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o
c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o
msformat-c.o \
cc1-checksum.o main.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a /mingw/lib/libiconv.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lstdc++ -lcloog-isl
-lisl -lppl_c -lppl -lgmpxx -lmpc -lmpfr -lgmp -lstdc++ -lz
In file included from :1011:0:
source/isl/constraints.c: In function
'cloog_constraint_set_defining_inequalities':
isl_constraint.c:170:15: warning: 'l' may be used uninitialized in this
function [-Wuninitialized]
source/isl/constraints.c:154:25: note: 'l' was declared here
isl_constraint.c:166:9: warning: 'u' may be used uninitialized in this function
[-Wuninitialized]
source/isl/constraints.c:153:25: note: 'u' was declared here
In file included from ../.././gcc/c-decl.c:6139:0,
from ../.././gcc/c-decl.c:489,
from :5284:
../.././libcpp/lex.c: In function 'search_line_sse2':
../.././libcpp/lex.c:370:15: internal compiler error: in convert_move, at
expr.c:326
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: e:\MyPack\MinGW\bin\i686-w64-mingw32-gcc.exe returned 1 exit
status
e:/mypack/mingw/bin/../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32/bin/ld.exe:
lto-wrapper failed
collect2: ld returned 1 exit status
make[2]: *** [cc1.exe] Error 1
make[2]: Leaving directory `/e/new/gcc/gcc4.6/build/host-i686-w64-mingw32/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/e/new/gcc/gcc4.6/build'
make: *** [all] Error 2
-------------------------------------------------------------------------------------------------------------------------------------------
my gcc is configured as:
-------------------------------------------------------------------------------------------------------------------------------------------
Target: i686-w64-mingw32
Configured with: ./configure --prefix=/mingw --host=i686-w64-mingw32
--build=i686-w64-mingw32 --target=i686-w64-mingw32 --with-lto-plugin
--with-host-libstdcxx=-lstdc++ --disable-bootstrap --disable-werror
--with-arch=i686 --with-tune=generic --enable-languages=c,c++,fortran
--enable-libgomp --enable-threads=posix --enable-lto --with-system-zlib
--enable-libstdcxx-debug --enable-version-specific-runtime-libs
--enable-fully-dynamic-string --disable-sjlj-exceptions --with-dwarf2
--disable-symvers --enable-checking=release --enable-cloog-backend=isl
--enable-static --disable-shared --enable-cxx-flags='-fno-function-sections
-fno-data-sections' --enable-libquadmath-support --enable-libquadmath
--disable-multilib --disable-nls --disable-win32-registry
-------------------------------------------------------------------------------------------------------------------------------------------
my binutils edition is :
2.21.53.20110910
Is this the LTO bug in gcc4.6 or ld bug?
The error seems like PR45475, but PR45475 don't use LTO.
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/50351] An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
2011-09-11 10:31 [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target xunxun1982 at gmail dot com
@ 2011-09-11 14:54 ` xunxun1982 at gmail dot com
2011-09-12 12:56 ` xunxun1982 at gmail dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: xunxun1982 at gmail dot com @ 2011-09-11 14:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
PcX <xunxun1982 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.6.1, 4.7.0
--- Comment #1 from PcX <xunxun1982 at gmail dot com> 2011-09-11 14:50:36 UTC ---
I try to use gcc version 4.7.0 20110911 (experimental) to build gcc trunk, and
it also has the problem, but shows a different error:
----------------------------------------------------------------------------
i686-w64-mingw32-gcc -pipe -g0 -O2 -fomit-frame-pointer -finline-functions
-minline-all-stringops -flto -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -Wl,-O1 -Wl,--as-needed
-s -Wl,--large-address-aware -flto -fuse-linker-plugin -o cc1.exe c-lang.o
c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o
c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o
c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o
c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o
msformat-c.o default-c.o \
cc1-checksum.o main.o libbackend.a libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
-lstdc++ -lcloog-isl -lisl -lppl_c -lppl -lgmpxx -lmpc -lmpfr -lgmp -lstdc++
-lz
lto1.exe: internal compiler error: in lto_reissue_options, at lto-opts.c:414
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: e:\MyPack\MinGW\bin\i686-w64-mingw32-gcc.exe returned 1 exit
status
e:/mypack/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/bin/ld.exe:
lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
make[2]: *** [cc1.exe] Error 1
make[2]: Leaving directory `/e/new/gcc/gcc4.6/build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/e/new/gcc/gcc4.6/build'
make: *** [all] Error 2
----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/50351] An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
2011-09-11 10:31 [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target xunxun1982 at gmail dot com
2011-09-11 14:54 ` [Bug lto/50351] " xunxun1982 at gmail dot com
@ 2011-09-12 12:56 ` xunxun1982 at gmail dot com
2011-09-12 13:01 ` xunxun1982 at gmail dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: xunxun1982 at gmail dot com @ 2011-09-12 12:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
--- Comment #2 from PcX <xunxun1982 at gmail dot com> 2011-09-12 12:52:11 UTC ---
Created attachment 25247
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25247
Eric Botcazou's testcase
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/50351] An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
2011-09-11 10:31 [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target xunxun1982 at gmail dot com
2011-09-11 14:54 ` [Bug lto/50351] " xunxun1982 at gmail dot com
2011-09-12 12:56 ` xunxun1982 at gmail dot com
@ 2011-09-12 13:01 ` xunxun1982 at gmail dot com
2011-09-12 13:01 ` xunxun1982 at gmail dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: xunxun1982 at gmail dot com @ 2011-09-12 13:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
--- Comment #3 from PcX <xunxun1982 at gmail dot com> 2011-09-12 12:55:55 UTC ---
Using Eric Botcazou's test case, it also has the problem.
gcc lex.c
has no problem
gcc -flto -fuse-linker-plugin lex.c
it shows
In file included from lex.c:15:0,
from :0:
lex.c: In function 'foo':
lex.c:16:15: internal compiler error: in convert_move, at expr.c:330
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: gcc returned 1 exit status
e:/mypack/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.0/../../../../i686-w64-mingw32/bin/ld.exe:
lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
gcc -flto -fuse-linker-plugin lex.c -msse2
has no problem.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/50351] An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
2011-09-11 10:31 [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target xunxun1982 at gmail dot com
` (2 preceding siblings ...)
2011-09-12 13:01 ` xunxun1982 at gmail dot com
@ 2011-09-12 13:01 ` xunxun1982 at gmail dot com
2011-09-12 13:28 ` xunxun1982 at gmail dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: xunxun1982 at gmail dot com @ 2011-09-12 13:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
--- Comment #4 from PcX <xunxun1982 at gmail dot com> 2011-09-12 13:00:37 UTC ---
So I think that will affect all x86 target LTO build.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/50351] An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
2011-09-11 10:31 [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target xunxun1982 at gmail dot com
` (3 preceding siblings ...)
2011-09-12 13:01 ` xunxun1982 at gmail dot com
@ 2011-09-12 13:28 ` xunxun1982 at gmail dot com
2013-12-06 0:13 ` ktietz at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: xunxun1982 at gmail dot com @ 2011-09-12 13:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
PcX <xunxun1982 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|*-*-mingw* |*-*-mingw32
Host|*-*-mingw* |*-*-mingw32
Build|*-*-mingw* |*-*-mingw32
--- Comment #5 from PcX <xunxun1982 at gmail dot com> 2011-09-12 13:01:09 UTC ---
So I think that will affect all x86 target LTO build.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/50351] An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
2011-09-11 10:31 [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target xunxun1982 at gmail dot com
` (4 preceding siblings ...)
2011-09-12 13:28 ` xunxun1982 at gmail dot com
@ 2013-12-06 0:13 ` ktietz at gcc dot gnu.org
2013-12-06 8:52 ` xunxun1982 at gmail dot com
2015-02-10 17:07 ` ktietz at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-12-06 0:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2013-12-06
CC| |ktietz at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> ---
I rechecked reported issue with current trunk-version and didn't saw this ICE
anymore. Also with newer 4.7 version I can't reproduce issue.
Could you please retest and tell me if issue is still reproducable for you?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/50351] An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
2011-09-11 10:31 [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target xunxun1982 at gmail dot com
` (5 preceding siblings ...)
2013-12-06 0:13 ` ktietz at gcc dot gnu.org
@ 2013-12-06 8:52 ` xunxun1982 at gmail dot com
2015-02-10 17:07 ` ktietz at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: xunxun1982 at gmail dot com @ 2013-12-06 8:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
--- Comment #7 from xunxun <xunxun1982 at gmail dot com> ---
(In reply to Kai Tietz from comment #6)
> I rechecked reported issue with current trunk-version and didn't saw this
> ICE anymore. Also with newer 4.7 version I can't reproduce issue.
>
> Could you please retest and tell me if issue is still reproducable for you?
Thanks for your test.
I will test a few days, later.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug lto/50351] An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
2011-09-11 10:31 [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target xunxun1982 at gmail dot com
` (6 preceding siblings ...)
2013-12-06 8:52 ` xunxun1982 at gmail dot com
@ 2015-02-10 17:07 ` ktietz at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: ktietz at gcc dot gnu.org @ 2015-02-10 17:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #8 from Kai Tietz <ktietz at gcc dot gnu.org> ---
No reply. Seems to be solved. So I close this bug
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-02-10 17:07 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-11 10:31 [Bug lto/50351] New: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target xunxun1982 at gmail dot com
2011-09-11 14:54 ` [Bug lto/50351] " xunxun1982 at gmail dot com
2011-09-12 12:56 ` xunxun1982 at gmail dot com
2011-09-12 13:01 ` xunxun1982 at gmail dot com
2011-09-12 13:01 ` xunxun1982 at gmail dot com
2011-09-12 13:28 ` xunxun1982 at gmail dot com
2013-12-06 0:13 ` ktietz at gcc dot gnu.org
2013-12-06 8:52 ` xunxun1982 at gmail dot com
2015-02-10 17:07 ` ktietz 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).