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 1037 - shiboken fails to build against python 3.2 (both normal and -dbg) on i386 (and others)
: shiboken fails to build against python 3.2 (both normal and -dbg) on i386 (an...
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: PC Linux
: P2 normal
Assigned To: Hugo Parente Lima
:
: 1012
:
  Show dependency treegraph
 
Reported: 2011-10-28 15:01 EEST by Didier Raboud
Modified: 2011-11-29 21:28 EET (History)
9 users (show)

See Also:


Attachments
Fix (765 bytes, patch)
2011-10-31 23:52 EET, Hugo Parente Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Didier Raboud 2011-10-28 15:01:57 EEST
Hi, 

while pursuing my goal of building Shiboken and PySide for all Debian known
possible combinations of python versions and flavours, I uploaded it with code
to build against the two flavours of python 3.2 and it failed on some
architectures:

https://buildd.debian.org/status/logs.php?pkg=shiboken&ver=1.0.9-3%2Bpy3~exp0

Notably, *-amd64 and s390 are sucessful but architectures like i386 aren't:

cd
"/build/buildd2-shiboken_1.0.9-3+py3~exp0-mips-gy3kHf/shiboken-1.0.9/build-3.2-dbg/tests/samplebinding"
&& /usr/bin/c++   -Dsample_EXPORTS -DPy_DEBUG -g -O2 -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security  -Wall -fvisibility=hidden
-Wno-strict-aliasing -g -fPIC
-I"/build/buildd2-shiboken_1.0.9-3+py3~exp0-mips-gy3kHf/shiboken-1.0.9/tests/samplebinding"
-I"/build/buildd2-shiboken_1.0.9-3+py3~exp0-mips-gy3kHf/shiboken-1.0.9"
-I/usr/include/python3.2mu
-I"/build/buildd2-shiboken_1.0.9-3+py3~exp0-mips-gy3kHf/shiboken-1.0.9/tests/libsample"
-I"/build/buildd2-shiboken_1.0.9-3+py3~exp0-mips-gy3kHf/shiboken-1.0.9/libshiboken"
   -o CMakeFiles/sample.dir/sample/color_wrapper.cpp.o -c
"/build/buildd2-shiboken_1.0.9-3+py3~exp0-mips-gy3kHf/shiboken-1.0.9/build-3.2-dbg/tests/samplebinding/sample/color_wrapper.cpp"
/build/buildd2-shiboken_1.0.9-3+py3~exp0-mips-gy3kHf/shiboken-1.0.9/build-3.2-dbg/tests/samplebinding/sample/bytearray_wrapper.cpp:865:1:
error: invalid conversion from 'long int (*)(PyObject*) {aka long int
(*)(_object*)}' to 'hashfunc {aka int (*)(_object*)}' [-fpermissive]
make[4]: ***
[tests/samplebinding/CMakeFiles/sample.dir/sample/bytearray_wrapper.cpp.o]
Error 1

Note that this might be influenced by our hardening flags (see command-line
above), but it seems like an issue anyway.

Cheers, and thanks for considering, 

OdyX
Comment 1 Didier Raboud 2011-10-31 23:28:59 EET
FYI, it also fails against "plain" python3.2:


[ 47%] Building CXX object
tests/samplebinding/CMakeFiles/sample.dir/sample/collector_wrapper.cpp.o
cd /«PKGBUILDDIR»/build-3.2/tests/samplebinding && /usr/lib/ccache/c++  
-Dsample_EXPORTS -DNDEBUG -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Wformat-security -Werror=format-security  -Wall -fvisibility=hidden
-Wno-strict-aliasing -O3 -DNDEBUG -fPIC -I/«PKGBUILDDIR»/tests/samplebinding
-I/«PKGBUILDDIR» -I/usr/include/python3.2mu -I/«PKGBUILDDIR»/tests/libsample
-I/«PKGBUILDDIR»/libshiboken    -o
CMakeFiles/sample.dir/sample/collector_wrapper.cpp.o -c
/«PKGBUILDDIR»/build-3.2/tests/samplebinding/sample/collector_wrapper.cpp
/«PKGBUILDDIR»/build-3.2/tests/samplebinding/sample/bytearray_wrapper.cpp:865:1:
error: invalid conversion from 'long int (*)(PyObject*) {aka long int
(*)(_object*)}' to 'hashfunc {aka int (*)(_object*)}' [-fpermissive]
Comment 2 Hugo Parente Lima 2011-10-31 23:49:21 EET
And you are right, it has nothing to do with hardening flags.
Comment 3 Hugo Parente Lima 2011-10-31 23:52:19 EET
Created attachment 442 [details]
Fix

This patch should fix the problem.
Comment 5 Hugo Parente Lima 2011-11-01 21:14:54 EET
Fixed in commit:

shiboken/49d4a9d663bc89838ef8579999ac3f4808a905d0
Comment 6 Luciano Wolf 2011-11-29 21:28:43 EET
Released on PySide 1.0.9. Closing.