[PySide] Error when building pyside-5.15.2. Already defined symbol in a generated file Hi
M.B Ivory
mariellebethivory at gmail.com
Thu Oct 28 11:48:39 CEST 2021
Hi
I have had no issues building 5.15.2 on windows. On Linux however, i am
getting a compilation error in one of the shiboken generated files.
[ 65%] Building CXX object
tests/samplebinding/CMakeFiles/sample.dir/sample/abstractmodifications_wrapper.cpp.o
In file included from
/Users/build/sdk210715/src/pyside-setup-opensource-src-5.15.2/pyside3_build/py3.7-qt5.15.2-64bit-release/shiboken2/tests/samplebinding/sample/abstractmodifications_wrapper.cpp:11:
/Users/build/sdk210715/src/pyside-setup-opensource-src-5.15.2/pyside3_build/py3.7-qt5.15.2-64bit-release/shiboken2/tests/samplebinding/sample/sample_python.h:190:5:
error: redefinition of 'SBK_PHOTON_TEMPLATEBASE_IDX'
190 | SBK_PHOTON_TEMPLATEBASE_IDX = 96,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/build/sdk210715/src/pyside-setup-opensource-src-5.15.2/pyside3_build/py3.7-qt5.15.2-64bit-release/shiboken2/tests/samplebinding/sample/sample_python.h:188:5:
note: 'SBK_PHOTON_TEMPLATEBASE_IDX' previously defined here
188 | SBK_PHOTON_TEMPLATEBASE_IDX = 95,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Indeed, in the generated enum,
SBK_PERSISTENTMODELINDEX_IDX = 91,
SBK_PHOTON_CLASSTYPE_IDX = 94,
SBK_samplePHOTON_IDX = 92,
SBK_PHOTON_BASE_IDX = 93,
SBK_PHOTON_VALUEDUPLICATOR_IDX = 95,
SBK_PHOTON_TEMPLATEBASE_IDX = 95,
SBK_PHOTON_VALUEIDENTITY_IDX = 96,
SBK_PHOTON_TEMPLATEBASE_IDX = 96,
SBK_POINT_IDX = 97,
SBK_POINTF_IDX = 98,
SBK_POINTVALUELIST_CTORENUM_IDX = 100,
SBK_POINTVALUELIST_IDX = 99,
SBK_LIST_POINT_IDX = 99,
The symbol is placed twice. Some symbols also have the same enum value,
only around that symbol; so it is probably related (number of unique keys
not incremented at the second symbol?).
How can i solve this? This looks more like a bug than an issue with my
build environment to me.
I wil look if building without --build-tests succeeds for the rest
RépondreTransférer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20211028/17e146d7/attachment.html>
More information about the PySide
mailing list