conda-forge / pyside2-feedstock

A conda-smithy repository for pyside2.
BSD 3-Clause "New" or "Revised" License
17 stars 19 forks source link

Test build #179

Closed n-elie closed 1 year ago

n-elie commented 1 year ago

As requested in https://github.com/conda-forge/pyside2-feedstock/issues/178#issuecomment-1497496131

Checklist

conda-forge-webservices[bot] commented 1 year ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

n-elie commented 1 year ago

@conda-forge-admin please rerender

github-actions[bot] commented 1 year ago

Hi! This is the friendly automated conda-forge-webservice.

I tried to rerender for you, but it looks like there was nothing to do.

This message was generated by GitHub actions workflow run https://github.com/conda-forge/pyside2-feedstock/actions/runs/4619172892.

hmaarrfk commented 1 year ago

llvm recently got an update. check for compiler differences, it seems to have gotten stricter

n-elie commented 1 year ago

The problem is that some enums are not properly identified:

(core)     [6s] Generating class model (592)...                             qt.shiboken: (core) %PREFIX%\Library\include\qt6\QtCore\qcoreapplication.h:58: Enum 'QCoreApplication::(unnamed enum at D:/bld/pyside6_1680702500108/_h_env/Library/include/qt6\QtCore/qcoreapplication.h:58:5)' (class: QCoreApplication) does not have a type entry
qt.shiboken: (core) %PREFIX%\Library\include\qt6\QtCore\qcalendar.h:57: Enum 'QCalendar::(unnamed enum at D:/bld/pyside6_1680702500108/_h_env/Library/include/qt6/QtCore/qcalendar.h:57:5)' (class: QCalendar) does not have a type entry
qt.shiboken: (core) %PREFIX%\Library\include\qt6\QtCore\qtimezone.h:29: Enum 'QTimeZone::(unnamed enum at D:/bld/pyside6_1680702500108/_h_env/Library/include/qt6/QtCore/qtimezone.h:29:5)' (class: QTimeZone) does not have a type entry
[54/1410] Building CXX object PySide6\QtCore\CMakeFiles\QtCore.dir\PySide6\QtCore\qcalendar_wrapper.cpp.obj
FAILED: PySide6/QtCore/CMakeFiles/QtCore.dir/PySide6/QtCore/qcalendar_wrapper.cpp.obj 
C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1429~1.301\bin\HostX64\x64\cl.exe  /nologo /TP -DAVOID_PROTECTED_HACK -DNDEBUG -DPy_LIMITED_API=0x03060000 -DQT_CORE_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_DEBUG -DQtCore_EXPORTS -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -I%SRC_DIR%\sources\pyside6\PySide6\QtCore\QtCore -I%SRC_DIR%\sources\pyside6\PySide6\QtCore -I%SRC_DIR%\sources\pyside6\PySide6 -I%SRC_DIR%\sources\pyside6\libpyside -external:I%PREFIX%\Library\include\qt6\QtCore -external:I%PREFIX%\Library\include\qt6 -external:I%PREFIX%\Library\lib\qt6\mkspecs\win32-msvc -external:I%PREFIX%\Library\include\shiboken6 -external:I%PREFIX%\include -external:W0 /Zc:wchar_t /GR /EHsc /DWIN32 /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS -DNOMINMAX /O1 /DNDEBUG -std:c++17 -MD /Gy /Gw /EHsc -Zc:__cplusplus -permissive- -utf-8 /showIncludes /FoPySide6\QtCore\CMakeFiles\QtCore.dir\PySide6\QtCore\qcalendar_wrapper.cpp.obj /FdPySide6\QtCore\CMakeFiles\QtCore.dir\ /FS -c %SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(525): error C2589: '(': illegal token on right side of '::'
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(525): error C2062: type 'unknown-type' unexpected
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(525): error C2059: syntax error: ')'
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(525): error C2039: 'Unspecified': is not a member of '`global namespace''
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(1050): error C2589: '(': illegal token on right side of '::'
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(1050): error C2062: type 'unknown-type' unexpected
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(1050): error C2059: syntax error: ')'
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(1050): error C2039: 'Unspecified': is not a member of '`global namespace''
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(1293): error C2589: '(': illegal token on right side of '::'
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(1293): error C2062: type 'unknown-type' unexpected
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(1293): error C2059: syntax error: ')'
%SRC_DIR%\sources\pyside6\PySide6\QtCore\PySide6\QtCore\qcalendar_wrapper.cpp(1293): error C2039: 'Unspecified': is not a member of '`global namespace''

The generated wrapper sources are broken with clang 16:

        int cppArg0;
        pythonToCpp[0](pyArgs[0], &cppArg0);
        int cppArg1 = QCalendar::(unnamed enum at C:/Users/elie/AppData/Local/mambaforge/conda-bld/pyside6_1680763083342/_h_env/Library/include/qt6/QtCore/qcalendar.h:57:5)::Unspecified;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);

instead of, with clang 15:

        int cppArg0;
        pythonToCpp[0](pyArgs[0], &cppArg0);
        int cppArg1 = QCalendar::Unspecified;
        if (pythonToCpp[1])
            pythonToCpp[1](pyArgs[1], &cppArg1);