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

C:/MINGW810/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to `WinMain'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • None
    • 6.0.0 Beta2
    • None
    • Windows
    • 4ad464461f285af3fb2845eb27b1a20fc0b09b08 (qt/qtbase/dev)

    Description

      2027: C:\Users\qt\work\install\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_ENTRYPOINT_LIB -DQT_NEEDS_QMAIN -DQT_CORE_LIB --include C:/Users/qt/work/qt/qtdeclarative/tools/qmleasing/.moc/release/moc_predefs.h -IC:/Users/qt/work/install/mkspecs/win32-g++ -IC:/Users/qt/work/qt/qtdeclarative/tools/qmleasing -IC:/Users/qt/work/qt/qtdeclarative/include -IC:/Users/qt/work/qt/qtdeclarative/include/QtQuick -IC:/Users/qt/work/qt/qtdeclarative/include/QtQmlModels -IC:/Users/qt/work/qt/qtdeclarative/include/QtQml -IC:/Users/qt/work/install/include -IC:/Users/qt/work/install/include/QtOpenGL -IC:/Users/qt/work/install/include/QtWidgets -IC:/Users/qt/work/install/include/QtGui -IC:/Users/qt/work/install/include/QtNetwork -IC:/Users/qt/work/install/include/QtCore -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++ -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32 -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed -IC:/MINGW810/mingw64/x86_64-w64-mingw32/include mainwindow.h -o .moc\release\moc_mainwindow.cpp
       C:\Users\qt\work\install\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_ENTRYPOINT_LIB -DQT_NEEDS_QMAIN -DQT_CORE_LIB --include C:/Users/qt/work/qt/qtdeclarative/tools/qmleasing/.moc/release/moc_predefs.h -IC:/Users/qt/work/install/mkspecs/win32-g++ -IC:/Users/qt/work/qt/qtdeclarative/tools/qmleasing -IC:/Users/qt/work/qt/qtdeclarative/include -IC:/Users/qt/work/qt/qtdeclarative/include/QtQuick -IC:/Users/qt/work/qt/qtdeclarative/include/QtQmlModels -IC:/Users/qt/work/qt/qtdeclarative/include/QtQml -IC:/Users/qt/work/install/include -IC:/Users/qt/work/install/include/QtOpenGL -IC:/Users/qt/work/install/include/QtWidgets -IC:/Users/qt/work/install/include/QtGui -IC:/Users/qt/work/install/include/QtNetwork -IC:/Users/qt/work/install/include/QtCore -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++ -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32 -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include -IC:/MINGW810/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed -IC:/MINGW810/mingw64/x86_64-w64-mingw32/include segmentproperties.h -o .moc\release\moc_segmentproperties.cpp
       Mingw32-make[2]: Entering directory 'C:/Users/qt/work/qt/qtdeclarative/tools/qmltestrunner'
       Mingw32-make -f Makefile.Release
       Mingw32-make[3]: Entering directory 'C:/Users/qt/work/qt/qtdeclarative/tools/qmltestrunner'
       g++ -c -fno-keep-inline-dllexport -O2 -g -std=c++1z -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QML_LIB -DQT_QMLTEST_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="\"C:/Users/qt/work/qt/qtdeclarative/tools/qmltestrunner\"" -I. -I../../include -I../../include/QtQml -I../../include/QtQuickTest -IC:/Users/qt/work/install/include -IC:/Users/qt/work/install/include/QtWidgets -IC:/Users/qt/work/install/include/QtGui -IC:/Users/qt/work/install/include/QtNetwork -IC:/Users/qt/work/install/include/QtTest -IC:/Users/qt/work/install/include/QtCore -I.moc/release -IC:/VulkanSDK/1.0.51.0/include -IC:/openssl/include -IC:/Utils/my_sql/mysql-5.7.25-winx64/include -IC:/Utils/postgresql/pgsql/include -IC:/Users/qt/work/install/mkspecs/win32-g++  -o .obj\release\main.o main.cpp
       g++ -c -fno-keep-inline-dllexport -O2 -g -std=c++1z -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_ENTRYPOINT_LIB -DQT_NEEDS_QMAIN -DQT_CORE_LIB -I. -I../../include -I../../include/QtQuick -I../../include/QtQmlModels -I../../include/QtQml -IC:/Users/qt/work/install/include -IC:/Users/qt/work/install/include/QtOpenGL -IC:/Users/qt/work/install/include/QtWidgets -IC:/Users/qt/work/install/include/QtGui -IC:/Users/qt/work/install/include/QtNetwork -IC:/Users/qt/work/install/include/QtCore -I.moc/release -I.uic -IC:/VulkanSDK/1.0.51.0/include -IC:/openssl/include -IC:/Utils/my_sql/mysql-5.7.25-winx64/include -IC:/Utils/postgresql/pgsql/include -IC:/Users/qt/work/install/mkspecs/win32-g++  -o .obj\release\qrc_resources.o .rcc\release\qrc_resources.cpp
       g++ -c -fno-keep-inline-dllexport -O2 -g -std=c++1z -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_ENTRYPOINT_LIB -DQT_NEEDS_QMAIN -DQT_CORE_LIB -I. -I../../include -I../../include/QtQuick -I../../include/QtQmlModels -I../../include/QtQml -IC:/Users/qt/work/install/include -IC:/Users/qt/work/install/include/QtOpenGL -IC:/Users/qt/work/install/include/QtWidgets -IC:/Users/qt/work/install/include/QtGui -IC:/Users/qt/work/install/include/QtNetwork -IC:/Users/qt/work/install/include/QtCore -I.moc/release -I.uic -IC:/VulkanSDK/1.0.51.0/include -IC:/openssl/include -IC:/Utils/my_sql/mysql-5.7.25-winx64/include -IC:/Utils/postgresql/pgsql/include -IC:/Users/qt/work/install/mkspecs/win32-g++  -o .obj\release\splineeditor.o splineeditor.cpp
       g++ -Wl,-subsystem,windows -s -o release\qmltime.exe .obj/release/qmltime.o .obj/release/qmltime_qmltyperegistrations.o .obj/release/moc_qmltime.o  -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.7.25-winx64\lib -LC:\Utils\postgresql\pgsql\lib C:\Users\qt\work\qt\qtdeclarative\lib\libQt6Quick.a C:\Users\qt\work\qt\qtdeclarative\lib\libQt6QmlModels.a C:\Users\qt\work\qt\qtdeclarative\lib\libQt6Qml.a C:\Users\qt\work\install\lib\libQt6OpenGL.a C:\Users\qt\work\install\lib\libQt6Gui.a C:\Users\qt\work\install\lib\libQt6Network.a C:\Users\qt\work\install\lib\libQt6Core.a C:\Users\qt\work\install\lib\libQt6EntryPoint.a -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.7.25-winx64\lib -LC:\Utils\postgresql\pgsql\lib -lmingw32 -lshell32 C:\Users\qt\work\install\lib\libQt6Core.a
       C:/MINGW810/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to `WinMain'
       collect2.exe: error: ld returned 1 exit status
       
       2044: windres -i qmlplugindump_resource.rc -o .obj\release\qmlplugindump_resource_res.o --include-dir=. -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
       windres -i qmltestrunner_resource.rc -o .obj\release\qmltestrunner_resource_res.o --include-dir=. -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QML_LIB -DQT_QMLTEST_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="\"C:/Users/qt/work/qt/qtdeclarative/tools/qmltestrunner\""
       g++ -c -fno-keep-inline-dllexport -O2 -g -std=c++1z -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_ENTRYPOINT_LIB -DQT_NEEDS_QMAIN -DQT_CORE_LIB -I. -I../../include -I../../include/QtQuick -I../../include/QtQmlModels -I../../include/QtQml -IC:/Users/qt/work/install/include -IC:/Users/qt/work/install/include/QtOpenGL -IC:/Users/qt/work/install/include/QtWidgets -IC:/Users/qt/work/install/include/QtGui -IC:/Users/qt/work/install/include/QtNetwork -IC:/Users/qt/work/install/include/QtCore -I.moc/release -I.uic -IC:/VulkanSDK/1.0.51.0/include -IC:/openssl/include -IC:/Utils/my_sql/mysql-5.7.25-winx64/include -IC:/Utils/postgresql/pgsql/include -IC:/Users/qt/work/install/mkspecs/win32-g++  -o .obj\release\mainwindow.o mainwindow.cpp
       g++ -Wl,-subsystem,console -s -o ..\..\bin\qmltestrunner.exe .obj/release/main.o  -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.7.25-winx64\lib -LC:\Utils\postgresql\pgsql\lib C:\Users\qt\work\qt\qtdeclarative\lib\libQt6Qml.a C:\Users\qt\work\qt\qtdeclarative\lib\libQt6QuickTest.a C:\Users\qt\work\install\lib\libQt6Widgets.a C:\Users\qt\work\install\lib\libQt6Gui.a C:\Users\qt\work\install\lib\libQt6Network.a C:\Users\qt\work\install\lib\libQt6Test.a C:\Users\qt\work\install\lib\libQt6Core.a .obj\release\qmltestrunner_resource_res.o
       objcopy --only-keep-debug ../../bin/qmltestrunner.exe ../../bin/qmltestrunner.exe.debug && objcopy --strip-debug ../../bin/qmltestrunner.exe && objcopy --add-gnu-debuglink=../../bin/qmltestrunner.exe.debug ../../bin/qmltestrunner.exe
       Mingw32-make[3]: Leaving directory 'C:/Users/qt/work/qt/qtdeclarative/tools/qmltestrunner'
       Mingw32-make[2]: Leaving directory 'C:/Users/qt/work/qt/qtdeclarative/tools/qmltestrunner'
       g++ -c -fno-keep-inline-dllexport -O2 -g -std=c++1z -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_ENTRYPOINT_LIB -DQT_NEEDS_QMAIN -DQT_CORE_LIB -I. -I../../include -I../../include/QtQuick -I../../include/QtQmlModels -I../../include/QtQml -IC:/Users/qt/work/install/include -IC:/Users/qt/work/install/include/QtOpenGL -IC:/Users/qt/work/install/include/QtWidgets -IC:/Users/qt/work/install/include/QtGui -IC:/Users/qt/work/install/include/QtNetwork -IC:/Users/qt/work/install/include/QtCore -I.moc/release -I.uic -IC:/VulkanSDK/1.0.51.0/include -IC:/openssl/include -IC:/Utils/my_sql/mysql-5.7.25-winx64/include -IC:/Utils/postgresql/pgsql/include -IC:/Users/qt/work/install/mkspecs/win32-g++  -o .obj\release\segmentproperties.o segmentproperties.cpp
       g++ -Wl,-subsystem,windows -s -o ..\..\bin\qmleasing.exe .obj/release/main.o .obj/release/splineeditor.o .obj/release/mainwindow.o .obj/release/segmentproperties.o .obj/release/qrc_resources.o  -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.7.25-winx64\lib -LC:\Utils\postgresql\pgsql\lib C:\Users\qt\work\qt\qtdeclarative\lib\libQt6Quick.a C:\Users\qt\work\qt\qtdeclarative\lib\libQt6QmlModels.a C:\Users\qt\work\qt\qtdeclarative\lib\libQt6Qml.a C:\Users\qt\work\install\lib\libQt6OpenGL.a C:\Users\qt\work\install\lib\libQt6Widgets.a C:\Users\qt\work\install\lib\libQt6Gui.a C:\Users\qt\work\install\lib\libQt6Network.a C:\Users\qt\work\install\lib\libQt6Core.a .obj\release\qmleasing_resource_res.o C:\Users\qt\work\install\lib\libQt6EntryPoint.a -LC:\openssl\lib -LC:\Utils\my_sql\mysql-5.7.25-winx64\lib -LC:\Utils\postgresql\pgsql\lib -lmingw32 -lshell32 C:\Users\qt\work\install\lib\libQt6Core.a
       C:/MINGW810/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to `WinMain'
       collect2.exe: error: ld returned 1 exit status
       
       2061: objcopy --only-keep-debug ../../bin/qmlplugindump.exe ../../bin/qmlplugindump.exe.debug && objcopy --strip-debug ../../bin/qmlplugindump.exe && objcopy --add-gnu-debuglink=../../bin/qmlplugindump.exe.debug ../../bin/qmlplugindump.exe
       Mingw32-make[3]: Leaving directory 'C:/Users/qt/work/qt/qtdeclarative/tools/qmlplugindump'
       Mingw32-make[2]: Leaving directory 'C:/Users/qt/work/qt/qtdeclarative/tools/qmlplugindump'
       Mingw32-make[1]: Leaving directory 'C:/Users/qt/work/qt/qtdeclarative/tools'
       Mingw32-make: *** [Makefile:78: sub-tools-make_first] Error 2
       Process finished with error: exit status 2
       Executing scheduled instruction 1 of 1 - Upload all core dumps if there are some
       Skip uploading core files because CORE_FILES_PATH is not set in the environment
       agent:2020/10/20 07:48:48 build.go:662:
       Build failed
       ERROR building: exit status 2
      

      Build log: https://testresults.qt.io/logs/qt/qtdeclarative/2c6c34fab6b2ffdbc3709588803fd17fd903f9dc/WindowsWindows_10x86_64WindowsWindows_10x86_64Mingwqtci-windows-10-x86_64-51-59cf77DisableTests_UseLegacyInstructions/a1ef56e903082464af28997febf1fd5d6986f143/build_1603177484/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qt5/tasks/1603177331

      Tested changes (refs/builds/qtci/dev/1603177307):
      https://codereview.qt-project.org/c/qt/qt5/+/318125/1 Update submodules on 'dev' in qt/qt5

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes