Skip to content
Advertisement

glibc Cross Compile Configure Error

I would like to cross compile glibc. But, I ‘m getting an error.

  • glibc version is 2.24.
  • I tried compiling host and target i686-elf.
  • My $MACHTYPE environment label is x86_64-pc-linux-gnu.
  • Target directory includes binutils-2.27 and gcc-6.2.0.
  • My PATH environment is:

    /home/ercan/cross/tools/tools_binaries/i686/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Console output have been listing to below:

JavaScript

It is not configured and config.log that is in build-glibc which content has been listing below:

JavaScript

How I cross compile glibc for i686-elf? Thanks for replies.

Advertisement

Answer

You are trying to build glibc for a bare metal target. This won’t work as far as I know.
Use newlib if the target is in fact bare metal.

For linux targets, use --host=i686-pc-linux-gnu instead, and pass CC=i686-elf-gcc to configure if necessary.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement