Is newlib required to create a cross compiler for powerpc e500mc?

I am trying to create a cross compiler for PowerPC e500mc with target powerpc-e500mc-eabi. As mentioned on some sites, I first created the bootstrap compiler. and then tried to compile newlib. But I got some error like

/bin/sh: powerpc-e500mc-eabi-cc: command not found

I want to know if we can directly compile the GCC cross-compiler without newLib. Also, can anyone tell me the exact prerequisites for the powerpc e500mc architecture. I have GMP, MPC, MPFR, BinUtils not sure if newLib is needed or not.

+4
source share
2 answers

You can build gcc without any C library, there is no need for newlib. The following is a list of crosstool-ng build dependencies.

1.

  • , , , . , , , , , . .

  • crosstool-ng -. Crosstool-ng . , . , , . - , ​​Linux. - - , Linux, OS X (homebrew) Windows (cygwin). : http://crosstool-ng.org/.

, - crosstool-ng. Windows (cygwin) crosstool-ng git.

2. crosstool-ng, .

docs/2 - crosstool-NG.txt.

3. .

docs/3 - toolchain.txt.

4.

mkdir powerpc-e500v2-eabi
cd powerpc-e500v2-eabi
ct-ng powerpc-e500v2-linux-gnuspe

, , , , . , :

  • C
  • EABI
  • e500mc, e500v2. , .

4,1.

ct-ng menuconfig
  • -
    • C
      • none
    • ABI
      • EABI
  • -
    • gcc
      • 5.1.0 ( gcc 4.6.4 )
    • ++ ( , C )
    • gdb ( , )

4,2.

ct-ng build.4

Crosstool-ng .

  • -6.0.0a
  • MPFR-3.1.2
  • ISL-0,14
  • MPC-1.0.2
  • Binutils-2,25
  • GCC-5.1.0

-

${HOME}/x-tools/powerpc-e500v2-eabi.

.

+1

powerpc-e500mc-eabi-cc, powerpc-e500mc-eabi-gcc.

0

All Articles