[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#729187: marked as done (qtbase-opensource-src: FTBFS on mips/mipsel)



Your message dated Mon, 11 Nov 2013 15:36:24 +0000
with message-id <E1VftXM-0008Ps-3D@franck.debian.org>
and subject line Bug#729187: fixed in qtbase-opensource-src 5.2.0~beta1+dfsg-2
has caused the Debian Bug report #729187,
regarding qtbase-opensource-src: FTBFS on mips/mipsel
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
729187: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729187
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: qtbase-opensource-src
Version: 5.1.1+dfsg-5
Severity: important
Tags: patch upstream
Justification: fails to build from source

qtbase-opensource-src fails to build from source because it assumes a
MIPS32 ISA, while Debian is still using a MIPS2 ISA, mostly for the 
compatibility with Loongson 2 machines.

Qt5 is using the sync opcode with an immediate argument, which is
something introduced in the MIPS32 instruction set. However some of the
older CPUs interprets this opcode without the immediate argument (which
is a stronger ordering than with the argument), and for the others the
kernel emulates it.

It is therefore fine to use this opcode in the Qt5 build. However it's
not possible to build Qt5 with -march=mips32, as it will enable other
instructions that are not supported by older CPUs and not emulated by
the kernel.

The patch below does exactly that. With it I was able to fully build Qt5
on a MIPS system. Would it be possible to include it in the next upload?
Thanks in advance.

--- qtbase-opensource-src-5.1.1+dfsg.orig/src/corelib/arch/qatomic_mips.h
+++ qtbase-opensource-src-5.1.1+dfsg/src/corelib/arch/qatomic_mips.h
@@ -119,13 +119,19 @@ template <typename T> struct QAtomicOps
 template <int size> template <typename T> inline
 void QBasicAtomicOps<size>::acquireMemoryFence(const T &) Q_DECL_NOTHROW
 {
-    asm volatile ("sync 0x11" ::: "memory");
+    asm volatile (".set push\n"
+                  ".set mips32\n"
+                  "sync 0x11\n"
+                  ".set pop\n" ::: "memory");
 }
 
 template <int size> template <typename T> inline
 void QBasicAtomicOps<size>::releaseMemoryFence(const T &) Q_DECL_NOTHROW
 {
-    asm volatile ("sync 0x12" ::: "memory");
+    asm volatile (".set push\n"
+                  ".set mips32\n"
+                  "sync 0x12\n"
+                  ".set pop\n" ::: "memory");
 }
 
 template <int size> template <typename T> inline


-- System Information:
Debian Release: jessie/sid
  APT prefers unreleased
  APT policy: (500, 'unstable')
Architecture: mips (mips64)

Kernel: Linux 3.2.0-4-5kc-malta
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

--- End Message ---
--- Begin Message ---
Source: qtbase-opensource-src
Source-Version: 5.2.0~beta1+dfsg-2

We believe that the bug you reported is fixed in the latest version of
qtbase-opensource-src, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 729187@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org> (supplier of updated qtbase-opensource-src package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 11 Nov 2013 11:22:49 -0300
Source: qtbase-opensource-src
Binary: libqt5core5 libqt5gui5 libqt5network5 libqt5opengl5 libqt5sql5 libqt5sql5-mysql libqt5sql5-odbc libqt5sql5-psql libqt5sql5-sqlite libqt5sql5-tds libqt5xml5 libqt5dbus5 libqt5test5 libqt5concurrent5 libqt5widgets5 libqt5printsupport5 qtbase5-dev qtbase5-private-dev libqt5opengl5-dev qtbase5-dev-tools qt5-qmake qtbase5-examples qtbase5-dbg qtbase5-dev-tools-dbg qtbase5-examples-dbg qt5-default
Architecture: source amd64
Version: 5.2.0~beta1+dfsg-2
Distribution: experimental
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Description: 
 libqt5concurrent5 - Qt 5 concurrent module
 libqt5core5 - Qt 5 core module
 libqt5dbus5 - Qt 5 D-Bus module
 libqt5gui5 - Qt 5 GUI module
 libqt5network5 - Qt 5 network module
 libqt5opengl5 - Qt 5 OpenGL module
 libqt5opengl5-dev - Qt 5 OpenGL library development files
 libqt5printsupport5 - Qt 5 print support module
 libqt5sql5 - Qt 5 SQL module
 libqt5sql5-mysql - Qt 5 MySQL database driver
 libqt5sql5-odbc - Qt 5 ODBC database driver
 libqt5sql5-psql - Qt 5 PostgreSQL database driver
 libqt5sql5-sqlite - Qt 5 SQLite 3 database driver
 libqt5sql5-tds - Qt 5 FreeTDS database driver
 libqt5test5 - Qt 5 test module
 libqt5widgets5 - Qt 5 widgets module
 libqt5xml5 - Qt 5 XML module
 qt5-default - Qt 5 development defaults package
 qt5-qmake  - Qt 5 qmake Makefile generator tool
 qtbase5-dbg - Qt 5 base library debugging symbols
 qtbase5-dev - Qt 5 base development files
 qtbase5-dev-tools - Qt 5 base development programs
 qtbase5-dev-tools-dbg - Qt 5 base binaries debugging symbols
 qtbase5-examples - Qt 5 base examples
 qtbase5-examples-dbg - Qt 5 base examples debugging symbols
 qtbase5-private-dev - Qt 5 base private development files
Closes: 729187 729265
Changes: 
 qtbase-opensource-src (5.2.0~beta1+dfsg-2) experimental; urgency=low
 .
   * Install KMS/EGL CMake's configuration files for armhf.
     - Create debian/qtbase5-dev.install-armhf.
     - Move debian/qtbase5-dev.install to debian/qtbase5-dev.install-common.
   * Update symbols files.
   * Import upstream's fix_power_atomic_code.patch for fixing PowerPC's FTBFS
     (Closes: #729265). Thanks Aurelien Jarno for the patch.
   * Import upstream's support_mips_atomic_on_pre-mips32_archs.patch for fixing
     MIPS's FTBFS (Closes: #729187). Thanks Aurelien Jarno for the patch.
Checksums-Sha1: 
 e0087f3f652c7fe20c445a3dade54e9e9722358e 4577 qtbase-opensource-src_5.2.0~beta1+dfsg-2.dsc
 ef81706fb5ed45aafeffa43cb8b1a4c9b4cf1ad3 244471 qtbase-opensource-src_5.2.0~beta1+dfsg-2.debian.tar.gz
 96782b5238c296147c02290c2f8363aeb1510d0b 1750300 libqt5core5_5.2.0~beta1+dfsg-2_amd64.deb
 626e9c2c41b9cc9904a9131d027db22778da0555 1766418 libqt5gui5_5.2.0~beta1+dfsg-2_amd64.deb
 454657e7cfb44ba8c273f66bacae14459a9e2459 506554 libqt5network5_5.2.0~beta1+dfsg-2_amd64.deb
 26d4665a8a1080ae33f46b2bcb337e7aeb9b9148 138686 libqt5opengl5_5.2.0~beta1+dfsg-2_amd64.deb
 c90140132ee9f8ccbcc308cf3b1d7f18f0bd3987 104562 libqt5sql5_5.2.0~beta1+dfsg-2_amd64.deb
 04fff5683ec6ffc9779f7543ec6db580a0f63931 41560 libqt5sql5-mysql_5.2.0~beta1+dfsg-2_amd64.deb
 1ade0b05d7ba049f112f334ec67bdc530074b6f7 52130 libqt5sql5-odbc_5.2.0~beta1+dfsg-2_amd64.deb
 aa03f86856385416b0a7b273bfa101fde4b066cc 43664 libqt5sql5-psql_5.2.0~beta1+dfsg-2_amd64.deb
 af89eaecf12b8d91b27fc76081f86dc91fae3242 35712 libqt5sql5-sqlite_5.2.0~beta1+dfsg-2_amd64.deb
 ed6583e15d37be9be10b2d498a3181a9ab3fb4fa 36552 libqt5sql5-tds_5.2.0~beta1+dfsg-2_amd64.deb
 aedf1d77a2e102e1d44d76164495894c2211d0e0 93382 libqt5xml5_5.2.0~beta1+dfsg-2_amd64.deb
 7244a052118caa36e69c0583ab2a0d4b6d25c829 180766 libqt5dbus5_5.2.0~beta1+dfsg-2_amd64.deb
 6a0970b5140c62a0fc788020134fb53df79de105 78500 libqt5test5_5.2.0~beta1+dfsg-2_amd64.deb
 244dd2d0849ef0924ea02b26a72b988ff99b320c 27482 libqt5concurrent5_5.2.0~beta1+dfsg-2_amd64.deb
 31208c5e9f955718da03cfa14fe4a25949f6696c 2223382 libqt5widgets5_5.2.0~beta1+dfsg-2_amd64.deb
 f9561719f3e081dbb264a4d697b7b6924f7d9632 154260 libqt5printsupport5_5.2.0~beta1+dfsg-2_amd64.deb
 fcb08bda9009018b640661d07d5a5ef8dee622a3 1644766 qtbase5-dev_5.2.0~beta1+dfsg-2_amd64.deb
 dec6290ebde24c673638f5734d3187275f243440 601680 qtbase5-private-dev_5.2.0~beta1+dfsg-2_amd64.deb
 3aa7355358e10382230c5eb01471169c836fb90d 34686 libqt5opengl5-dev_5.2.0~beta1+dfsg-2_amd64.deb
 66692c7ab8aebc9ad6b3c1c75d2cda558d8faab9 1168870 qtbase5-dev-tools_5.2.0~beta1+dfsg-2_amd64.deb
 deba306b85d4f4512be3669b2124c10dc75b7c46 1237198 qt5-qmake_5.2.0~beta1+dfsg-2_amd64.deb
 03ad8abb3a5a6fd060ec56d6949331d335375510 4478198 qtbase5-examples_5.2.0~beta1+dfsg-2_amd64.deb
 488d5d581b33b5fc7c640ff242ed04e7c577866c 118143846 qtbase5-dbg_5.2.0~beta1+dfsg-2_amd64.deb
 401bdf07c235c8cda976179f6b7009c0a8e4fcba 27745804 qtbase5-dev-tools-dbg_5.2.0~beta1+dfsg-2_amd64.deb
 1d9d7fc5b3cde6c954d4b7ac4f23b23d32dff81b 97675450 qtbase5-examples-dbg_5.2.0~beta1+dfsg-2_amd64.deb
 d5d5b17ea4229185b412bd6598c206eee40cd9f5 19676 qt5-default_5.2.0~beta1+dfsg-2_amd64.deb
Checksums-Sha256: 
 48be45dbc8da2e97415e8314128ab4d40e06485024a12df9f1ea34d464f2e77e 4577 qtbase-opensource-src_5.2.0~beta1+dfsg-2.dsc
 219fe47523e8e8e1c5cb2d69e1a72678275a56fc9df314393036c78de2bdbb26 244471 qtbase-opensource-src_5.2.0~beta1+dfsg-2.debian.tar.gz
 d4eabf3dd9a4b06bbd1da6252e68a1261843b63db8899e6fca338d172522d240 1750300 libqt5core5_5.2.0~beta1+dfsg-2_amd64.deb
 964c1dc589fe9f944133eacf12c5be7f42aa774d40c96c2d37fd27dfc6ed1fbe 1766418 libqt5gui5_5.2.0~beta1+dfsg-2_amd64.deb
 a63b2f3261414016775c6616433030dfe54a3b530f22c3142aeb925ab13f98a4 506554 libqt5network5_5.2.0~beta1+dfsg-2_amd64.deb
 d0e5812a882eb5b57a2e658552db28414bcb54e5103ac63b2638355c6adbc875 138686 libqt5opengl5_5.2.0~beta1+dfsg-2_amd64.deb
 e349e5050383709422aa206b33a1294e25d467487f53ff6e4153c60bc17bb595 104562 libqt5sql5_5.2.0~beta1+dfsg-2_amd64.deb
 4d05966ee12d230d8629de20bcde56b49c15309ffd47bd4f6c59c6fa719a749d 41560 libqt5sql5-mysql_5.2.0~beta1+dfsg-2_amd64.deb
 ce7aeef19016ba43ac4071d5ff4ff3b52d9f282f347305da4c019c72e1955808 52130 libqt5sql5-odbc_5.2.0~beta1+dfsg-2_amd64.deb
 a48fcda00d73048b68c908048f575e26fb46fcffc244ecb2e3c511019372e755 43664 libqt5sql5-psql_5.2.0~beta1+dfsg-2_amd64.deb
 438e1c71b3e43d5835e1bc9c6e2ca6d743bb90521aa8d7cfc1e111291a39908c 35712 libqt5sql5-sqlite_5.2.0~beta1+dfsg-2_amd64.deb
 921be033564d85aad8b7b131fa44ecf7c9844ab6baef4c9083a5e3e38a8545f2 36552 libqt5sql5-tds_5.2.0~beta1+dfsg-2_amd64.deb
 b2fc7b605e1ba2242b45194e9a21ba043e90d4c6f4bad6137ad4636d743794cb 93382 libqt5xml5_5.2.0~beta1+dfsg-2_amd64.deb
 136197dbc95a79dca7815d17369848924eb3a72711c47df1fc0b33318a8f55c3 180766 libqt5dbus5_5.2.0~beta1+dfsg-2_amd64.deb
 c14a3f2a0cf2b4ceaf34fb2e91dda7b212ec1662b39a91bbfe40c0ba37059994 78500 libqt5test5_5.2.0~beta1+dfsg-2_amd64.deb
 3279c0ceb8d15f899bb1560f54f85d08a4f182da4cceb6a69388466199fae4a4 27482 libqt5concurrent5_5.2.0~beta1+dfsg-2_amd64.deb
 378ee4e90491ff2e8988e6116fed8dde2e2bf0a53ec037c85cf9f963698c3ecc 2223382 libqt5widgets5_5.2.0~beta1+dfsg-2_amd64.deb
 3320772b09dc4e121e7ac0a7a0b5e31f63abe52ebd375ffa4af953cb04564df6 154260 libqt5printsupport5_5.2.0~beta1+dfsg-2_amd64.deb
 81e51ec5abf1dc78ab5b1635d3a21280a808d06530e4498074c1d38eb29f6e6b 1644766 qtbase5-dev_5.2.0~beta1+dfsg-2_amd64.deb
 c13577eded24207dc1d12a0592bc588d749d534f1fbdd73799b5db3ed8c86a45 601680 qtbase5-private-dev_5.2.0~beta1+dfsg-2_amd64.deb
 21353d7497397578523396fd20fcc50dd1369a34366fc151178390ffd3292eb6 34686 libqt5opengl5-dev_5.2.0~beta1+dfsg-2_amd64.deb
 637255bdf88cebf79c9875733a149908a844fd54359a9240b63031a2a6b01e83 1168870 qtbase5-dev-tools_5.2.0~beta1+dfsg-2_amd64.deb
 4ba4915455453a27f4555fbe989cf0f1fbafb64fa1e87b4825cdedc3e5d05d64 1237198 qt5-qmake_5.2.0~beta1+dfsg-2_amd64.deb
 da875a8e7d8ecddffb45f1d8f440b71c5ca5a67ee6da91583bcf0e8b483078a2 4478198 qtbase5-examples_5.2.0~beta1+dfsg-2_amd64.deb
 580e8442f9e55fbea784119866a6ffdb61e9cc69737536110fdcda7fb0d9718c 118143846 qtbase5-dbg_5.2.0~beta1+dfsg-2_amd64.deb
 25a7b0497946a2b502b61b2b430e58c8d32ead271e711c00c97d3376460122df 27745804 qtbase5-dev-tools-dbg_5.2.0~beta1+dfsg-2_amd64.deb
 6c7dad249287d007536845bc420db6abd3181d0a69d89475ecaf560db070e4f8 97675450 qtbase5-examples-dbg_5.2.0~beta1+dfsg-2_amd64.deb
 e4f1255238c2484f7bb91dc171c37695bbe446136ec536f1b217853332297fe2 19676 qt5-default_5.2.0~beta1+dfsg-2_amd64.deb
Files: 
 c07ddc396b6bedb017d4c625f35db05b 4577 libs optional qtbase-opensource-src_5.2.0~beta1+dfsg-2.dsc
 0ad020794694fc56d85cee7f595eb626 244471 libs optional qtbase-opensource-src_5.2.0~beta1+dfsg-2.debian.tar.gz
 c0887b51b89e2d09548ca8985897cc92 1750300 libs optional libqt5core5_5.2.0~beta1+dfsg-2_amd64.deb
 36d2b67ba58e256c7baccbe224382c3c 1766418 libs optional libqt5gui5_5.2.0~beta1+dfsg-2_amd64.deb
 841c3e9b5307f4305c33e4015f81ec8d 506554 libs optional libqt5network5_5.2.0~beta1+dfsg-2_amd64.deb
 7916df9d9dd3fc49706e6517a75bb7bc 138686 libs optional libqt5opengl5_5.2.0~beta1+dfsg-2_amd64.deb
 3553ca6565ae84d8026423272f3f8537 104562 libs optional libqt5sql5_5.2.0~beta1+dfsg-2_amd64.deb
 471c5acd006fc3280f16679c9c910ba8 41560 libs optional libqt5sql5-mysql_5.2.0~beta1+dfsg-2_amd64.deb
 117a4d74e1e2373f40a7c5874bdcb4aa 52130 libs optional libqt5sql5-odbc_5.2.0~beta1+dfsg-2_amd64.deb
 aa7a85749ab6affd58231dcfeb94e582 43664 libs optional libqt5sql5-psql_5.2.0~beta1+dfsg-2_amd64.deb
 f2a0dec30913510b7424c31235f6641c 35712 libs optional libqt5sql5-sqlite_5.2.0~beta1+dfsg-2_amd64.deb
 5d41de27e8ec549269b9b1f33533fdc3 36552 libs optional libqt5sql5-tds_5.2.0~beta1+dfsg-2_amd64.deb
 5444c22e166425f0b0703f22ff6e2c64 93382 libs optional libqt5xml5_5.2.0~beta1+dfsg-2_amd64.deb
 bc3e067224a5ffbdc5b91e55d29a21de 180766 libs optional libqt5dbus5_5.2.0~beta1+dfsg-2_amd64.deb
 818eb82e821440f3d081b0e4f8a9fef9 78500 libs optional libqt5test5_5.2.0~beta1+dfsg-2_amd64.deb
 a4dec1fefff2c41d65acf8b7858cf0cf 27482 libs optional libqt5concurrent5_5.2.0~beta1+dfsg-2_amd64.deb
 ae5e1a5fa84e26122fa1174981b69844 2223382 libs optional libqt5widgets5_5.2.0~beta1+dfsg-2_amd64.deb
 7d7432e6441fe9104d07fdbcb6d165f9 154260 libs optional libqt5printsupport5_5.2.0~beta1+dfsg-2_amd64.deb
 0ef6fddf73f41bbf02628e945ea12ec7 1644766 libdevel optional qtbase5-dev_5.2.0~beta1+dfsg-2_amd64.deb
 a8fc9c999f62a2d720bd6679d259b93d 601680 libdevel optional qtbase5-private-dev_5.2.0~beta1+dfsg-2_amd64.deb
 10d7b52d0fd225139eff935785a09c82 34686 libdevel optional libqt5opengl5-dev_5.2.0~beta1+dfsg-2_amd64.deb
 79a81e50330ef0c0dd85eeccde615fbb 1168870 devel optional qtbase5-dev-tools_5.2.0~beta1+dfsg-2_amd64.deb
 0293293bbf3b63a5f4f216ac08d3ed06 1237198 devel optional qt5-qmake_5.2.0~beta1+dfsg-2_amd64.deb
 a20c7ed27f01c6ba9688c31099571cea 4478198 x11 optional qtbase5-examples_5.2.0~beta1+dfsg-2_amd64.deb
 4318b58f31bbdcbb2975cd90d455833d 118143846 debug extra qtbase5-dbg_5.2.0~beta1+dfsg-2_amd64.deb
 5184bf81618c4659def29386adfd4c00 27745804 debug extra qtbase5-dev-tools-dbg_5.2.0~beta1+dfsg-2_amd64.deb
 3177fa46d3deb6405f9647bac3aceffd 97675450 debug extra qtbase5-examples-dbg_5.2.0~beta1+dfsg-2_amd64.deb
 19a38365ca69e4b2980c06c382c89192 19676 libs optional qt5-default_5.2.0~beta1+dfsg-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQIcBAEBCAAGBQJSgPUfAAoJEKtkX0BihqfQBYsP/Rsehh4+Mk8Fjjrsf9fKA8RR
DilHtQipWdYOx4ldubwMErfMboeBvFc0L/da0xUojYBX3kmXx9Q8LZgzy55upm2s
+8j9bVldT9XZ/B8WxtEmnRGicznT6ZakVK9Ek3DUK8yLXjaaJZ9+ipSo2g/Q8JMF
UVDWkO5NdoqHmIylFDzyazOKaIhN8zw2CCY0QDMm+9DkcG8Z3Ho4ljFjC2xDnM01
L9Cy4Ia0ATCswFPNZE5qjKZhmdJmGJcjpOXrkLDn+GyCoRLTSbWLasZE3Mmd0U9y
YFmlqGrxRj0zHQgNGxO8H28UD8NLnt7Mmt/z8kC0yX06qCobaoRe8IFneC4QF2gm
Pi6c1qGifUZy9t4WTrRr87zihD6g2YYiYP/O44dSkUUytbMfvXklDycLAu7MZ+CR
58z1RVVSAluNAFQw5dxqGDN81LiBUo1MgY8l4d0KnEhqJqm2ZlvO1sG9TFWWYfdf
ycNfk+0cQUiE1L6VpuppMxyM7r9Jn7tAXbh2LrudtjNxPv9rFApGjgCxOjfEJTxl
6AINAxLFc8yaRGbOP74QdqammIsG1zCvwDJCfAz2AFhyvp+d/hWMKAwYfsvwKVOE
m0Hee3ta+qqcFrUDbMUuGDyz7UFABAkXpiAbgVGPI/ZBV4bzvOmV2YibZbLcW+ml
RS88QwQVVMCk/kVDY6v9
=8Dmk
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: