public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "xunxun1982 at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/49922] New: I try to build libgmp using PGO and lto, but the test will result in "internal compiler error" Date: Sun, 31 Jul 2011 10:30:00 -0000 [thread overview] Message-ID: <bug-49922-4@http.gcc.gnu.org/bugzilla/> (raw) 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?
next reply other threads:[~2011-07-31 10:30 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-07-31 10:30 xunxun1982 at gmail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-49922-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).