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

Link error when building Qt with msvc2015

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.5.1
    • Qt Script
    • None

    Description

      Python, Perl, and Jom are installed and paths added into the PATH env. variable.

      Initialization:

      perl init-repository --no-webkit
      

      Configuration:

      call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat"  x86
      
      call "%_qt_src_dir%\configure.bat"^ 
        -opensource^
        -confirm-license^
        -prefix "%_install_dir%"^
        -platform win32-msvc2015
        -make-tool jom^
        -mp^
        -no-warnings-are-errors^
        -opengl desktop^
        -nomake examples^
        -nomake tests^
        -no-incredibuild-xge
      

      I have got the following link error:

             link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.5 /MANIFEST:embed /OUT:..\..\lib\Qt5Scriptd.dll @B:\Temp\Qt5Scriptd.dll.3464.890.jom
         Creating library ..\..\lib\Qt5Scriptd.lib and object ..\..\lib\Qt5Scriptd.exp
      JSGlobalData.obj : error LNK2019: unresolved external symbol "private: static void __cdecl QTJSC::MarkedArgumentBuffer::operator delete(void *,unsigned int)" (??3MarkedArgumentBuffer@QTJSC@@CAXPAXI@Z) referenced in function __unwindfunclet$??0JSGlobalData@QTJSC@@AAE@_N@Z$22
      ..\..\lib\Qt5Scriptd.dll : fatal error LNK1120: 1 unresolved externals
      jom: C:\Dev\Projects\Qt5-build\windows-x86-msvc2015\qtscript\src\script\Makefile.Debug [..\..\lib\Qt5Scriptd.dll] Error 1120
      jom: C:\Dev\Projects\Qt5-build\windows-x86-msvc2015\qtscript\src\script\Makefile [debug-all] Error 2
      jom: C:\Dev\Projects\Qt5-build\windows-x86-msvc2015\qtscript\src\Makefile [sub-script-make_first-ordered] Error 2
      jom: C:\Dev\Projects\Qt5-build\windows-x86-msvc2015\qtscript\Makefile [sub-src-make_first] Error 2
      jom: C:\Dev\Projects\Qt5-build\windows-x86-msvc2015\Makefile [module-qtscript-make_first] Error 2
      Error: make failed
      

      And the following modules are built (before error):

      qt3d
      qtactiveqt
      qtbase
      qtconnectivity
      qtdeclarative
      qtimageformats
      qtlocation
      qtmultimedia
      qtsensors
      qtserialport
      qtsvg
      qttools
      qtwebchannel
      qtwebsockets
      qtwinextras
      qtxmlpatterns
      

      As I understand, the cause is

      void* operator new(size_t, void*);
      void operator delete(void*, size_t);
      

      declared, but not defined in the qtscript\src\3rdparty\javascriptcore\JavaScriptCore\runtime\ArgList.h.

      See also my question on StackOverflow.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            dmitry.sokolov Dmitry Sokolov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes