[Bug 385376] New: Package 'python' does not build correctly on PPC64
https://bugzilla.novell.com/show_bug.cgi?id=385376 Summary: Package 'python' does not build correctly on PPC64 Product: openSUSE 10.2 Version: Final Platform: PowerPC-64 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: sergiodj@linux.vnet.ibm.com QAContact: qa@suse.de Found By: --- Hi, I'm currently trying to build the last version of Python's src.rpm (namely python-2.5-19.6.src.rpm) on a biarch machine (i.e., 64-bit kernel and mostly 32-bit userspace apps). The 32-bit build works properly: #> rpmbuild --target ppc -bb SPECS/python.spec << OK >> What happens is that, when I try to build it for PPC64, some errors occurs: #> rpmbuild --target ppc64 -bb SPECS/python.spec .. Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: python = 2.5 libc.so.6()(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.4)(64bit) libpthread.so.0()(64bit) libpython2.5.so.1.0()(64bit) RPM build errors: File not found: /var/tmp/python-2.5-build/usr/lib64/python2.5/lib-dynload/_sqlite3.so Note that Python got compiled successfuly, and all the tests were done without errors. Only after that this error came up. I'd like to know what can be done to fix this. Actually, what's happening is that I don't have (and haven't found) the package sqlite3 for PPC64. I've also tried to build it from its src.rpm, but fell in another dependency case and gave up. Obs.: I've made a tiny modification on Python's spec file in order to be able to compile it for PPC64: --- SPECS/python.spec 2008-01-10 09:59:23.000000000 -0800 +++ SPECS/python.spec.new 2008-04-30 11:11:49.000000000 -0700 @@ -217,6 +217,9 @@ # use rpm_opt_flags ######################################## export OPT="$RPM_OPT_FLAGS" +%ifarch ppc64 ia64 +export CC="gcc -m64" +%endif ######################################## # regenerate ######################################## -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |jmatejek@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385376#c1 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Normal Status|NEW |NEEDINFO Info Provider| |sergiodj@linux.vnet.ibm.com --- Comment #1 from Jan Matejek <jmatejek@novell.com> 2008-05-06 11:38:54 MST --- um, so, what am i supposed to do about it? it builds just fine on our servers ;e) why are you rebuilding anyway? and where did you get that src.rpm ? please try building with our 'build' tool (you can find it in package 'build') and see if that helps -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 User sergiodj@linux.vnet.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385376#c2 --- Comment #2 from Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com> 2008-05-07 14:05:32 MST --- Hi Jan, Can you build the 64-bit version of Python in your servers using PPC64 arch? I've tried to find the ppc64.rpm package for it in your repositories, but I haven't found anything. I'm trying to rebuild this package because my job is to guarantee that this RPM gets built correctly over a biarch. I've got this src.rpm from http://ftp5.gwdg.de/pub/suse/update/10.2/rpm/src/ (official repository). BTW, I'm building this package using a SLES 10 SP2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385376#c3 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|sergiodj@linux.vnet.ibm.com | --- Comment #3 from Jan Matejek <jmatejek@novell.com> 2008-05-09 04:59:43 MST --- oh, i understand now - you are trying to build Python 2.5 from 10.2 for SLES10. It does build fine for us, but you can't see the packages, because we don't support ppc64 for opensuse. I was going to suggest BuildService, but now i realize that there's no ppc64 either. If that's good enough for you, i can build python 2.5 here and give you the package. Otherwise just wait a bit, i'll get a SLES10 system and find out what's the problem. Please also try the 'build' command I suggested earlier. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385376#c4 --- Comment #4 from Jan Matejek <jmatejek@novell.com> 2008-05-09 05:16:19 MST --- okay, correction: we -do- build opensuse on ppc64, but for whatever reason, we don't distribute most of the packages. which is strange. let me look into it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385376#c5 --- Comment #5 from Olaf Hering <olh@novell.com> 2008-05-09 06:37:17 MST --- if you want a 32bit package, build with powerpc32, like: powerpc32 rpmbuild -ba python.spec -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 User sergiodj@linux.vnet.ibm.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385376#c6 --- Comment #6 from Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com> 2008-05-09 15:43:33 MST --- (In reply to comment #4 from Jan Matejek)
okay, correction: we -do- build opensuse on ppc64, but for whatever reason, we don't distribute most of the packages. which is strange. let me look into it.
Thanks Jan, I'll be waiting for your answer on this topic. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385376#c7 --- Comment #7 from Jan Matejek <jmatejek@novell.com> 2008-05-12 09:07:23 MST --- about the ppc64 packages, i still don't know exactly why is that, but it's the status quo and there is not much i can do. about the bug: For one, it appears that what you're trying to do is unsupported by us. I still need to confirm this, but if that's really the case, i can at most give you a compiled package, not solve the actual problem. (as said before, it compiles fine in our environment and SLES 11 will have Python 2.5, maybe even 2.6) For two, our RPM_OPT_FLAGS do contain "-m64". So your suggested patch effectively does nothing. And for three, simplest way to work around this, if you don't need the sqlite3 extension, is to remove reference to _sqlite3.so from %files section. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385376#c8 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |sergiodj@linux.vnet.ibm.com --- Comment #8 from Jan Matejek <jmatejek@novell.com> 2009-01-14 11:41:09 MST --- hello, do you still have trouble with python 2.6 ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=385376 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=385376#c9 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|sergiodj@linux.vnet.ibm.com | Resolution| |WORKSFORME --- Comment #9 from Jan Matejek <jmatejek@novell.com> 2009-03-30 06:04:51 MDT --- since there was no reply for two months, i'm closing as worksforme. please reopen if this bug is still relevant -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com