Translation(s): Brasileiro - English - Español - Français - Русский
Multiarch is the ability to install and run packages for multiple binary targets on the same system (usually i386-linux-gnu packages on amd64-linux-gnu systems). This is useful if you want to run an old 32-bit program on a modern 64-bit PC. See CategoryMultiarch for related pages.
Cross-compiling (sometimes called cross-building) is the act of compiling code for one binary target using a computer with a different binary target. This is useful if you want to compile a program for a slow embedded device on a fast PC.
Multilib is the ability for a single toolchain to create programs for different architectures. This is being deprecated in favour of multiarch.
Cross-grading is the act of changing a system's (main) binary target. This may be useful if you want to e.g. switch an old i386 system to x86_64 and can't reinstall from scratch for some reason.
This page covers all the above concepts, because they're indivisible in practice even though they're distinct in theory.
Documentation
The case for multiarch
Why are we putting ourselves through all this pain? Isn't lib64 good enough for everyone?
Multiarch package manager specification
Main spec, detailing how files are laid out, how dependencies are defined, and how it works in combination with apt and dpkg (also available in the Ubuntu wiki archives)
Multiarch/Tuples. The tuple schema used for multiarch paths (instead of GNU triplets).
Multiarch HOWTO for users
User-oriented info on how to use multiarch: configuration, installation, cross-building.
Multiarch conversion howto
A maintainer-oriented document detailing how you can convert your library package over for multiarch paths.
Issues for tools The conversion process can produce problems for tools using apt or dpkg and these can be documented here.
Multiarch Cross-building Specification
How multiarch is used for cross-building, including the extensions to support cross- build-dependencies
Linker and multilib behaviour
Explanatory details on the linker, gcc, libc and multilib. Not strictly speaking part of the multiarch spec, but it explains why it works, and clarifies discussion on future developments.
Cross-Compiling
Cross-compile programs for different targets.
Cross-Build Guidelines
Guidelines for complex multiarch packages.
Cross-grading
Converting a running system from e.g. i386 to x86_64.
There are many other now-superceded documents. Links exist below for anyone who cares about the history of development.
Resources
IRC channel: #multiarch on irc.debian.org (OFTC).
There is no specific mailing list. Discussion is on lists/channels of affected packages and tools, such as dpkg, apt, gcc and general development lists (e.g. debian-devel)
Current Status
Debuting in Ubuntu Natty and Debian Wheezy.
Apt support is in Debian Squeeze and Ubuntu Maverick
Patches for gcc, eglibc, and a number of base libraries are available in Ubuntu natty.ch
Dpkg support is available starting from version 1.16.2.
Future development
Adding support for co-installable binaries is a probable future extension, but is not part of the scope of the current multiarch work (in order for it only to take 7 years, not 15).
Multiarch makes various things possible or even easy: cross architecture dependencies, cross-compilers in the archive, partial architectures. A meeting held at debconf11 discussed these issues. Multiarch/Debconf11MultiarchRelatedMinutes
History
The genesis of Multiarch has been (very!) long, and the proposal has changed significantly along the way. Here are some of the dates when things happened, with links to the documents written at the time. These have all been superceded by the docs reference above.
- 2011.02.22
Multiarch discussion at Emdebian meeting - Dpkg starts being multiarch aware.
- 2011.02.15
- 2010.09
- Multiarch-ready apt (v0.8) has made it into squeeze. Dpkg wasn't quite ready unfortunately.
- 2010.08.04
At Debconf10 we thrashed out a proposal for new ABI names which are necessary to implement multiarch correctly
- 2010.06.30
Discussion at the Linaro/Ubuntu sprint in Prague produced this very useful document on how compilers, paths, linkers, and loaders fit together:
- 2009.07.25
The info below is out of date and for historical value. See MultiarchSpec for the current cross-distro work.
- 2008.06.23
- Multiarch patches for dpkg 1.14.20 updated and uploaded to the Debian Multiarch Alioth Project patch tracker. Adds MA support except for dependency tracking.
- 2006.02
- FOSDEM Multiarch meeting
- 2005.07
- Multiarch talk at Debconf 5
- 2004.05
- Multiarch BOF at Debconf 4
Old Resources
- Forums
- Documents
Tuple Naming Proposal A proposal to implement a new tuple schema instead of GNU triplets for multiarch paths. The current tuple schema can be found at Multiarch/Tuples.
- Talks
- debconf4 - Multiarch: why and how, a proposal - June 1, 2004 - Tollef Fog Heen, Matt Taggart - Porto Alegre, Brazil
debconf5 - Multiarch a proposal and an implementation - July 10, 2005 Tollef Fog Heen html Video: mpeg | ogg
debconf5 - Freezing HEL Over (dpkg2.0)- July 15, 2005 Scott James Remnant mpeg | ogg
- IRC discussions
an interesting -rpath thread
