Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66123

Fatal error: can't close .obj/debug/qopenglversionfunctionsfactory.o: File too big

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9
    • 5.9.4
    • Build System
    • None
    • windows 10 pro 

      msys2

      mingw-w64  gcc 7.2.0 x64 posix

       
    • 40e87491886957696486b87dc2dedec2adaf6e1a

    Description

      g++ -c -include .pch/debug/qt_gui_pch.h -g -Og -std=c++1z -fno-exceptions -Wall -W -Wvla -DUNICODE -D_UNICODE -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DENABLE_PIXMAN_DRAWHELPERS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_GUI_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_CORE_LIB -I. -I../../include -I../../include/QtGui -I../../include/QtGui/5.9.4 -I../../include/QtGui/5.9.4/QtGui -Itmp -I../../include/QtCore/5.9.4 -I../../include/QtCore/5.9.4/QtCore -I../../include/QtCore -I.moc/debug -I../3rdparty/libpng -I../3rdparty/harfbuzz-ng/include -I../../mkspecs/win32-g++ -o .obj/debug/qopenglversionfunctionsfactory.o opengl/qopenglversionfunctionsfactory.cpp
      C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/as.exe: .obj/debug/qopenglversionfunctionsfactory.o: too many sections (60503)
      C:\Users\tangjun\AppData\Local\Temp\ccMnUERl.s: Assembler messages:
      C:\Users\tangjun\AppData\Local\Temp\ccMnUERl.s: Fatal error: can't write 49 bytes to section .text of .obj/debug/qopenglversionfunctionsfactory.o because: 'File too big'
      C:/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/as.exe: .obj/debug/qopenglversionfunctionsfactory.o: too many sections (60503)
      C:\Users\tangjun\AppData\Local\Temp\ccMnUERl.s: Fatal error: can't close .obj/debug/qopenglversionfunctionsfactory.o: File too big
      mingw32-make[4]: *** [Makefile.Debug:59320: .obj/debug/qopenglversionfunctionsfactory.o] Error 1
      mingw32-make[4]: Leaving directory 'C:/msys2/local64/src/qt/qtbase/src/gui'
      mingw32-make[3]: *** [Makefile:40: debug-all] Error 2
      mingw32-make[3]: Leaving directory 'C:/msys2/local64/src/qt/qtbase/src/gui'
      mingw32-make[2]: *** [Makefile:550: sub-gui-make_first] Error 2
      mingw32-make[2]: Leaving directory 'C:/msys2/local64/src/qt/qtbase/src'
      mingw32-make[1]: *** [Makefile:45: sub-src-make_first] Error 2
      mingw32-make[1]: Leaving directory 'C:/msys2/local64/src/qt/qtbase'
      mingw32-make: *** [Makefile:78: module-qtbase-make_first] Error 2
      
      Well, it seems that the error is not caused by the msys2,According to this discuss https://forum.qt.io/topic/59978/error-file-too-big.
      when this error occured,I tried adding the compile option mentioned in the discuss to the file qtbase\src\gui\Makefile.Release ($(CXX) -Wa,-mbig-obj -c -include .pch/release/qt_gui_pch.h $(CXXFLAGS) $(INCPATH) -o .obj/release/qopenglversionfunctionsfactory.o opengl/qopenglversionfunctionsfactory.cpp) and  continue compiling, the error was gone.
      
      
      
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sav sav
            achilles78 Jun Tang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes