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

Re: Bug#447427: dpkg-cross: please support wrong architecture

On 10/22/07, Ron <ron@debian.org> wrote:
> On Mon, Oct 22, 2007 at 10:45:39AM +0200, Jonas Meyer wrote:
> > On 10/22/07, Neil Williams <codehelp@debian.org> wrote:
> > > On Sun, 21 Oct 2007 08:37:38 +0200
> > > Jonas Meyer <quitte@gmail.com> wrote:
> > > > To create toolchains that have a new debian name than an already existing
> > > > architecture it'd be useful if something like this worked:
> > > >
> > > > dpkg-cross -a uclibc-mipsel -i libc6_2.6.1-6_mipsel.deb
> > > > dpkg-cross: libc6_2.6.1-6_mipsel.deb has wrong architecture (mipsel)
> > > > dpkg-cross: conversion of libc6_2.6.1-6_mipsel.deb failed.
> > > >
> > > > Please consider adding an option to disable that check.
> We don't need to disable this check if the correct dpkg foo-table
> entries are added for the desired arch, right?

No. I want to beable to forcibly cross install mipsel libc packages as
uclibc packages to build the cross-compiler.
>From gccs README.cross:
-1.3. libc for target

-You also need libc library and development packages for the target
-architecture installed.

-To get those, download linux-kernel-headers, libc6, and libc6-dev binary
-debs for your target, convert those using dpkg-cross -b, and install
-resulting -arch-cross debs. Consult dpkg-cross manual page for more

Using the mipsel packages to build the uclibc-mipsel cross-compiler
works good enough. But it is necessary to install them as
uclibc-mipsel-cross packages. I'd prefer if there was proper support
for bootstrapping but this seems to be a pretty good way around that
problem to me.


Reply to: