crossbuild icon indicating copy to clipboard operation
crossbuild copied to clipboard

failure building the docker image

Open ChristThePhone opened this issue 6 years ago • 3 comments

Ran the make file on my Ubuntu 16.04 VM but the build ended pretty early with this :

`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-arm64 : Depends: gcc-aarch64-linux-gnu (>= 4.9.1-1) but it is not going to be installed Depends: g++-aarch64-linux-gnu (>= 4.9.1-1) but it is not going to be installed crossbuild-essential-armel : Depends: gcc-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed Depends: g++-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed crossbuild-essential-armhf : Depends: gcc-arm-linux-gnueabihf (>= 4.9.1-1) but it is not going to be installed Depends: g++-arm-linux-gnueabihf (>= 4.9.1-1) but it is not going to be installed crossbuild-essential-mipsel : Depends: gcc-mipsel-linux-gnu (>= 4.9.1-1) but it is not going to be installed Depends: g++-mipsel-linux-gnu (>= 4.9.1-1) but it is not going to be installed crossbuild-essential-ppc64el : Depends: gcc-powerpc64le-linux-gnu (>= 4.9.1-1) but it is not going to be installed Depends: g++-powerpc64le-linux-gnu (>= 4.9.1-1) but it is not going to be installed E: Unable to correct problems, you have held broken packages. The command '/bin/sh -c set -x; echo deb http://emdebian.org/tools/debian/ jessie main > /etc/apt/sources.list.d/emdebian.list && curl -sL http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add - && dpkg --add-architecture arm64 && dpkg --add-architecture armel && dpkg --add-architecture armhf && dpkg --add-architecture i386 && dpkg --add-architecture mips && dpkg --add-architecture mipsel && dpkg --add-architecture powerpc && dpkg --add-architecture ppc64el && apt-get update && apt-get install -y -q autoconf automake autotools-dev bc binfmt-support binutils-multiarch binutils-multiarch-dev build-essential clang crossbuild-essential-arm64 crossbuild-essential-armel crossbuild-essential-armhf crossbuild-essential-mipsel crossbuild-essential-ppc64el curl devscripts gdb git-core libtool llvm mercurial multistrap patch python-software-properties software-properties-common subversion wget xz-utils cmake qemu-user-static && apt-get clean' returned a non-zero code: 100 Makefile:17: recipe for target '.built' failed make: *** [.built] Error 1`

Any ideas how to fix it ?

ChristThePhone avatar Apr 05 '18 05:04 ChristThePhone

I've played a little with the Dockerfile. Inserted a new apt-get update && apt-get install {gcc,g++}-{*} to the beginning of dependency installation. Got this log: http://termbin.com/vlyz

lezsakdomi avatar May 29 '18 12:05 lezsakdomi

It seems emdebian is not a trusted source anymore. It probably got broken dependencies. https://lists.debian.org/debian-embedded/2015/01/msg00013.html https://lists.debian.org/debian-embedded/2015/01/msg00015.html

OliPro007 avatar Jun 17 '18 17:06 OliPro007

https://github.com/multiarch/crossbuild/pull/40 this helps, but the Darwin SDK needs to be updated (it points to Dropbox for some reason, not sure who has access to it)

andrusha avatar Oct 28 '19 13:10 andrusha