Re: Unmet dependencies problem in CrossToolchains

John Morris <[email protected]> Mon, 30 Mar 2015 22:16:52 -0500
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <[email protected]>

On 03/30/2015 05:10 PM, John Morris wrote:
>
>
> On 03/09/2015 10:52 PM, Wookey wrote:
>> +++ John Morris [2015-03-06 02:53 -0600]:
>>> On 01/16/2015 01:18 PM, Wookey wrote:
>>>
>>> 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
> [...]
>> 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.
>
> Verified that `apt-get install crossbuild-essential-armhf` now succeeds.
>   Thank you!
>
> A couple more issues:
>
> - A package (Xenomai) requires `build-essential`, but nothing installed
> by `crossbuild-essential-armhf` provides `build-essential:armhf`.  That
> causes `mk-build-deps -a armhf` to fail.  How is this normally addressed
> in a Debian package cross-compile scenario?

I'm going to try setting up Wookey's cross-build daemon or use sbuild 
directly, so never mind.  (I remember finding instances where 
`mk-build-deps` appeared to do the wrong thing even while the `dpkg` 
tools did the right thing, which has me suspicious of that script anyway.)

>
> - Another project (Machinekit) I updated for cross-building will want
> `pkg-config`.  Ubuntu supplies a special cross-build-aware version,
> `pkg-config-arm-linux-gnueabihf`.  I'll pick it up, since I don't see it
> in the Emdebian distribution.  Is that package something on the Emdebian
> maintainers' radar?

Answering my own prematurely-asked question:  The `pkg-config` package 
contains the `/usr/share/pkg-config-crosswrapper` script, which simply 
adds 
`PKG_CONFIG_PATH=/usr/lib/${triplet}/pkgconfig:/usr/${triplet}/lib/pkgconfig` 
to the environment.

>
> I maintain a Machinekit + dependency multi-arch/multi-distro package
> distribution with a stack of packages including RT kernels, so I have an
> idea how much work goes into the Emdebian distribution.  Thank you!

Except for this paragraph, my previous email can be ignored.  ;)

	John