This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Error while including ldfcn.h => Building GCC without COFF?


Hello guys,

A few days ago my Linux kit for the Playstation2 arrived. It was shipped
with GCC 2.95.2, which was a little old for me.

While searching the internet, I found a patch for GCC 3.2.2, which is
good enough for me:

http://www.oopo.net/consoledev/files/gcc-3.2.2-PS2-20040526.patch

After applying the patch, I configured GCC with:

../gcc-3.2.2/configure --prefix=/tools \
    --with-local-prefix=/tools \
    --disable-nls --enable-shared \
    --enable-languages=c \
    --host=mips64r5900el-scei-elf

Configuring GCC goes without a single problem. But while making GCC with
the following command:

make BOOT_LDFLAGS="-static" bootstrap

I get an error; it can't seem to "#include <ldfcn.h>" in "gcc/collect2.
c" because it does not exist.

After I looked in gcc/collect.c, I found the following piece of code:
        
        #ifdef OBJECT_FORMAT_COFF
        
        -cut-
        
        #include <ldfcn.h>
        
        -cut-
        
        #endif /* OBJECT_FORMAT_COFF */

The option 'OBJECT_FORMAT_COFF' seems to be responsible for including
the file.

So my question is: Is it possible to build GCC without support for
COFF?

Yours,
-- 
 Ed Schouten
 <edschouten@il.fontys.nl>
 GnuPG key: gpg --keyserver pgp.mit.edu --recv-keys 0xD6A1AF3E

Attachment: signature.asc
Description: This is a digitally signed message part


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