On Sat, Mar 03, 2018 at 08:39:15AM -0600, Christopher Koenig wrote: > We've recently started seeing (on Jessie) these failures from "apt-get > install crossbuild-essential-armhf": > > The following packages have unmet dependencies: > 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 > E: Unable to correct problems, you have held broken packages. > > It looks like this may be a recurrence of an earlier problem ([1]): > recently gcc-4.9 upgraded ([2]) from 4.9.2-10 to 4.9.2-10+deb8u1, > but gcc-4.9-arm-linux-gnueabihf and g++-4.9-arm-linux-gnueabihf (both still > at 4.9.2-10) have a strict dependency on the 4.9.2-10 packages ([3]). > > [1] https://lists.debian.org/debian-embedded/2015/03/msg00001.html > [2] > http://metadata.ftp-master.debian.org/changelogs/main/g/gcc-4.9/gcc-4.9_4.9.2-10+deb8u1_changelog > [3] http://emdebian.org/tools/debian/dists/jessie/main/binary-amd64/Packages
This is still a problem. For what it's worth, my workaround is to block or downgrade the upgrade to gcc-4.9 via APT pinning. Add the following file and `apt-get install crossbuild-essential-*` ought to work. Note your native and cross toolchains will lose 4.9.2-10+deb8u1's backport of the retpoline mitigation for Spectre (according to gcc-4.9's changelog[1]). /etc/apt/preferences.d/emdebian-gcc-4.9.2-10.pref: -- 8< -- Explanation: Emdebian's cross-compilers depend on gcc-4.9 (= 4.9.2-10) Explanation: Prevent or downgrade the recent security update Package: cpp-4.9:* g++-4.9:* gcc-4.9:* gcc-4.9-base:* libasan1:* \ libatomic1:* libcilkrts5:* libgcc-4.9-dev:* libgomp1:* libitm1:* \ liblsan0:* libquadmath0:* libstdc++-4.9-dev:* libstdc++6:* \ libtsan0:* libubsan0:* Pin: version 4.9.2-10 Pin-Priority: 1001 Explanation: Emdebian's cross-compilers depend on gcc-4.9 (= 4.9.2-10) Explanation: Prevent or downgrade the recent security update Package: libgcc1:* Pin: version 1:4.9.2-10 Pin-Priority: 1001 -- >8 -- -- Ryan [1]: http://metadata.ftp-master.debian.org/changelogs/main/g/gcc-4.9/gcc-4.9_4.9.2-10+deb8u1_changelog