[Bug 1343656] Re: Unable to install crossbuild-essential-powerpc on x86_64 (amd64)

TJ ubuntu at iam.tj
Tue Sep 16 21:02:57 UTC 2014


Several changes are needed to support a ports foreign architecture:

dpkg --add-architecture powerpc

# modify existing sources, restricting to appropriate architectures
sudo sed 's~\(\(deb\(-src\)*\) \([^\[]\)\)~\2 [arch=i386,amd64] \4~'   /etc/apt/sources.list /etc/apt/sources.list.d/*.list

# create source list for the port architecture(s)
cat >/etc/apt/sources.list.d/powerpc-ports.list <<EOT
deb [arch=armhf,arm64,powerpc,ppc64el] http://ports.ubuntu.com/ trusty main universe multiverse restricted
deb [arch=armhf,arm64,powerpc,ppc64el] http://ports.ubuntu.com/ trusty-updates main universe multiverse restricted
deb [arch=armhf,arm64,powerpc,ppc64el] http://ports.ubuntu.com/ trusty-security main universe multiverse restricted
EOT

apt-get update


However, this then leads to apt wanting to remove g++-multilib and gcc-multilib

apt-get install crossbuild-essential-powerpc

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  binutils-powerpc-linux-gnu cpp-4.8-powerpc-linux-gnu cpp-powerpc-linux-gnu
  g++-4.8-multilib-powerpc-linux-gnu g++-4.8-powerpc-linux-gnu
  g++-powerpc-linux-gnu gcc-4.8-multilib-powerpc-linux-gnu
  gcc-4.8-powerpc-linux-gnu gcc-4.8-powerpc-linux-gnu-base
  gcc-4.9-base:powerpc gcc-powerpc-linux-gnu lib64asan0-powerpc-cross
  lib64atomic1-powerpc-cross lib64gcc-4.8-dev-powerpc-cross
  lib64gcc1-powerpc-cross lib64gomp1-powerpc-cross
  lib64stdc++-4.8-dev-powerpc-cross lib64stdc++6-powerpc-cross
  libasan0-powerpc-cross libatomic1-powerpc-cross libc6:powerpc
  libc6-dev:powerpc libc6-dev-powerpc-cross libc6-dev-ppc64-powerpc-cross
  libc6-powerpc-cross libc6-ppc64-powerpc-cross libgcc-4.8-dev-powerpc-cross
  libgcc1:powerpc libgcc1-powerpc-cross libgomp1-powerpc-cross
  libstdc++-4.8-dev-powerpc-cross libstdc++6-powerpc-cross
  linux-libc-dev:powerpc linux-libc-dev-powerpc-cross
  pkg-config-powerpc-linux-gnu
Suggested packages:
  binutils-doc gcc-4.8-locales cpp-doc lib64stdc++6-4.8-dbg-powerpc-cross
  gcc-4.8-doc libstdc++6-4.8-dbg-powerpc-cross libgcc1-dbg-powerpc-cross
  libgomp1-dbg-powerpc-cross libitm1-dbg-powerpc-cross
  libatomic1-dbg-powerpc-cross libasan0-dbg-powerpc-cross
  libtsan0-dbg-powerpc-cross libbacktrace1-dbg-powerpc-cross
  libquadmath-dbg-powerpc-cross automake1.9 gdb-powerpc-linux-gnu gcc-doc
  glibc-doc:powerpc locales:powerpc manpages-dev:powerpc
Recommended packages:
  gcc:powerpc c-compiler:powerpc
The following packages will be REMOVED
  g++-multilib gcc-multilib
The following NEW packages will be installed
  binutils-powerpc-linux-gnu cpp-4.8-powerpc-linux-gnu cpp-powerpc-linux-gnu
  crossbuild-essential-powerpc g++-4.8-multilib-powerpc-linux-gnu
  g++-4.8-powerpc-linux-gnu g++-powerpc-linux-gnu
  gcc-4.8-multilib-powerpc-linux-gnu gcc-4.8-powerpc-linux-gnu
  gcc-4.8-powerpc-linux-gnu-base gcc-4.9-base:powerpc gcc-powerpc-linux-gnu
  lib64asan0-powerpc-cross lib64atomic1-powerpc-cross
  lib64gcc-4.8-dev-powerpc-cross lib64gcc1-powerpc-cross
  lib64gomp1-powerpc-cross lib64stdc++-4.8-dev-powerpc-cross
  lib64stdc++6-powerpc-cross libasan0-powerpc-cross libatomic1-powerpc-cross
  libc6:powerpc libc6-dev:powerpc libc6-dev-powerpc-cross
  libc6-dev-ppc64-powerpc-cross libc6-powerpc-cross libc6-ppc64-powerpc-cross
  libgcc-4.8-dev-powerpc-cross libgcc1:powerpc libgcc1-powerpc-cross
  libgomp1-powerpc-cross libstdc++-4.8-dev-powerpc-cross
  libstdc++6-powerpc-cross linux-libc-dev:powerpc linux-libc-dev-powerpc-cross
  pkg-config-powerpc-linux-gnu
0 to upgrade, 36 to newly install, 2 to remove and 3 not to upgrade.
Need to get 33.8 MB of archives.
After this operation, 122 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to build-essential in Ubuntu.
https://bugs.launchpad.net/bugs/1343656

Title:
  Unable to install crossbuild-essential-powerpc on x86_64 (amd64)

Status in “build-essential” package in Ubuntu:
  Incomplete

Bug description:
  The Ubuntu 14.04LTS 64-bit is installed within a brand-new VM (using
  VirtualBox 4.3.12).  The host machine and the VM are both x86_64
  (amd64).  I would like to get a powerpc-linux-gnu cross-toolchain up
  and running, and noticed that Ubuntu had a specific package for this.

  First, I executed "sudo apt-get install build-essential".
  Second, I executed "sudo dpkg --add-architecture powerpc".
  Third, I executed "sudo apt-get install crossbuild-essential-powerpc".

  I expected the third command to succeed.  Instead, it failed while providing the following output:
  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:
   crossbuild-essential-powerpc : Depends: libc6-dev:powerpc but it is not installable
  E: Unable to correct problems, you have held broken packages.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: crossbuild-essential-powerpc (not installed)
  ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
  Uname: Linux 3.13.0-24-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.2
  Architecture: amd64
  Date: Thu Jul 17 13:53:14 2014
  InstallationDate: Installed on 2014-07-17 (0 days ago)
  InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
  ProcEnviron:
   TERM=linux
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: build-essential
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/build-essential/+bug/1343656/+subscriptions



More information about the foundations-bugs mailing list