MultiArch support for QT5 is insufficient for cross building

Bug #1209239 reported by Matthias Klose
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtbase-opensource-src (Ubuntu)
Fix Released
Undecided
Unassigned
qtchooser (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ sudo apt-get install qtbase5-dev:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 qtbase5-dev:armhf : Depends: qtbase5-dev-tools:armhf (= 5.0.2+dfsg1-7ubuntu2)
E: Unable to correct problems, you have held broken packages.
(rc)doko@foobar:/scratch/cmake/nux-4.0.2+13.10.20130802$ sudo apt-get install qtbase5-d$ sudo apt-get install qtbase5-dev:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 qtbase5-dev:armhf : Depends: qtbase5-dev-tools:armhf (= 5.0.2+dfsg1-7ubuntu2)
E: Unable to correct problems, you have held broken packages.
(rc)doko@foobar:/scratch/cmake/nux-4.0.2+13.10.20130802$ sudo apt-get install qtbase5-dev-tools:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mountall : Depends: plymouth but it is not going to be installed
 qtbase5-dev-tools:armhf : Depends: perl:armhf but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
(rc)doko@foobar:/scratch/cmake/nux-4.0.2+13.10.2013080ev-tools:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mountall : Depends: plymouth but it is not going to be installed
 qtbase5-dev-tools:armhf : Depends: perl:armhf but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Tags: unity8-cross
Revision history for this message
Matthias Klose (doko) wrote :

- qt5-default needs to be m-a same. files don't conflict.

- dependencies on qtbase5-dev-tools and qt5-qmake must have an :any suffix.
  TODO: Are all these tools really platform independent, or can they handle
  building for another architecture?

- qtbase5-dev-tools must depend on perl:any

- dependencies on qtchooser must be qtchooser:any

- qtchooser itself must be m-a foreign, and must be able to handle
  the defaults for all installed architectures.

Revision history for this message
Matthias Klose (doko) wrote :

 - qtbase5-private-dev must be m-a same

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtchooser - 26-3ubuntu2

---------------
qtchooser (26-3ubuntu2) saucy; urgency=low

  * Make the package Multi-Arch: foreign. LP: #1209239.
    Note, this is for installation only, choosing the defaults for the
    foreign architecture is not yet implemented.
 -- Matthias Klose <email address hidden> Wed, 07 Aug 2013 16:40:09 +0200

Changed in qtchooser (Ubuntu):
status: New → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

reopening the qtchooser task

Changed in qtchooser (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtbase-opensource-src - 5.0.2+dfsg1-7ubuntu6

---------------
qtbase-opensource-src (5.0.2+dfsg1-7ubuntu6) saucy; urgency=low

  * Remove perl:any as well from debian/rules
 -- Didier Roche <email address hidden> Thu, 08 Aug 2013 11:35:37 +0200

Changed in qtbase-opensource-src (Ubuntu):
status: New → Fix Released
Revision history for this message
Florian Boucault (fboucault) wrote :

Testing this on trusty:

$ sudo apt-get install qtbase5-dev:armhf

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 qtbase5-dev:armhf : Depends: libgles2-mesa-dev:armhf but it is not going to be installed or
                              libgles2-dev:armhf but it is not installable
E: Unable to correct problems, you have held broken packages.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Please use minimal chroot, otherwise it's easy to break _host_ OpenGL.

Revision history for this message
dima kogan (pjhhh3o25) wrote :

Hi. This doesn't work on qtbase5 yet. The amd64 and i386 builds of qtbase5-dev both ship

 /usr/include/qt5/QtCore/qconfig.h

This file differs between the arches, however. So the packages are now marked Multi-Arch:same, but cannot be co-installed.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

The remaining cross-building issues should be fixed in the latest qtchooser package (64-ga1b6736-4).

See http://perezmeyer.blogspot.ru/2017/11/experimental-cross-compiling-qt-in.html for details.

Changed in qtchooser (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.