Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1137

VC142 Build failed: error C2440: 'reinterpret_cast': cannot convert from 'Shiboken::AutoDecRef' to 'PyObject *'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.5
    • PySide
    • None
    • Windows

    Description

      Build fails on 42%

      mocs_compilation.cpp
      [ 42%] Building CXX object ApiExtractor/tests/CMakeFiles/testvoidarg.dir/testvoidarg.cpp.obj
      testvoidarg.cpp
      [ 42%] Linking CXX executable testvoidarg.exe
      [ 42%] Built target testvoidarg
      [ 42%] Generating embed/signature_bootstrap.inc, embed/signature.inc
      Scanning dependencies of target libshiboken
      [ 42%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.obj
      basewrapper.cpp
      D:\a\pr\pyside-setup\sources\shiboken2\libshiboken\basewrapper.cpp(623): error C2440: 'reinterpret_cast': cannot convert from 'Shiboken::AutoDecRef' to 'PyObject *'
      D:\a\pr\pyside-setup\sources\shiboken2\libshiboken\basewrapper.cpp(623): note: Conversion requires a constructor or user-defined-conversion operator, which can't be used by const_cast or reinterpret_cast
      NMAKE : fatal error U1077: 'D:\a\pr\VS\BuildTools\VC\Tools\MSVC\14.23.28105\bin\Hostx64\x64\cl.exe' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'D:\a\pr\VS\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\nmake.exe' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'D:\a\pr\VS\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\nmake.exe' : return code '0x2'
      Stop.
      error: Error compiling shiboken2
      Traceback (most recent call last):
       File "setup.py", line 296, in <module>
       setup_runner.run_setup()
       File "D:\a\pr\pyside-setup\build_scripts\setup_runner.py", line 157, in run_setup
       raise RuntimeError(msg)
      RuntimeError:
      setup.py invocation failed with exit code: 1.
      
       
      
       
      
       
      
      CLI:
      
      D:\a\pr\pyside-setup>git pull
      warning: redirecting to https://code.qt.io/cgit/pyside/pyside-setup.git/
      From http://code.qt.io/cgit/pyside/pyside-setup
       8dd42e79..c19c886f 5.14 -> origin/5.14
       6eb583d7..1704567d 5.15 -> origin/5.15
       * [new tag] v5.13.2 -> v5.13.2
      Already up to date.
      
      D:\a\pr\pyside-setup>python setup.py install --build-tests
      
      Running process: D:\a\pr\Python37\python.exe setup.py install --build-tests --internal-build-type=shiboken2
      
      running install
      running build
      Initializing submodules for PySide2 version: 5.12.5
      All submodules present.
      Running process in directory D:\a\pr\pyside-setup: command git submodule update
      Python architecture is 64bit
      nmake was found in D:\a\pr\VS\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\nmake.exe
      Adding D:\a\dev\lib\libclang\bin as detected by LLVM_INSTALL_DIR to PATH
      Inserting path 'D:\a\pr\Python37\Scripts' to environment
      Inserting path 'D:\a\dev\lib\libclang\bin' to environment
      ==============================
      Package version: 5.12.5
      Build type: Release
      Build tests: True
      ---
      Make path: D:\a\pr\VS\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\nmake.exe
      Make generator: NMake Makefiles
      Make jobs:
      ---
      setup.py directory: D:\a\pr\pyside-setup
      Build scripts directory: D:\a\pr\pyside-setup\build_scripts
      Sources directory: D:\a\pr\pyside-setup\sources
      
      Building shiboken2 will create and touch directories
       in the following order:
       make build directory (py*_build/*/*) ->
       make install directory (py*_install/*/*) ->
       setuptools build directory (build/*/*) ->
       setuptools install directory
       (usually path-installed-python/lib/python*/site-packages/*)
      
      make build directory: D:\a\pr\pyside-setup\pyside3_build\py3.7-qt5.12.5-64bit-release
      make install directory: D:\a\pr\pyside-setup\pyside3_install\py3.7-qt5.12.5-64bit-release
      setuptools build directory: D:\a\pr\pyside-setup\build\lib.win-amd64-3.7
      setuptools install directory: D:\a\pr\Python37\Lib\site-packages
      
      make-installed site-packages directory: D:\a\pr\pyside-setup\pyside3_install\py3.7-qt5.12.5-64bit-release\Lib\site-packages
       (only relevant for copying files from 'make install directory'
       to 'setuptools build directory'
      
      ---
      Python executable: D:\a\pr\Python37\python.exe
      Python includes: D:\a\pr\Python37\include
      Python library: D:\a\pr\Python37\libs\python37.lib
      Python prefix: D:\a\pr\Python37
      Python scripts: D:\a\pr\Python37\Scripts
      ---
      Qt qmake: D:\a\pr\Qt\5.12.5\msvc2017_64\bin\qmake.exe
      Qt version: 5.12.5
      Qt bins: D:/a/pr/Qt/5.12.5/msvc2017_64/bin
      Qt docs: D:/a/pr/Qt/Docs/Qt-5.12.5
      Qt plugins: D:/a/pr/Qt/5.12.5/msvc2017_64/plugins
      ---
      OpenSSL dll directory: None
      ==============================
      Building module shiboken2...
      Deleting module build folder D:\a\pr\pyside-setup\pyside3_build\py3.7-qt5.12.5-64bit-release\shiboken2...
      Creating module build folder D:\a\pr\pyside-setup\pyside3_build\py3.7-qt5.12.5-64bit-release\shiboken2...
      Qt Source dir: D:/a/pr/Qt/5.12.5\Src\qtbase
      Configuring module shiboken2 (D:\a\pr\pyside-setup\sources\shiboken2)...
      Running process in directory D:\a\pr\pyside-setup\pyside3_build\py3.7-qt5.12.5-64bit-release\shiboken2: command D:\a\pr\CMake\bin\cmake.exe -G "NMake Makefiles" -DBUILD_TESTS=True -DQt5Help_DIR=D:/a/pr/Qt/Docs/Qt-5.12.5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=D:\a\pr\pyside-setup\pyside3_install\py3.7-qt5.12.5-64bit-release D:\a\pr\pyside-setup\sources\shiboken2 -DPYTHON_EXECUTABLE=D:\a\pr\Python37\python.exe -DPYTHON_INCLUDE_DIR=D:\a\pr\Python37\include -DPYTHON_LIBRARY=D:\a\pr\Python37\libs\python37.lib -DQT_SRC_DIR=D:/a/pr/Qt/5.12.5\Src\qtbase -DPACKAGE_SETUP_PY_PACKAGE_VERSION=5.12.5 -DPACKAGE_SETUP_PY_PACKAGE_TIMESTAMP= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes -DUSE_PYTHON_VERSION=3.3
      -- The C compiler identification is MSVC 19.23.28106.4
      -- The CXX compiler identification is MSVC 19.23.28106.4
      -- Check for working C compiler: D:/a/pr/VS/BuildTools/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
      -- Check for working C compiler: D:/a/pr/VS/BuildTools/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Check for working CXX compiler: D:/a/pr/VS/BuildTools/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
      -- Check for working CXX compiler: D:/a/pr/VS/BuildTools/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) (Required is at least version "2.6.32")
      -- Could NOT find LibXslt (missing: LIBXSLT_LIBRARIES LIBXSLT_INCLUDE_DIR) (Required is at least version "1.1.19")
      -- Found PythonInterp: D:/a/pr/Python37/python.exe (found suitable version "3.7.5", minimum required is "3.3")
      -- Found PythonLibs: D:/a/pr/Python37/libs/python37.lib (found suitable version "3.7.5", minimum required is "3.3")
      PYTHON_ARCH: 64
      -- CLANG: D:\a\dev\lib\libclang, D:/a/dev/lib/libclang/lib/libclang.lib detected by LLVM_INSTALL_DIR
      -- Looking for C++ include clang-c/Index.h
      -- Looking for C++ include clang-c/Index.h - found
      -- Found Git: D:/a/pr/Git/cmd/git.exe (found version "2.23.0.windows.1")
      PYTHONLIBS_FOUND: TRUE
      PYTHON_LIBRARIES: D:/a/pr/Python37/libs/python37.lib
      PYTHON_INCLUDE_DIRS: D:/a/pr/Python37/include
      PYTHON_DEBUG_LIBRARIES: PYTHON_DEBUG_LIBRARY-NOTFOUND
      PYTHONINTERP_FOUND: TRUE
      PYTHON_EXECUTABLE: D:/a/pr/Python37/python.exe
      PYTHON_VERSION: 3.7.5
      -c:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
      PYTHON_EXTENSION_SUFFIX: .cp37-win_amd64
      -- PYTHON_EXTENSION_SUFFIX: .cp37-win_amd64
      -- PYTHON_CONFIG_SUFFIX: .cp37-win_amd64
      -- PYTHON_SHARED_LIBRARY_SUFFIX: .cp37-win_amd64
      CMake Warning at ApiExtractor/CMakeLists.txt:61 (message):
       libxslt and/or libxml not found, falling back to QtXmlPatterns
       (QTBUG-66925)
      
      
      PYTHON_NUMPY_LOCATION:
      -- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: 'D:/a/pr/Python37/include'
      -- SHIBOKEN_PYTHON_LIBRARIES computed to value: 'D:/a/pr/Python37/libs/python37.lib'
      -- sphinx-build - not found! doc target disabled
      -- Tests will be generated avoiding the protected hack!
      -- Found PythonInterp: D:/a/pr/Python37/python.exe (found version "3.7.5")
      -- Configuring done
      -- Generating done
      CMake Warning:
       Manually-specified variables were not used by the project:
      
      QT_SRC_DIR
       Qt5Help_DIR
      
      
      -- Build files have been written to: D:/a/pr/pyside-setup/pyside3_build/py3.7-qt5.12.5-64bit-release/shiboken2
      Compiling module shiboken2...
      Running process in directory D:\a\pr\pyside-setup\pyside3_build\py3.7-qt5.12.5-64bit-release\shiboken2: command D:\a\pr\VS\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\nmake.exe
      
      

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            fclushio fclushio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes