public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
       [not found] <4E6DCA8B.9090309@gmail.com>
@ 2011-09-12  9:01 ` PcX
  2011-09-12  9:02   ` PcX
  2011-09-12  9:42   ` Jonathan Wakely
  0 siblings, 2 replies; 3+ messages in thread
From: PcX @ 2011-09-12  9:01 UTC (permalink / raw)
  To: gcc



Hi, all

     I report it to gcc bugzilla :http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351
     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 likePR45475  <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475>, butPR45475  <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475>  don't use LTO.

Thanks.

-- 
Best Regards,
PcX

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

* Re: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
  2011-09-12  9:01 ` An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target PcX
@ 2011-09-12  9:02   ` PcX
  2011-09-12  9:42   ` Jonathan Wakely
  1 sibling, 0 replies; 3+ messages in thread
From: PcX @ 2011-09-12  9:02 UTC (permalink / raw)
  To: gcc

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




-- 
Best Regards,
PcX

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

* Re: An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target
  2011-09-12  9:01 ` An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target PcX
  2011-09-12  9:02   ` PcX
@ 2011-09-12  9:42   ` Jonathan Wakely
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Wakely @ 2011-09-12  9:42 UTC (permalink / raw)
  To: PcX; +Cc: gcc

On 12 September 2011 10:05, PcX wrote:
>
>
> Hi, all
>
>    I report it to gcc bugzilla
> :http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351

Then there's no need to also email this list.

Discussion of the bug should take place in Bugzilla, not here.

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

end of thread, other threads:[~2011-09-12  9:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4E6DCA8B.9090309@gmail.com>
2011-09-12  9:01 ` An internal compiler error when building gcc4.6 using "-flto -fuse-linker-plugin" on Win7 mingw64 target PcX
2011-09-12  9:02   ` PcX
2011-09-12  9:42   ` Jonathan Wakely

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