Qt 5.11.0 static openssl linked build fails



  • Basically i dont know what going on(
    Here is config for only debug build:
    MSVC14
    Openssl: 1.0.2o

    configure -opensource -confirm-license -debug -static -static-runtime -platform win32-msvc -prefix "c:\Qt\5.11.01\static" -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl dynamic -skip qt3d -skip qttools -skip qtdoc -skip qtwayland -skip qtwebview -skip qtwebengine -skip qtwebchannel -skip qtscript -no-qml-debug -no-icu -no-compile-examples -make libs -nomake tools -nomake examples -nomake tests -I "C:/OpenSSLWin32/include" -L "C:/OpenSSLWin32/lib/VC/static" OPENSSL_LIBS="libeay32MTd.lib ssleay32MTd.lib"
    

    since building got error:

    Debug Assertion Failed!
    
    Program: C:\Qt\5.11.01\src\qtbase\bin\qlalr.exe
    File: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp
    Line: 597
    
    Expression: _CrtIsValidHeapPointer(block)
    
    For information on how your program can cause an assertion
    failure, see the Visual C++ documentation on asserts.
    
    (Press Retry to debug the application)
    

    Error causes at build step:

    call C:\Qt\5.11.01\src\qtremoteobjects\tools\repc\qlalr_wrapper.bat ..\..\src\repparser\parser.g
    NMAKE : fatal error U1077: 'call' : return code '0xc0000374'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    

    i read about compiler bug for vs2017, but i'm using vs2015...
    any help appreciated

    this error looks like mismathicng debug and release libs but i dont understnad what is the reason...

    UPD1: i dont manually edit c:\Qt\5.11.01\src\qtbase\mkspecs\common\msvc-desktop.conf (MD=>MT) cause we have -static-runtime flag



  • Same problem here with Qt 5.11.0 without ssl, happening with Visual 2015 but not Visual 2017, only when Qt is configured as -static and -debug, with or without -static-runtime :
    call C:.conan_nwtri\1\qtremoteobjects\tools\repc\qlalr_wrapper.bat C:.conan\2sjrgr\1\qt5\qtremoteobjects\src\repparser\parser.g
    NMAKE : fatal error U1077: 'call' : return code '0x3'
    Stop.