PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 133 - PySide-shiboken does not compile on some platforms, because an ugly warnning turns into an evil error
: PySide-shiboken does not compile on some platforms, because an ugly warnning ...
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P3 critical
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-01-21 17:32 EET by Hugo Parente Lima
Modified: 2010-03-24 14:40 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Parente Lima 2010-01-21 17:32:04 EET
The warnning:

ISO C++ says that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second.

is a error on some versions of GCC. You get this warnning on
qbytearray_wrapper.cpp
Comment 1 Carlos Gonçalves 2010-01-21 18:05:13 EET
[ 15%] Building CXX object
PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qbytearray_wrapper.cpp.o
[ 16%] Building CXX object
PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qbytearraymatcher_wrapper.cpp.o
/usr/src/packages/BUILD/pyside-shiboken-0.1.20100121/build/PySide/QtCore/PySide/QtCore/qbytearray_wrapper.cpp:
In function 'PyObject* SbkQByteArrayFunc___add__(PyObject*, PyObject*)':
/usr/src/packages/BUILD/pyside-shiboken-0.1.20100121/build/PySide/QtCore/PySide/QtCore/qbytearray_wrapper.cpp:2567:
error: ISO C++ says that these are ambiguous, even though the worst conversion
for the first is better than the worst conversion for the second:
/usr/include/QtCore/qbytearray.h:539: note: candidate 1: const QByteArray
operator+(const QByteArray&, const char*)
/usr/src/packages/BUILD/pyside-shiboken-0.1.20100121/build/PySide/QtCore/PySide/QtCore/qbytearray_wrapper.cpp:2567:
note: candidate 2: operator+(long int, char*) <built-in>
/usr/src/packages/BUILD/pyside-shiboken-0.1.20100121/build/PySide/QtCore/PySide/QtCore/qbytearray_wrapper.cpp:2595:
error: ISO C++ says that these are ambiguous, even though the worst conversion
for the first is better than the worst conversion for the second:
/usr/include/QtCore/qbytearray.h:543: note: candidate 1: const QByteArray
operator+(const char*, const QByteArray&)
/usr/src/packages/BUILD/pyside-shiboken-0.1.20100121/build/PySide/QtCore/PySide/QtCore/qbytearray_wrapper.cpp:2595:
note: candidate 2: operator+(char*, long int) <built-in>
make[2]: ***
[PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qbytearray_wrapper.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [PySide/QtCore/CMakeFiles/QtCore.dir/all] Error 2
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.97634 (%build)

Reproducible with gcc-cpp-4.3.2 (Mandriva 2009.1) and gcc-c++-4.3 (openSUSE
11.1). Not affected with newer gcc versions.
Comment 2 Hugo Parente Lima 2010-01-22 17:08:51 EET
Fixed in commit a01d5c8d9e056a06a3aa4a16bc608b125da105ac (shiboken)
Comment 3 Carlos Gonçalves 2010-01-23 17:20:15 EET
Confirmed. It builds now successfully on Mandriva 2009.1 and openSUSE 11.1.