At the moment, I'm trying to do a Linux From Scratch install on the Playstation2, to get some newer software running.
Binutils 2.14 compiled fine on the machine and seems to work great. GCC, however, won't build properly.
If I apply the patch to GCC 3.2.2 and configure it as following:
../gcc-3.2.2/configure --prefix=/tools \
--with-local-prefix=/tools \
--disable-nls --enable-shared \
--enable-languages=c \
--host=mips64r5900el-scei-elf
I get an error while compiling 'collect2.c' because it cannot '#include <ldfcn.h>' (it doesn't exist).
While looking in the source, I found the following piece of code:
Code: Select all
#ifdef OBJECT_FORMAT_COFF
#include <a.out.h>
#include <ar.h>
#ifdef UMAX
#include <sgs.h>
#endif
/* Many versions of ldfcn.h define these. */
#ifdef FREAD
#undef FREAD
#undef FWRITE
#endif
#include <ldfcn.h>
/* Some systems have an ISCOFF macro, but others do not. In some cases
the macro may be wrong. MY_ISCOFF is defined in tm.h files for machines
that either do not have an ISCOFF macro in /usr/include or for those
where it is wrong. */
#ifndef MY_ISCOFF
#define MY_ISCOFF(X) ISCOFF (X)
#endif
#endif /* OBJECT_FORMAT_COFF */
Yours,
Ed Schouten