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

Re: RFC: cross toolchain and Debian



On Wed, Sep 12, 2001 at 04:15:18PM -0700, David Kimdon wrote:
> This is how I would like to see someone create a cross toolchain under
> Debian, for a powerpc target as an example:
> 
> Get the most recent versions of binutils, gcc and glibc.
> # export DEB_TARGET_GNU_TYPE=powerpc-linux
> # cd binutils-x.x.x.x ; dpkg-buildpackage -uc -us
> dpkg-deb: building package `binutils-cross-powerpc-linux' in . . . 

Could, maybe, sorta be made to work.  It is a tremendous time
investment on the part of tools maintainers.

> build/install gcc-core-x.x.x, then build/install glibc-x.x,
> then build gcc-x.x.x

Not as simple as it sounds.

> Once I have configured dpkg-cross I can do:
> 
> # apt-get source libgmp3
> # cd libgmp3-x.x.x ; dpkg-buildpackage -apowerpc
> . . .
> dpkg-deb: building package `libgmp3` in `../libgmp3_x.x.x-x_powerpc.deb' 
> #
> That is the library that I can install on the target, I can then do
> 
> # dpkg-cross -apowerpc -b libgmp3_x.x.x-x_powerpc.deb
> 
> to get headers and libs installed on the system.

Building packages this way, in general, is NOT feasible.  MontaVista
(my day job) has patches to cross compile about two hundred Debian
packages, and we're slowly feeding them back; they're invasive, and
exceedingly ugly.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



Reply to: