Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0
-
None
-
-
e20e1ea0f (dev), 87921e5a6 (dev), cf2cdc876 (6.5), 3f1318522 (6.5), 1262c2913 (tqtc/lts-6.2), 9b07c2840 (tqtc/lts-6.2), 4bfd382c0 (tqtc/lts-5.15), d5bbbbf4a (tqtc/lts-5.15), a08e2b060 (dev), 9b87468d3 (6.5), e22f71715 (dev), ab8a34060 (dev)
Description
on linux (and windows), with latest 6.5.0 version I'm seeing this error:
2023-04-07T07:57:20.0111325Z FAILED: PySide6/QtCore/CMakeFiles/QtCore.dir/PySide6/QtCore/qcalendar_wrapper.cpp.o 2023-04-07T07:57:20.0118999Z $BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ -DNDEBUG -DPy_LIMITED_API=0x03060000 -DQT_CORE_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_DEBUG -DQtCore_EXPORTS -I$SRC_DIR/sources/pyside6/PySide6/QtCore/QtCore -I$SRC_DIR/sources/pyside6/PySide6/QtCore -I$SRC_DIR/sources/pyside6/build/PySide6/QtCore -I$SRC_DIR/sources/pyside6/PySide6 -I$SRC_DIR/sources/pyside6/libpyside -isystem $PREFIX/include/qt6/QtCore -isystem $PREFIX/include/qt6 -isystem $PREFIX/lib/qt6/mkspecs/linux-g++ -isystem $PREFIX/include/shiboken6 -isystem $PREFIX/include/python3.9 -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/pyside6-6.5.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -Wall -Wextra -Wno-strict-aliasing -Wno-cast-function-type -fvisibility=hidden -Os -DNDEBUG -std=gnu++17 -fPIC -fPIC -ffunction-sections -fdata-sections -fno-exceptions -fPIC -pthread -MD -MT PySide6/QtCore/CMakeFiles/QtCore.dir/PySide6/QtCore/qcalendar_wrapper.cpp.o -MF PySide6/QtCore/CMakeFiles/QtCore.dir/PySide6/QtCore/qcalendar_wrapper.cpp.o.d -o PySide6/QtCore/CMakeFiles/QtCore.dir/PySide6/QtCore/qcalendar_wrapper.cpp.o -c $SRC_DIR/sources/pyside6/build/PySide6/QtCore/PySide6/QtCore/qcalendar_wrapper.cpp 2023-04-07T07:57:20.0126327Z $SRC_DIR/sources/pyside6/build/PySide6/QtCore/PySide6/QtCore/qcalendar_wrapper.cpp: In function 'PyObject* Sbk_QCalendarFunc_daysInMonth(PyObject*, PyObject*, PyObject*)': 2023-04-07T07:57:20.0131395Z $SRC_DIR/sources/pyside6/build/PySide6/QtCore/PySide6/QtCore/qcalendar_wrapper.cpp:502:34: error: expected unqualified-id before '(' token 2023-04-07T07:57:20.0135972Z 502 | int cppArg1 = QCalendar::(unnamed enum at $PREFIX/include/qt6/QtCore/qcalendar.h:57:5)::Unspecified;
the offending line seems to come from an enum in qcalendar.h:
class Q_CORE_EXPORT QCalendar { Q_GADGET public: // (Extra parentheses to suppress bogus reading of min() as a macro.) enum : int { Unspecified = (std::numeric_limits<int>::min)() };
and shiboken writes incorrect text as plain code in the wrapper code:
int cppArg1 = QCalendar::(unnamed enum at $PREFIX/include/qt6/QtCore/qcalendar.h:57:5)::Unspecified;
I tried downgrading clang/llvm libs v16 to v15 and it fixed the build (we still use gcc (and msvc) as the main compiler for linux (resp windows).
Attachments
Issue Links
- relates to
-
PYSIDE-2451 pyside2-5.15.10 fails to build after update - qdragmoveevent_wrapper.cpp
-
- Closed
-
For Gerrit Dashboard: PYSIDE-2288 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
474413,2 | WIP: shiboken6/clang: Fix clashes between type name and enumeration values | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: NEW | 0 | 0 |
474706,6 | shiboken6/clang: Fix and simplify resolveType() helper | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: NEW | +2 | 0 |
475078,4 | shiboken6/clang: Record scope resolution of arguments/function return | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: NEW | +2 | 0 |
475389,4 | PySide2/Qt3Core: Fix compilation with clang 16 | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: NEW | -1 | 0 |
471417,5 | shiboken6: Fix build with clang 16 | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
471443,3 | shiboken6: Fail template test instead of crashing | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
471651,2 | shiboken6: Fix build with clang 16 | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
471773,2 | shiboken6: Fix build with clang 16 | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
471774,3 | shiboken6: Fix build with clang 16 | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
471811,2 | shiboken6: Fail template test instead of crashing | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
471813,2 | shiboken6: Fail template test instead of crashing | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
471814,3 | shiboken6: Fail template test instead of crashing | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
472059,7 | shiboken6: Remove broken typedef expansion | dev | pyside/pyside-setup | Status: ABANDONED | +1 | 0 |
472072,12 | shiboken6/clang: Move type creation to the end of the AST token | dev | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
472073,10 | shiboken6/clang: Introduce a state flag for the clang builder | dev | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
472074,12 | shiboken6/clang: Record type/template references | dev | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
473216,10 | shiboken6/clang: Qualify type names by recorded type refs | dev | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
473503,15 | shiboken6/clang: Remove typedef expansion | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474110,2 | shiboken6: Output the clang version | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474239,6 | shiboken6/clang: Add debug operators for clang types | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474240,7 | shiboken6/clang: Fix and simplify resolveType() helper | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474250,2 | shiboken6: Output the clang version | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474349,4 | shiboken6/clang: Fix clashes between type name and enumeration values | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474350,10 | shiboken6/clang: Fix build with clang 16 | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474412,2 | shiboken6/clang: Fix clashes between type name and enumeration values | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474450,2 | shiboken6/clang: Add debug operators for clang types | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474614,1 | shiboken6/clang: Do not generally look up types in class scope | dev | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
474615,2 | shiboken6/clang: Temporarily remove functions with arguments qualified to be in the root namespace | dev | pyside/pyside-setup | Status: ABANDONED | +1 | 0 |
474627,2 | shiboken6/clang: Fix and simplify resolveType() helper | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474742,5 | shiboken6: Refactor code model classes | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474784,4 | shiboken6/clang: Record scope resolution of arguments/function return | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474785,4 | shiboken6/clang: Suppress class scope look up for parameters with scope resolution | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474786,4 | shiboken6/clang: Write scope resolution for all parameters of native wrappers | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474910,2 | shiboken6/clang: Remove typedef expansion | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474911,3 | shiboken6/clang: Fix build with clang 16 | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474912,2 | shiboken6: Refactor code model classes | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474913,3 | shiboken6/clang: Write scope resolution for all parameters of native wrappers | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474914,3 | shiboken6/clang: Suppress class scope look up for parameters with scope resolution | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474915,4 | shiboken6/clang: Record scope resolution of arguments/function return | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
474918,6 | shiboken6/clang: Remove typedef expansion | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: DEFERRED | +2 | 0 |
474919,5 | shiboken6/clang: Fix build with clang 16 | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: DEFERRED | +2 | 0 |
474920,5 | shiboken6/clang: Suppress class scope look up for parameters with scope resolution | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: DEFERRED | +2 | 0 |
474921,6 | shiboken6: Refactor code model classes | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
474962,5 | shiboken6/clang: Write scope resolution for all parameters of native wrappers | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: DEFERRED | -1 | 0 |
475645,2 | shiboken6: Output the clang version | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |