This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Still can't build an i486 cross-compiler


I'm trying to build a cross compiler to produce i486 elf code on my
i686-pc-linux-gnu machine.  My objective is to link with the newlib run time
library rather than with libc.  I have a fresh installation of Red Hat 6.1,
and I'm running as root.  As in my previous bug reports I have installed the
latest sources and untarred them into binutils-2.9.1, gcc-2.95,
newlib-1.8.2, and gdb-4.18.  I'm more or less following the examples from
the CrossGCC FAQ.

Scenario:

In /usr/src
      host=i686-pc-linux-gnu
      target=i486-pc-linux-gnu
      mkdir build-binutils build-gcc build-newlib build-gdb

Building binutils goes fine:
      cd build-binutils
      ../binutils-2.9.1/configure --target=$target &> config.log
      make all install &> make.log

No prefix, but building gcc still crumps:
      cd ../build-gcc
      ../gcc-2.95/configure --target=$target \
      --with-headers=../newlib-1.8.2/newlib/libc/include  &> config.log
      make all install &> make.log
      .
      .
      [snip]
      .
            .
      ../../../gcc-2.95/libio/iogetline.c -o pic/iogetline.o
      /usr/src/build-gcc/gcc/xgcc -B/usr/src/build-gcc/gcc/
      -B/usr/local/i486-pc-linux-gnu/bin/ -c -g -O2 -I.
      -I../../../gcc-2.95/libio -D_IO_MTSAFE_IO ../../../\
       gcc-2.95/libio/iogetline.c
      In file included from ../../../gcc-2.95/libio/iolibio.h:1,
      from ../../../gcc-2.95/libio/libioP.h:47,
      from ../../../gcc-2.95/libio/iogetline.c:26:
../../../gcc-2.95/libio/libio.h:30: _G_config.h: No such file or directory
      make[1]: *** [iogetline.o] Error 1

It seems some needed files aren't getting made.  Perhaps there hasn't been
much exploration of creating cross-compilers for essentially similar
architectures.  It has been suggested to me that I try RTEMS from Oar
Corporation.  And perhaps that might do it - but if gcc can't build an X86
cross-compiler then I'll just have to give that up also.

Good luck with all this.

Richard Bowser
Engineer
Thunder Scientific Corporation

email:    richardb@thunderscientific.com




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]