Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1660

Qbs build with internal qtscript fails (MSVC)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 1.20
    • Fix Version/s: 1.20
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      24924ce845f09281fdfcb9b02784d23326bdd2bd (qbs/qbs/master)

      Description

      In the Qt Creator build (with https://codereview.qt-project.org/c/qt-creator/qt-creator/+/364979) I get:

      agent:2021/08/25 09:25:27 build.go:391: FAILED: src/shared/qbs/src/lib/scriptengine/CMakeFiles/qbsscriptengine.dir/__/__/shared/qtscript/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp.obj 
      agent:2021/08/25 09:25:27 build.go:391: sccache C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1428~1.299\bin\Hostx64\x64\cl.exe  /nologo /TP -DBUILDING_JavaScriptCore -DBUILDING_QT__ -DBUILDING_WTF -DENABLE_JIT=0 -DENABLE_YARR=0 -DENABLE_YARR_JIT=0 -DJSC=QTJSC -DJS_NO_EXPORT -DLOG_DISABLED=1 -DNOMINMAX -DQT_BUILD_SCRIPT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_NO_USING_NAMESPACE -DUNICODE -DWIN32 -DWIN64 -DWTF=QTWTF -DWTF_CHANGES=1 -DWTF_USE_ACCELERATED_COMPOSITING -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -D_CRT_RAND_S -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_WIN64 -Djscyyerror=qtjscyyerror -Djscyylex=qtjscyylex -Djscyyparse=qtjscyyparse -Dqbsscriptengine_EXPORTS -IC:\Users\qt\work\qt-creator\qt-creator_build\build\src\shared\qbs\src\lib\scriptengine -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine -IC:\Users\qt\work\qt-creator\qt-creator_build\build\src\shared\qbs\src\lib\scriptengine\qbsscriptengine_autogen\include -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\include -IC:\Users\qt\work\qt-creator\qt-creator_build\build\src\shared\qbs\src\lib\scriptengine\include -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\script -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\script\api -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\script\parser -IC:\Users\qt\work\qt-creator\qt-creator_build\build\src\shared\qbs\src\lib\scriptengine\include\QtScript\6.2.0\QtScript -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\assembler -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\bytecode -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\bytecompiler -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\debugger -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\interpreter -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\jit -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\parser -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\pcre -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\profiler -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\runtime -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\wrec -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\wtf -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\wtf\unicode -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\yarr -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\API -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\ForwardingHeaders -IC:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\lib\scriptengine\..\..\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\generated -IC:\Users\qt\work\build\qt5_install_dir\include\QtCore\6.2.0 -IC:\Users\qt\work\build\qt5_install_dir\include\QtCore\6.2.0\QtCore -IC:\Users\qt\work\build\qt5_install_dir\include\QtCore -IC:\Users\qt\work\build\qt5_install_dir\include -IC:\Users\qt\work\build\qt5_install_dir\mkspecs\win32-msvc -IC:\Users\qt\work\build\qt5_install_dir\include\QtCore5Compat /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MD /Z7 /O2 /Ob1 /DNDEBUG /wd4291 /wd4344 /wd4396 /wd4503 /wd4800 /wd4819 /wd4996 -Zc:__cplusplus -permissive- -utf-8 -std:c++17 /showIncludes /Fosrc\shared\qbs\src\lib\scriptengine\CMakeFiles\qbsscriptengine.dir\__\__\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\wtf\FastMalloc.cpp.obj /Fdsrc\shared\qbs\src\lib\scriptengine\CMakeFiles\qbsscriptengine.dir\ /FS -c C:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\wtf\FastMalloc.cpp
      agent:2021/08/25 09:25:27 build.go:391: C:\Users\qt\work\qt-creator\qt-creator\src\shared\qbs\src\shared\qtscript\src\3rdparty\javascriptcore\JavaScriptCore\wtf\TCSpinLock.h(40): fatal error C1083: Cannot open include file: 'sched.h': No such file or directory
      

      which seems understandable, because we build with MSVC and sched.h seems to be a Unix thing?

      For some reason the build succeeds on my local VM. I have Strawberry perl installed, which has

      C:\Strawberry\c\x86_64-w64-mingw32\include\sched.h

      , though I have no idea why that would be found by the MSVC compiler (I don't find anything obvious in the compiler command line, nor in my environment, but well).

        Attachments

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

          Activity

            People

            Assignee:
            arch Ivan Komissarov
            Reporter:
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes