Jump to content

Cross compilers: Difference between revisions

From HW wiki
No edit summary
Pisa (talk | contribs)
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Pavel Pisa prepares cross toolchains for several architectures as Debian packages.
Pavel Pisa prepares cross toolchains for several architectures as Debian packages. These cross toolchains were prepared
according to [[How to build GNU cross-compilers]] page.


To use these packages on Debian/Ubuntu/... system follow these steps:
__FORCETOC__
 
=== Installation on Debian/Ubuntu ===
* Add APT source:
* Add APT source:
  echo deb ftp://rtime.felk.cvut.cz/debian unstable main  >/etc/apt/sources.list.d/rtime-debs.list
  echo deb ftp://rtime.felk.cvut.cz/debian unstable main  >/etc/apt/sources.list.d/rtime-debs.list
Line 15: Line 18:
* powerpc-elf
* powerpc-elf
* powerpc-linux-gnu
* powerpc-linux-gnu
* mips-elf
* msp430 [http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Devel:UniarchGit Uniarch devel]


Packages are prepared to run on i386 and amd64 architectures.
Packages are prepared to run on i386 and amd64 architectures.


=== Installation on Gentoo ===
=== Installation on Gentoo ===
Line 27: Line 31:
  chmod +x /usr/local/bin/update-rc.d
  chmod +x /usr/local/bin/update-rc.d
Install any packages you want:
Install any packages you want:
  dpkg -i gcc-powerpc-elf_4.3.2-1_i386.deb
  dpkg -i binutils-powerpc-linux-gnu_2.18.0-1_i386.deb  gcc-powerpc-linux-gnu_4.3.2-1_i386.deb
dpkg -i glibc-powerpc-linux-gnu_2.7-1_all.deb
 
 
=== Installation on distributions without dpkg ===
 
* Download .deb packages from ftp://rtime.felk.cvut.cz/debian/pool/
* For every package do the following:
ar x binutils-powerpc-linux-gnu_2.18.0-1_i386.deb  # Extract Debian package
tar -C / -xvzf data.tar.gz                          # Untar data from the package to the filesystem root
 
[[Category:Software]]

Latest revision as of 23:45, 22 May 2011

Pavel Pisa prepares cross toolchains for several architectures as Debian packages. These cross toolchains were prepared according to How to build GNU cross-compilers page.


Installation on Debian/Ubuntu

  • Add APT source:
echo deb ftp://rtime.felk.cvut.cz/debian unstable main  >/etc/apt/sources.list.d/rtime-debs.list
  • Update list of available packages
apt-get update
  • Install packages from cross-dev section (e.g. using apt-get, aptitude or synaptic)

These packages have not correct dependencies. You need to install libmpfr1ldbl a libgmp3c2 packages manually. Packages are not signed so you will see a warning during installation.

There are packages for GCC, Binutils and Newlib/Glibc for the following architecture

  • arm-elf
  • arm-linux-gnueabi
  • powerpc-elf
  • powerpc-linux-gnu
  • mips-elf
  • msp430 Uniarch devel

Packages are prepared to run on i386 and amd64 architectures.

Installation on Gentoo

emerge -av dpkg

Dpkg complains about missing files, so we create them manually:

touch /var/lib/dpkg/{status,available}
touch /usr/local/bin/update-rc.d
chmod +x /usr/local/bin/update-rc.d

Install any packages you want:

dpkg -i binutils-powerpc-linux-gnu_2.18.0-1_i386.deb  gcc-powerpc-linux-gnu_4.3.2-1_i386.deb
dpkg -i glibc-powerpc-linux-gnu_2.7-1_all.deb


Installation on distributions without dpkg

ar x binutils-powerpc-linux-gnu_2.18.0-1_i386.deb   # Extract Debian package
tar -C / -xvzf data.tar.gz                          # Untar data from the package to the filesystem root