Cross compiler for RHEL ppc64le target

I tried using crosstool-ng to create a cross compiler for RHEL7.1, which means:

  • ppc64le (powerpc 64bit little endian)
  • glibc 2.17
  • kernel 3.10

I feel like I am missing some essential patch because I get the message

[INFO ]  =================================================================
[INFO ]  Installing C library headers & start files
[INFO ]    =================================================================
[INFO ]    Building for multilib 1/1: ''
[EXTRA]      Configuring C library
[ERROR]      checking sysdep dirs... configure: error: The powerpc64le is not supported.

      

Any help is appreciated

+3


source to share


2 answers


Which version of GCC are you using? The Red Hat Enterprise Linux 7 system compiler is GCC 4.8, but the ppc64le support therein is a configurable backport. Upstream GCC support only landed in version 4.9. In addition, glibc support for ppc64le was added upstream in version 2.19, retroactively to version 2.17.

If you want to create a ppc64le programming chain from scratch that is compatible with Red Hat Enterprise Linux 7, you will have to restore those backports and build something similar. (Using newer versions will not result in ABI compatibility with Red Hat Enterprise Linux 7, only distributions that ship at least those versions as baseline.)



If you don't need a cross compiler, starting with the Toolkit Toolkit may be easier. Requesting Red Hat support for DTS on ppc64le might also make sense.

+2


source


You can try IBM Advanced Toolchain, it has a good ppc64le cross compiler built for x86-64 processors.



Check out the docs here: https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/W51a7ffcf4dfd_4b40_9d82_446ebc23c550/page/IBM%20Advance%20 Toolchain%20for%20PowerLinuxsection=20

0


source







All Articles