multiarch / crossbuild

:earth_africa: multiarch cross compiling environments
MIT License
933 stars 141 forks source link

failure building the docker image #38

Open ChristThePhone opened 6 years ago

ChristThePhone commented 6 years ago

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 ?

lezsakdomi commented 6 years ago

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

OliPro007 commented 6 years ago

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

andrusha commented 4 years ago

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)