[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unmet dependencies problem in CrossToolchains



Wookey <wookey <at> wookware.org> writes:
> 
> +++ John Morris [2015-03-06 02:53 -0600]:
> > On 01/16/2015 01:18 PM, Wookey wrote:
> > 
> > I'm looking to do some x86_64 cross ARM builds in Jessie, and came
> > across the [same instructions] as the OP.
> > 
> > [same instructions]: https://wiki.debian.org/CrossToolchains
> > 
> > Setting up the repo as described and running `apt-get install
> > crossbuild-essential-armhf` fails with the error message:
> > 
> >     The following packages have unmet dependencies:
> >      crossbuild-essential-armhf : Depends: g++-arm-linux-gnueabihf
> >       (>= 4.9.1-1) but it is not going to be installed
> > 
> > The dependency problem can be traced to the emdebian.org g++
> > cross-compiler package requiring a version+release-identical
> > libstdc++ package, which doesn't match the current mainline package:
> > 
> >     # apt-cache show g++-4.9-arm-linux-gnueabihf | grep Depends:
> >     Depends:  cpp-4.9-arm-linux-gnueabihf (>= 4.9.1-19),
> >      gcc-4.9-arm-linux-gnueabihf (= 4.9.1-19), libstdc++-4.9-dev:armhf
> >      (= 4.9.1-19), libc6 (>= 2.14), libcloog-isl4 (>= 0.17),
> >      libgmp10 (>= 2:5.0.1~), libisl10 (>= 0.10), libmpc3, libmpfr4
> >      (>= 3.1.2), zlib1g (>= 1:1.1.4)
> >     # apt-cache policy libstdc++-4.9-dev:armhf
> >     libstdc++-4.9-dev:armhf:
> >       Installed: 4.9.2-10
> >       Candidate: 4.9.2-10
> >       Version table:
> >      *** 4.9.2-10 0
> >         500 http://http.debian.net/debian/ jessie/main armhf Packages
> >         100 /var/lib/dpkg/status
> > 
> > Unstable has been on g++ v. 4.9.2 since November, but the above
> > quote indicates that the emdebian.org packages worked in January,
> > aside from a known complication that doesn't look like the same
> > problem and sounds fixed anyway.
> > 
> > What am I missing?  Thanks-
> 
> I'm not sure - can you clarify whether you are trying to install to
> jessie or unstable?
> 
> Everything has just changed for jessie anyway as 4.9.2-10 gcc migrated
> to testing so 4.9.1-19 is now obsolete. I've migrated some packages to
> the jessie repo and am building some more. Hopefully everything will
> be back in working order in a couple of days.
> 

For the past couple of days I've been trying to put together a cross
toolchain on jessie for armhf (unstable), using the instructions at
https://wiki.debian.org/CrossToolchains but unfortunately I'm getting the
same error as John did:

    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.


And I appear to be experiencing a similar cause to John's, with the rev
spec'd for libstdc++-4.9-dev:armhf as equal to rev 4.9.2-10, but the
Candidate coming up as 4.9.2-15:

    conib@debian:~$ sudo apt-cache show g++-4.9-arm-linux-gnueabihf | grep
Depends:
    Depends: cpp-4.9-arm-linux-gnueabihf (>= 4.9.2-10),
gcc-4.9-arm-linux-gnueabihf (= 4.9.2-10), libstdc++-4.9-dev:armhf (=
4.9.2-10), libc6 (>= 2.14), libcloog-isl4 (>= 0.17), libgmp10 (>= 2:5.0.1~),
libisl10 (>= 0.10), libmpc3, libmpfr4 (>= 3.1.2), zlib1g (>= 1:1.1.4)

    conib@debian:~$ sudo apt-cache policy libstdc++-4.9-dev:armhf
libstdc++-4.9-dev:armhf:
      Installed: (none)
      Candidate: 4.9.2-15
      Version table:
         4.9.2-15 0
            500 http://ftp.debian.org/debian/ unstable/main armhf Packages
         4.9.2-10 0
            500 http://ftp.us.debian.org/debian/ jessie/main armhf Packages


While I've got some experience in cross-dev under various Unix flavors for
other architectures I'm very, very new to Linux cross-development. So I'm
still feeling my way around Linux packages, Debian, etc. and it's entirely
possible that I'm misunderstanding what's going on with this issue ...

Thanks in advance for any help, pointers, advice, ...

-- conib




Reply to: