Re: [PATCH v2 00/29] nios2 Linux kernel port

David Howells
2014-07-15T14:20:49Z

Richard Weinberger <richard.weinberger@gmail.com> wrote:

> Having it on https://www.kernel.org/pub/tools/crosstool/ would be also nice.

Does the Fedora cross-compiler suite fit with your set? All the fedora
cross-compilers are build from a single pair of SRPMS into a slew of binary
RPMs and none of the resulting RPMs are relocatable (they all end up in /usr).

The easiest way to install them is:

yum install gcc-\*-linux-gnu

For reference, the current rawhide SRPMs can be found here:

https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/source/SRPMS/c/cross-binutils-2.24-4.fc21.src.rpm
https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/source/SRPMS/c/cross-gcc-4.9.0-3.fc21.src.rpm

I haven't yet pushed the NIOS2 arch changes (I'm waiting on a fix to allow me
to build libgcc for Cris).

I haven't applied any of your patches, though I do apply the same patches that
are applied to the core Fedora binutils and gcc. Note that this URL linked to
on your page:

https://www.kernel.org/pub/tools/crosstool/patches/

does not seem to exist.

The compilers that I have managed to produce and install on my system are:

gcc-aarch64-linux-gnu
gcc-alpha-linux-gnu
gcc-arm-linux-gnu
gcc-avr32-linux-gnu
gcc-bfin-linux-gnu
gcc-c6x-linux-gnu
gcc-cris-linux-gnu
gcc-frv-linux-gnu
gcc-h8300-linux-gnu
gcc-hppa-linux-gnu
gcc-hppa64-linux-gnu
gcc-ia64-linux-gnu
gcc-m32r-linux-gnu
gcc-m68k-linux-gnu
gcc-microblaze-linux-gnu
gcc-mips64-linux-gnu
gcc-mn10300-linux-gnu
gcc-nios2-linux-gnu
gcc-powerpc64-linux-gnu
gcc-ppc64-linux-gnu
gcc-s390x-linux-gnu
gcc-sh-linux-gnu
gcc-sh64-linux-gnu
gcc-sparc64-linux-gnu
gcc-tile-linux-gnu
gcc-x86_64-linux-gnu
gcc-xtensa-linux-gnu

All but cris, nios2, sh, sh64 and tile have a collection of libgcc built.

I don't build i386, mips, powerpc, s390, sh4 and sparc as these are covered by
the ones I do build.

gcc doesn't support Metag or Openrisc, it considers Score obsolete and
Hexagon and Unicore32 don't seem to have suitable binutils support.

David