Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross compiler for a RHEL ppc64le target

I've attempted to use crosstool-ng to make a cross compiler for RHEL7.1 power which means:

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

I feel I'm 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 appreciated

like image 671
Gareth A. Lloyd Avatar asked Dec 20 '25 16:12

Gareth A. Lloyd


1 Answers

Which GCC version do you use? The Red Hat Enterprise Linux 7 system compiler is GCC 4.8, but the ppc64le support in it is a custom backport. Upstream GCC support only landed in version 4.9. Furthermore, glibc support for ppc64le was added upstream in version 2.19, retroactively versioned to 2.17.

If you want to build a ppc64le toolchain from scratch that is compatible with Red Hat Enterprise Linux 7, you'll have to retrace these backports and construct something similar. (Using newer versions will not result in ABI compatibility with Red Hat Enterprise Linux 7, only with distributions which ship at least these versions as a baseline.)

If you do not absolutely need a cross compiler, starting with the Developer Toolset software collection might be easier. Asking Red Hat support about DTS on ppc64le could make sense as well.

like image 97
Florian Weimer Avatar answered Dec 24 '25 08:12

Florian Weimer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!