Hi there. Hopefully an easy question but I'm stumped. How do I install the armel softfp libc6 on a new Precise armhf install?
I set APT::Architectures to { "armel" } and then tried a apt-get install libc6:armel but I get errors about the package not matching the host architecture.
-- Michael
W dniu 06.05.2012 16:06, Michael Hope pisze:
Hi there. Hopefully an easy question but I'm stumped. How do I install the armel softfp libc6 on a new Precise armhf install?
I set APT::Architectures to { "armel" } and then tried a apt-get install libc6:armel but I get errors about the package not matching the host architecture.
echo 'foreign-architecture armel' >>/etc/dpkg/dpkg.cfg.d/multiarch echo 'deb [arch=armel] http://ports.ubuntu.com/ precise main universe'
/etc/apt/sources.list.d/armel.list
apt-get update apt-get install libc6:armel
not tested, should work
On 8 May 2012 06:51, Marcin Juszkiewicz marcin.juszkiewicz@linaro.org wrote:
W dniu 06.05.2012 16:06, Michael Hope pisze:
Hi there. Hopefully an easy question but I'm stumped. How do I install the armel softfp libc6 on a new Precise armhf install?
I set APT::Architectures to { "armel" } and then tried a apt-get install libc6:armel but I get errors about the package not matching the host architecture.
echo 'foreign-architecture armel' >>/etc/dpkg/dpkg.cfg.d/multiarch echo 'deb [arch=armel] http://ports.ubuntu.com/ precise main universe'
/etc/apt/sources.list.d/armel.list
apt-get update apt-get install libc6:armel
Ah, that's the magic. The sources.list entry isn't needed as apt automatically includes any foreign architectures in the update. Probably only works as armhf is also on ports.ubuntu.com.
-- Michael
+++ Michael Hope [2012-05-08 12:08 +1200]:
On 8 May 2012 06:51, Marcin Juszkiewicz marcin.juszkiewicz@linaro.org wrote:
echo 'foreign-architecture armel' >>/etc/dpkg/dpkg.cfg.d/multiarch echo 'deb [arch=armel] http://ports.ubuntu.com/ precise main universe'
/etc/apt/sources.list.d/armel.list
apt-get update apt-get install libc6:armel
Ah, that's the magic. The sources.list entry isn't needed as apt automatically includes any foreign architectures in the update. Probably only works as armhf is also on ports.ubuntu.com.
Excactly. You don't usually need an explicit deb [arch=foo,bar] line on Debian because all arches are in the same repository, and apt will automatically try using unqualified deb lines as sources for all architectures (You do need to point at a server that actually mirror s the arches you want - not all do). But you do usually need an explicit deb line on Ubuntu because armel and armhf are in a different repo from the x86 stuff.
(I think - not actually checked with experiments on current code, but that's my understanding). So in general marcin's advice is good and the info on https://wiki.linaro.org/MichaelHope/Sandbox/MultiarchWorkarounds won't work if pointing at Ubuntu and haven't mentioned the ports line already somewhere in the config. Putting both archive and ports in unqualified will work, but every apt-get update will generate whinges about missing files as it looks for amd64 on ports.u.c and arm* on archive.u.c
Sadly this can't be automagically configured because of bug https://bugs.launchpad.net/launchpad/+bug/645127
Wookey
On Mon, May 07, 2012 at 11:51:47AM -0700, Marcin Juszkiewicz wrote:
W dniu 06.05.2012 16:06, Michael Hope pisze:
Hi there. Hopefully an easy question but I'm stumped. How do I install the armel softfp libc6 on a new Precise armhf install?
I set APT::Architectures to { "armel" } and then tried a apt-get install libc6:armel but I get errors about the package not matching the host architecture.
echo 'foreign-architecture armel' >>/etc/dpkg/dpkg.cfg.d/multiarch echo 'deb [arch=armel] http://ports.ubuntu.com/ precise main universe' >/etc/apt/sources.list.d/armel.list apt-get update apt-get install libc6:armel
not tested, should work
Where should this be documented so others can find it when they are trying to do the same as Michael?
+++ Christian Robottom Reis [2012-05-10 11:50 -0300]:
On Mon, May 07, 2012 at 11:51:47AM -0700, Marcin Juszkiewicz wrote:
W dniu 06.05.2012 16:06, Michael Hope pisze:
Hi there. Hopefully an easy question but I'm stumped. How do I install the armel softfp libc6 on a new Precise armhf install?
I set APT::Architectures to { "armel" } and then tried a apt-get install libc6:armel but I get errors about the package not matching the host architecture.
echo 'foreign-architecture armel' >>/etc/dpkg/dpkg.cfg.d/multiarch echo 'deb [arch=armel] http://ports.ubuntu.com/ precise main universe' >/etc/apt/sources.list.d/armel.list apt-get update apt-get install libc6:armel
not tested, should work
Where should this be documented so others can find it when they are trying to do the same as Michael?
There should be a howto linked from http://wiki.debian.org/Multiarch but there isn't currently. I'm sure there is one somewhere but I just failed to find it. This is one of the clearest docs currently: http://suihkulokki.blogspot.co.uk/2012/04/cross-compiling-with-multiarch-con...
The details are also on the linaro wiki here: https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/UsingMultiArch
Linked from the index page: https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuilding (which could do with an update)
Wookey
On 11 May 2012 02:50, Christian Robottom Reis kiko@linaro.org wrote:
On Mon, May 07, 2012 at 11:51:47AM -0700, Marcin Juszkiewicz wrote:
W dniu 06.05.2012 16:06, Michael Hope pisze:
Hi there. Hopefully an easy question but I'm stumped. How do I install the armel softfp libc6 on a new Precise armhf install?
I set APT::Architectures to { "armel" } and then tried a apt-get install libc6:armel but I get errors about the package not matching the host architecture.
echo 'foreign-architecture armel' >>/etc/dpkg/dpkg.cfg.d/multiarch echo 'deb [arch=armel] http://ports.ubuntu.com/ precise main universe' >/etc/apt/sources.list.d/armel.list apt-get update apt-get install libc6:armel
not tested, should work
Where should this be documented so others can find it when they are trying to do the same as Michael?
It's not official, but I have a page on patching a multiarch system so you can build GCC: https://wiki.linaro.org/MichaelHope/Sandbox/MultiarchWorkarounds
and it now has a note on installing other libcs. Matthias is working on upstreaming the multiarch patch which will eliminate the first three, and my hard float loader patch fixes the fourth.
-- Michael