public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/49922] New: I try to build libgmp using PGO and lto, but the test will result in "internal compiler error"
@ 2011-07-31 10:30 xunxun1982 at gmail dot com
  2011-08-03 14:00 ` [Bug lto/49922] " xunxun1982 at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: xunxun1982 at gmail dot com @ 2011-07-31 10:30 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: I try to build libgmp using PGO and lto, but the test
                    will result in "internal compiler error"
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: xunxun1982@gmail.com
              Host: *-*-mingw*
            Target: *-*-mingw*
             Build: *-*-mingw*


My gcc4.6.1 configure with :
./configure --prefix=/mingw --host=i686-pc-mingw32 --build=i686-pc-mingw32
--target=i686-pc-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=win32
--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-plugins --enable-cloog-backend=isl --enable-static
--disable-shared \
    --disable-nls --disable-win32-registry

My binutils version is : 2.21.53.20110728

I try to build libgmp using PGO and lto as follows:

1) CPPFLAGS=-fexceptions ./configure --prefix=/mingw32 --disable-shared
--enable-static --enable-cxx --enable-fat 
2) make CFLAGS="-Wno-error=coverage-mismatch
-fprofile-generate=e:/t/temp/libgmp -flto -pipe -O3" \
        CXXFLAGS="-Wno-error=coverage-mismatch
-fprofile-generate=e:/t/temp/libgmp -flto -pipe -O3" \
        LDFLAGS="-fprofile-generate=e:/t/temp/libgmp -flto -fuse-linker-plugin"
3) then
   make CFLAGS="-Wno-error=coverage-mismatch
-fprofile-generate=e:/t/temp/libgmp -flto -pipe -O3" \
        CXXFLAGS="-Wno-error=coverage-mismatch
-fprofile-generate=e:/t/temp/libgmp -flto -pipe -O3" \
        LDFLAGS="-fprofile-generate=e:/t/temp/libgmp -flto -fuse-linker-plugin"
check
   to gather the profile information.
   There is not any problem above.
4) make clean
5) Using the profile information to recompile.
      make CFLAGS="-Wno-error=coverage-mismatch -fprofile-use=e:/t/temp/libgmp
-flto -pipe -O3" \
        CXXFLAGS="-Wno-error=coverage-mismatch -fprofile-use=e:/t/temp/libgmp
-flto -pipe -O3" \
        LDFLAGS="-fprofile-use=e:/t/temp/libgmp -flto -fuse-linker-plugin"
6) make check will result in errors.
      make CFLAGS="-Wno-error=coverage-mismatch -fprofile-use=e:/t/temp/libgmp
-flto -pipe -O3" \
        CXXFLAGS="-Wno-error=coverage-mismatch -fprofile-use=e:/t/temp/libgmp
-flto -pipe -O3" \
        LDFLAGS="-fprofile-use=e:/t/temp/libgmp -flto -fuse-linker-plugin"
check
   The errors are like :
--------------------------------------------------------------------------------
libtool: link: gcc -std=gnu99 -pipe -flto -O3 -fomit-frame-pointer
-momit-leaf-frame-pointer -minline-all-stringops -minline-stringops-dynamically
-fivopts -ftree-loop-linear -ftree-loop-distribution -ftree-vectorize
-fvect-cost-model -fgraphite-identity -floop-interchange -floop-block
-floop-parallelize-all -fforce-addr -fno-bounds-check -mmmx -msse -msse2
-maccumulate-outgoing-args -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -s -flto
-fuse-linker-plugin -Wl,--allow-multiple-definition -Wl,--large-address-aware
-o t-bswap.exe t-bswap.o  ./.libs/libtests.a
/e/new/gcc/build/gmp/.libs/libgmp.a ../.libs/libgmp.a
In file included from :2:0:
toom2_sqr.c: In function '__gmpn_toom2_sqr':
toom2_sqr.c:58:1: internal compiler error: in scale_bbs_frequencies_gcov_type,
at cfg.c:1079
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\gcc.exe returned 1 exit status
e:/mypack/mingw/bin/../lib/gcc/i686-pc-mingw32/4.6.1/../../../../i686-pc-mingw32/bin/ld.exe:
lto-wrapper failed
collect2: ld returned 1 exit status
make[4]: *** [t-bswap.exe] Error 1
--------------------------------------------------------------------------------

I don't know it is the gcov, gcc lto, lto plugin bug?


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

* [Bug lto/49922] I try to build libgmp using PGO and lto, but the test will result in "internal compiler error"
  2011-07-31 10:30 [Bug gcov-profile/49922] New: I try to build libgmp using PGO and lto, but the test will result in "internal compiler error" xunxun1982 at gmail dot com
@ 2011-08-03 14:00 ` xunxun1982 at gmail dot com
  2012-05-07 12:43 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: xunxun1982 at gmail dot com @ 2011-08-03 14:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from PcX <xunxun1982 at gmail dot com> 2011-08-03 14:00:26 UTC ---
Change to lto component


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

* [Bug lto/49922] I try to build libgmp using PGO and lto, but the test will result in "internal compiler error"
  2011-07-31 10:30 [Bug gcov-profile/49922] New: I try to build libgmp using PGO and lto, but the test will result in "internal compiler error" xunxun1982 at gmail dot com
  2011-08-03 14:00 ` [Bug lto/49922] " xunxun1982 at gmail dot com
@ 2012-05-07 12:43 ` rguenth at gcc dot gnu.org
  2012-05-07 13:31 ` xunxun1982 at gmail dot com
  2013-09-10 10:39 ` ktietz at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-07 12:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-05-07
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-07 12:41:52 UTC ---
Probably a GCC/LTO bug.  Can you check if using GCC 4.7.0 makes the errors
go away?


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

* [Bug lto/49922] I try to build libgmp using PGO and lto, but the test will result in "internal compiler error"
  2011-07-31 10:30 [Bug gcov-profile/49922] New: I try to build libgmp using PGO and lto, but the test will result in "internal compiler error" xunxun1982 at gmail dot com
  2011-08-03 14:00 ` [Bug lto/49922] " xunxun1982 at gmail dot com
  2012-05-07 12:43 ` rguenth at gcc dot gnu.org
@ 2012-05-07 13:31 ` xunxun1982 at gmail dot com
  2013-09-10 10:39 ` ktietz at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: xunxun1982 at gmail dot com @ 2012-05-07 13:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from xunxun <xunxun1982 at gmail dot com> 2012-05-07 13:27:43 UTC ---
Using gcc4.7 can't reproduce the issue.
Mark it invalid or resolved?


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

* [Bug lto/49922] I try to build libgmp using PGO and lto, but the test will result in "internal compiler error"
  2011-07-31 10:30 [Bug gcov-profile/49922] New: I try to build libgmp using PGO and lto, but the test will result in "internal compiler error" xunxun1982 at gmail dot com
                   ` (2 preceding siblings ...)
  2012-05-07 13:31 ` xunxun1982 at gmail dot com
@ 2013-09-10 10:39 ` ktietz at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-09-10 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |ktietz at gcc dot gnu.org
         Resolution|---                         |WONTFIX

--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Due issue is solved for gcc 4.7 (and upward), and gcc 4.6 isn't under
maintenance by gcc team any more, I close this bug as won't fix.


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

end of thread, other threads:[~2013-09-10 10:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-31 10:30 [Bug gcov-profile/49922] New: I try to build libgmp using PGO and lto, but the test will result in "internal compiler error" xunxun1982 at gmail dot com
2011-08-03 14:00 ` [Bug lto/49922] " xunxun1982 at gmail dot com
2012-05-07 12:43 ` rguenth at gcc dot gnu.org
2012-05-07 13:31 ` xunxun1982 at gmail dot com
2013-09-10 10:39 ` 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).