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

             Bug #: 50432
           Summary: lto1.exe: internal compiler error: in
                    cgraph_mark_functions_to_output, at cgraphunit.c:1173
                    when build Qt4.7.4 rcc
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: xunxun1...@gmail.com
              Host: *-*-mingw32
            Target: *-*-mingw32
             Build: *-*-mingw32


If I use gcc4.6.1 to build Qt4.7.4 with "-flto -fuse-linker-plugin", it will
result in an internal compiler error when building rcc:

g++ -Wl,-s -flto -fuse-linker-plugin -Wl,-subsystem,console -o
../../../bin/rcc.exe tmp/obj/release_shared/rcc.o 
tmp/obj/release_shared/main.o 
-L'e:/new/GUI/Qt/qt-everywhere-opensource-src-4.7.4/src/tools/bootstrap/release'
-lbootstrap -luser32 
lto1.exe: internal compiler error: in cgraph_mark_functions_to_output, at
cgraphunit.c:1173
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: g++ 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
Makefile.Release:75: recipe for target `../../../bin/rcc.exe' failed
mingw32-make[2]: *** [../../../bin/rcc.exe] Error 1
mingw32-make[2]: Leaving directory
`E:/new/GUI/Qt/qt-everywhere-opensource-src-4.7.4/src/tools/rcc'
Makefile:34: recipe for target `release' failed
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory
`E:/new/GUI/Qt/qt-everywhere-opensource-src-4.7.4/src/tools/rcc'
makefile:133: recipe for target `sub-rcc-make_default-ordered' failed
mingw32-make: *** [sub-rcc-make_default-ordered] Error 2

Reply via email to