Page 1 of 1

[GCC 3.2.2] ldfcn.h not found?

Posted: Wed Jul 07, 2004 5:37 pm
by EdSchouten
Hello guys,

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&#40;X&#41; ISCOFF &#40;X&#41;
#endif

#endif /* OBJECT_FORMAT_COFF */
Is it possible to compile GCC without support for COFF binaries on the PS2?

Yours,

Ed Schouten

Posted: Wed Jul 07, 2004 8:18 pm
by blackdroid
COFF support is certainly not necessary, that being said I am not sure gcc-3.2.2 has the needed patches to compile under ps2linux.

you might get more info on that topic by asking on http://www.playstation2-linux.com

Posted: Thu Jul 08, 2004 4:04 am
by EdSchouten
Hehe, stupid me :P I found the problem. I had to use mips64r5900el-sky-linux-gnu as host :P

But now I still have a problem, and I guess it is a bug...

Here is what happens when I start compiling GCC:

Code: Select all

make&#91;2&#93;&#58; Entering directory `/home/lfs/sources/gcc-build/gcc'
HEADERS="auto-host.h ansidecl.h  mips/little.h dbxelf.h elfos.h svr4.h linux.h mips/linux.h mips/r5900.h defaults.h" DEFINES="POSIX" \
TARGET_CPU_DEFAULT="MASK_GAS" \
/bin/sh ../../gcc-3.2.2/gcc/mkconfig.sh config.h
HEADERS="auto-host.h ansidecl.h  mips/little.h dbxelf.h elfos.h svr4.h linux.h mips/linux.h mips/r5900.h defaults.h" DEFINES="POSIX" \
TARGET_CPU_DEFAULT="MASK_GAS" \
/bin/sh ../../gcc-3.2.2/gcc/mkconfig.sh hconfig.h
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.2.2/gcc -I../../gcc-3.2.2/gcc/. -I../../gcc-3.2.2/gcc/config -I../../gcc-3.2.2/gcc/../include ../../gcc-3.2.2/gcc/gengenrtl.c -o gengenrtl.o
In file included from ../../gcc-3.2.2/gcc/config/mips/r5900.h&#58;20,
                 from hconfig.h&#58;23,
                 from ../../gcc-3.2.2/gcc/gengenrtl.c&#58;22&#58;
../../gcc-3.2.2/gcc/config/mips/elf64.h&#58;25&#58; warning&#58; `TARGET_DEFAULT' redefined
../../gcc-3.2.2/gcc/config/mips/linux.h&#58;131&#58; warning&#58; this is the location of the previous definition
../../gcc-3.2.2/gcc/config/mips/elf64.h&#58;26&#58; warning&#58; `MIPS_ISA_DEFAULT' redefined
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;555&#58; warning&#58; this is the location of the previous definition
../../gcc-3.2.2/gcc/config/mips/elf64.h&#58;29&#58; warning&#58; `MIPS_ABI_DEFAULT' redefined
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;892&#58; warning&#58; this is the location of the previous definition
In file included from ../../gcc-3.2.2/gcc/config/mips/r5900.h&#58;20,
                 from hconfig.h&#58;23,
                 from ../../gcc-3.2.2/gcc/gengenrtl.c&#58;22&#58;
../../gcc-3.2.2/gcc/config/mips/elf64.h&#58;39&#58; warning&#58; `INIT_SUBTARGET_OPTABS' redefined
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4852&#58; warning&#58; this is the location of the previous definition
In file included from ../../gcc-3.2.2/gcc/config/mips/elf64.h&#58;41,
                 from ../../gcc-3.2.2/gcc/config/mips/r5900.h&#58;20,
                 from hconfig.h&#58;23,
                 from ../../gcc-3.2.2/gcc/gengenrtl.c&#58;22&#58;
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;645&#58; warning&#58; `SUBTARGET_TARGET_OPTIONS' redefined
../../gcc-3.2.2/gcc/config/mips/abi64.h&#58;27&#58; warning&#58; this is the location of the previous definition
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;818&#58; warning&#58; `SUBTARGET_CONDITIONAL_REGISTER_USAGE' redefined
../../gcc-3.2.2/gcc/config/mips/abi64.h&#58;64&#58; warning&#58; this is the location of the previous definition
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2723&#58; warning&#58; `REG_PARM_STACK_SPACE' redefined
../../gcc-3.2.2/gcc/config/mips/abi64.h&#58;74&#58; warning&#58; this is the location of the previous definition
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2786&#58; warning&#58; `GP_ARG_LAST' redefined
../../gcc-3.2.2/gcc/config/mips/abi64.h&#58;42&#58; warning&#58; this is the location of the previous definition
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2788&#58; warning&#58; `FP_ARG_LAST' redefined
../../gcc-3.2.2/gcc/config/mips/abi64.h&#58;45&#58; warning&#58; this is the location of the previous definition
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2790&#58; warning&#58; `MAX_ARGS_IN_REGISTERS' redefined
../../gcc-3.2.2/gcc/config/mips/abi64.h&#58;68&#58; warning&#58; this is the location of the previous definition
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2844&#58; warning&#58; `RETURN_IN_MEMORY' redefined
../../gcc-3.2.2/gcc/config/mips/abi64.h&#58;112&#58; warning&#58; this is the location of the previous definition
In file included from hconfig.h&#58;23,
                 from ../../gcc-3.2.2/gcc/gengenrtl.c&#58;22&#58;
../../gcc-3.2.2/gcc/config/mips/r5900.h&#58;229&#58; warning&#58; `SBSS_SECTION_ASM_OP' redefined
../../gcc-3.2.2/gcc/config/mips/linux.h&#58;39&#58; warning&#58; this is the location of the previous definition
In file included from ../../gcc-3.2.2/gcc/config/mips/elf64.h&#58;41,
                 from ../../gcc-3.2.2/gcc/config/mips/r5900.h&#58;20,
                 from hconfig.h&#58;23,
                 from ../../gcc-3.2.2/gcc/gengenrtl.c&#58;22&#58;
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;38&#58; redeclaration of `enum cmp_type'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;39&#58; conflicting types for `CMP_SI'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;39&#58; previous declaration of `CMP_SI'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;40&#58; conflicting types for `CMP_DI'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;40&#58; previous declaration of `CMP_DI'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;41&#58; conflicting types for `CMP_SF'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;41&#58; previous declaration of `CMP_SF'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;42&#58; conflicting types for `CMP_DF'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;42&#58; previous declaration of `CMP_DF'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;44&#58; conflicting types for `CMP_MAX'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;44&#58; previous declaration of `CMP_MAX'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;47&#58; redeclaration of `enum delay_type'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;48&#58; conflicting types for `DELAY_NONE'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;48&#58; previous declaration of `DELAY_NONE'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;49&#58; conflicting types for `DELAY_LOAD'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;49&#58; previous declaration of `DELAY_LOAD'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;50&#58; conflicting types for `DELAY_HILO'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;50&#58; previous declaration of `DELAY_HILO'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;51&#58; conflicting types for `DELAY_HILO1'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;51&#58; previous declaration of `DELAY_HILO1'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;53&#58; conflicting types for `DELAY_FCMP'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;53&#58; previous declaration of `DELAY_FCMP'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;60&#58; redeclaration of `enum processor_type'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;61&#58; conflicting types for `PROCESSOR_DEFAULT'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;61&#58; previous declaration of `PROCESSOR_DEFAULT'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;62&#58; conflicting types for `PROCESSOR_R3000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;62&#58; previous declaration of `PROCESSOR_R3000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;63&#58; conflicting types for `PROCESSOR_R3900'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;63&#58; previous declaration of `PROCESSOR_R3900'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;64&#58; conflicting types for `PROCESSOR_R6000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;64&#58; previous declaration of `PROCESSOR_R6000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;65&#58; conflicting types for `PROCESSOR_R4000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;65&#58; previous declaration of `PROCESSOR_R4000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;66&#58; conflicting types for `PROCESSOR_R4100'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;66&#58; previous declaration of `PROCESSOR_R4100'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;67&#58; conflicting types for `PROCESSOR_R4300'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;67&#58; previous declaration of `PROCESSOR_R4300'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;68&#58; conflicting types for `PROCESSOR_R4600'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;68&#58; previous declaration of `PROCESSOR_R4600'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;69&#58; conflicting types for `PROCESSOR_R4650'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;69&#58; previous declaration of `PROCESSOR_R4650'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;70&#58; conflicting types for `PROCESSOR_R5000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;70&#58; previous declaration of `PROCESSOR_R5000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;71&#58; conflicting types for `PROCESSOR_R5900'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;71&#58; previous declaration of `PROCESSOR_R5900'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;72&#58; conflicting types for `PROCESSOR_R8000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;72&#58; previous declaration of `PROCESSOR_R8000'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;73&#58; conflicting types for `PROCESSOR_R4KC'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;73&#58; previous declaration of `PROCESSOR_R4KC'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;74&#58; conflicting types for `PROCESSOR_R5KC'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;74&#58; previous declaration of `PROCESSOR_R5KC'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;76&#58; conflicting types for `PROCESSOR_R20KC'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;76&#58; previous declaration of `PROCESSOR_R20KC'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;106&#58; redeclaration of `enum mips_abicalls_type'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;107&#58; conflicting types for `MIPS_ABICALLS_NO'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;107&#58; previous declaration of `MIPS_ABICALLS_NO'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;109&#58; conflicting types for `MIPS_ABICALLS_YES'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;109&#58; previous declaration of `MIPS_ABICALLS_YES'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;117&#58; redeclaration of `enum block_move_type'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;118&#58; conflicting types for `BLOCK_MOVE_NORMAL'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;118&#58; previous declaration of `BLOCK_MOVE_NORMAL'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;119&#58; conflicting types for `BLOCK_MOVE_NOT_LAST'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;119&#58; previous declaration of `BLOCK_MOVE_NOT_LAST'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;121&#58; conflicting types for `BLOCK_MOVE_LAST'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;121&#58; previous declaration of `BLOCK_MOVE_LAST'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2090&#58; redeclaration of `enum reg_class'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2091&#58; conflicting types for `NO_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2091&#58; previous declaration of `NO_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2092&#58; conflicting types for `M16_NA_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2092&#58; previous declaration of `M16_NA_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2093&#58; conflicting types for `M16_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2093&#58; previous declaration of `M16_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2094&#58; conflicting types for `T_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2094&#58; previous declaration of `T_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2095&#58; conflicting types for `M16_T_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2095&#58; previous declaration of `M16_T_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2096&#58; conflicting types for `GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2096&#58; previous declaration of `GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2097&#58; conflicting types for `FP_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2097&#58; previous declaration of `FP_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2098&#58; conflicting types for `HI_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2098&#58; previous declaration of `HI_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2099&#58; conflicting types for `LO_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2099&#58; previous declaration of `LO_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2100&#58; conflicting types for `HILO_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2100&#58; previous declaration of `HILO_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2101&#58; conflicting types for `MD_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2101&#58; previous declaration of `MD_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2102&#58; conflicting types for `HI_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2102&#58; previous declaration of `HI_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2103&#58; conflicting types for `LO_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2103&#58; previous declaration of `LO_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2104&#58; conflicting types for `HILO_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2104&#58; previous declaration of `HILO_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2105&#58; conflicting types for `HI_AND_FP_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2105&#58; previous declaration of `HI_AND_FP_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2106&#58; conflicting types for `HI1_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2106&#58; previous declaration of `HI1_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2107&#58; conflicting types for `LO1_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2107&#58; previous declaration of `LO1_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2108&#58; conflicting types for `HILO1_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2108&#58; previous declaration of `HILO1_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2109&#58; conflicting types for `MD1_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2109&#58; previous declaration of `MD1_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2110&#58; conflicting types for `HI1_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2110&#58; previous declaration of `HI1_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2111&#58; conflicting types for `LO1_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2111&#58; previous declaration of `LO1_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2112&#58; conflicting types for `HILO1_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2112&#58; previous declaration of `HILO1_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2113&#58; conflicting types for `HI01_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2113&#58; previous declaration of `HI01_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2114&#58; conflicting types for `LO01_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2114&#58; previous declaration of `LO01_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2115&#58; conflicting types for `HILO01_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2115&#58; previous declaration of `HILO01_REG'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2116&#58; conflicting types for `MD01_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2116&#58; previous declaration of `MD01_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2117&#58; conflicting types for `HI01_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2117&#58; previous declaration of `HI01_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2118&#58; conflicting types for `LO01_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2118&#58; previous declaration of `LO01_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2119&#58; conflicting types for `HILO01_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2119&#58; previous declaration of `HILO01_AND_GR_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2120&#58; conflicting types for `ST_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2120&#58; previous declaration of `ST_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2121&#58; conflicting types for `ALL_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2121&#58; previous declaration of `ALL_REGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2123&#58; conflicting types for `LIM_REG_CLASSES'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2123&#58; previous declaration of `LIM_REG_CLASSES'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2539&#58; redefinition of `struct mips_frame_info'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2868&#58; redefinition of `struct mips_args'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2882&#58; redefinition of `CUMULATIVE_ARGS'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;2882&#58; `CUMULATIVE_ARGS' previously declared here
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4935&#58; redeclaration of `enum r5900_builtins'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4937&#58; conflicting types for `MMI_BUILTIN_PADDB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4937&#58; previous declaration of `MMI_BUILTIN_PADDB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4938&#58; conflicting types for `MMI_BUILTIN_PADDH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4938&#58; previous declaration of `MMI_BUILTIN_PADDH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4939&#58; conflicting types for `MMI_BUILTIN_PADDW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4939&#58; previous declaration of `MMI_BUILTIN_PADDW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4940&#58; conflicting types for `MMI_BUILTIN_PADDSB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4940&#58; previous declaration of `MMI_BUILTIN_PADDSB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4941&#58; conflicting types for `MMI_BUILTIN_PADDSH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4941&#58; previous declaration of `MMI_BUILTIN_PADDSH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4942&#58; conflicting types for `MMI_BUILTIN_PADDSW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4942&#58; previous declaration of `MMI_BUILTIN_PADDSW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4943&#58; conflicting types for `MMI_BUILTIN_PADDUB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4943&#58; previous declaration of `MMI_BUILTIN_PADDUB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4944&#58; conflicting types for `MMI_BUILTIN_PADDUH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4944&#58; previous declaration of `MMI_BUILTIN_PADDUH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4945&#58; conflicting types for `MMI_BUILTIN_PADDUW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4945&#58; previous declaration of `MMI_BUILTIN_PADDUW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4947&#58; conflicting types for `MMI_BUILTIN_PSUBB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4947&#58; previous declaration of `MMI_BUILTIN_PSUBB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4948&#58; conflicting types for `MMI_BUILTIN_PSUBH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4948&#58; previous declaration of `MMI_BUILTIN_PSUBH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4949&#58; conflicting types for `MMI_BUILTIN_PSUBW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4949&#58; previous declaration of `MMI_BUILTIN_PSUBW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4950&#58; conflicting types for `MMI_BUILTIN_PSUBSB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4950&#58; previous declaration of `MMI_BUILTIN_PSUBSB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4951&#58; conflicting types for `MMI_BUILTIN_PSUBSH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4951&#58; previous declaration of `MMI_BUILTIN_PSUBSH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4952&#58; conflicting types for `MMI_BUILTIN_PSUBSW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4952&#58; previous declaration of `MMI_BUILTIN_PSUBSW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4953&#58; conflicting types for `MMI_BUILTIN_PSUBUB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4953&#58; previous declaration of `MMI_BUILTIN_PSUBUB'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4954&#58; conflicting types for `MMI_BUILTIN_PSUBUH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4954&#58; previous declaration of `MMI_BUILTIN_PSUBUH'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4955&#58; conflicting types for `MMI_BUILTIN_PSUBUW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4955&#58; previous declaration of `MMI_BUILTIN_PSUBUW'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4960&#58; conflicting types for `R5900_BUILTIN_MAX'
../../gcc-3.2.2/gcc/config/mips/mips.h&#58;4960&#58; previous declaration of `R5900_BUILTIN_MAX'
make&#91;2&#93;&#58; *** &#91;gengenrtl.o&#93; Error 1
make&#91;2&#93;&#58; Leaving directory `/home/lfs/sources/gcc-build/gcc'
make&#91;1&#93;&#58; *** &#91;stage1_build&#93; Error 2
make&#91;1&#93;&#58; Leaving directory `/home/lfs/sources/gcc-build/gcc'
make&#58; *** &#91;bootstrap&#93; Error 2
It seems that:

- Somewhere we include something double
- linux.h and r5900.h have #define's that overlap eachother

Posted: Fri Jul 09, 2004 1:18 am
by EdSchouten
Hmmm... I've tried to build a cross-compiler for my Pentium 4 so it can compile mips64r5900el-sky-linux-gnu, but this fails, because it builds the stage1 compiler for mips64r5900el-sky-linux-gnu, so that it can't compile the stage2 compiler for my Pentium 4...

:(

Posted: Fri Jul 09, 2004 2:19 am
by blackdroid
If you just want a cross-compiler on your pc look at ooPo's toolchain script ( its linked on ps2dev.org from both tutorials and tools ).

Posted: Fri Jul 09, 2004 4:24 am
by ooPo
...or the sticky article at the top of this forum.

( http://forums.ps2dev.org/viewtopic.php?t=407 )