comp.lang.ada
 help / color / mirror / Atom feed
From: gshapovalov@gmail.com
Subject: Re: Multi-arch
Date: 17 May 2006 13:31:49 -0700
Date: 2006-05-17T13:31:49-07:00	[thread overview]
Message-ID: <1147897909.555389.11030@38g2000cwa.googlegroups.com> (raw)
In-Reply-To: 1147857777.703653.268610@j33g2000cwa.googlegroups.com

Ludovic Brenta wrote:
> I am following up on the questions raised here about running both
> 32-bit and 64-bit binary code on the same machine. This is called
> biarch. Currently, the gcc-4.1 source package in Debian supports biarch
[skipped]
> i586 and i686. The proposed design would solve the current problems
> with biarch, at the expense of rewriting dpkg almost from scratch.
>
> http://multiarch.alioth.debian.org/
>
> Thoughts?

Biarch, multiarch, khm, whatever :).
On the topic:
Yes, it can be done and is very well worth it. On Gentoo it is called
multilib and is supported distribution-wide, not only for x86 and
amd64, but ppc and sparc have theirs multilibs too IIRC (I think both
of them, but may be only sparc actually).  gcc is supported, as well
as Ada and most of the libs and apps (to the point where you can
have wine running 32-bit Windows code on otherwise
64bit-clean system - kernel and userspace).

This is regulated primarily via multilib and toolchain eclasses, which
is
basically the way to contain common controlling code. I recently put
Ada
on the same rails, so that now, on a multilib system, (that is for
users who
selected the multilib profile) two sets of rts libs are generated and
compiler can generate 64bit or 32bit code. Although, as there were no
requests so far, I haven't yet automatized switching between the
multilib
sub-profiles, only the usual niceties - like having FSF's 3.4.x, 4.1.x
based and AdaCore's gnat-gpl compilers installed side-by-side and
activated as necessary..

You can see the code here:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/eclass/
You would be looking for the toolchain.eclass, multilib.eclass and
possibly
some other eclasses. And here:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/dev-lang/gnat-gcc/
http://www.gentoo.org/cgi-bin/viewcvs.cgi/dev-lang/gnat-gpl/

The ebuilds and eclasses are mostly just a bash code, so should be
familiar, aside from a few vars that have special meaning. Some
Ada-specific implementation details and discussion can be found
in this bug:
https://bugs.gentoo.org/show_bug.cgi?id=111340
and you can catch me on irc,freenode.net in channels #gentoo and
#gentoo-dev if you would like to discuss this further (my nick there
is georges, email of course works too: george at gentoo.org), although
I suppose the way it will have to be done on Debian would be quite
different..

George




  parent reply	other threads:[~2006-05-17 20:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-17  9:22 Multi-arch Ludovic Brenta
2006-05-17  9:45 ` Multi-arch Georg Bauhaus
2006-05-17 20:31 ` gshapovalov [this message]
2006-05-18 11:39   ` Multi-arch Ludovic Brenta
2006-05-18 16:34     ` Multi-arch gshapovalov
2006-05-18 21:24 ` Multi-arch Björn Persson
2006-05-19  7:23   ` Multi-arch Ludovic Brenta
2006-05-19 21:16     ` Multi-arch Björn Persson
2006-05-20 11:18       ` Multi-arch Ludovic Brenta
2006-05-20 17:51         ` Multi-arch Björn Persson
2006-05-21 16:03   ` Multi-arch Dr. Adrian Wrigley
2006-05-21 13:05 ` Multi-arch Dr. Adrian Wrigley
2006-05-21 13:41   ` Multi-arch Ludovic Brenta
2006-05-21 16:07     ` Multi-arch Dr. Adrian Wrigley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox