List Info

Thread: sim/ppc build fails with a Canadian cross for a MinGW32 host and RTEMS-4.8 target.




sim/ppc build fails with a Canadian cross for a MinGW32 host and RTEMS-4.8 target.
user name
2007-07-13 22:22:52
Hi,

Building on a Fedora FC7 for a MinGW host and a
powerpc-rtems4.8 target I get 
the following error:

make[3]: Entering directory 
`/home2/work/chris/rtems/4.8/ppc-gdb-test/mingw32-rtems/sim/
ppc'
gcc -g -O2 -I. -I../../../gdb-6.6/sim/ppc 
-I../../../gdb-6.6/sim/ppc/../../include -I../../bfd 
-I../../../gdb-6.6/sim/ppc/../../bfd -I../../gdb 
-I../../../gdb-6.6/sim/ppc/../../gdb 
-I../../../gdb-6.6/sim/ppc/../../gdb/config  -c
../../../gdb-6.6/sim/ppc/igen.c
In file included from /usr/include/stdlib.h:438,
                  from ../../../gdb-6.6/sim/ppc/misc.h:38,
                  from ../../../gdb-6.6/sim/ppc/igen.c:25:
/usr/include/sys/types.h:67: error: two or more data types
in declaration 
specifiers
/usr/include/sys/types.h:82: error: two or more data types
in declaration 
specifiers
make[3]: *** [igen.o] Error 1
make[3]: Leaving directory 
`/home2/work/chris/rtems/4.8/ppc-gdb-test/mingw32-rtems/sim/
ppc'

I have noticed the gdb-6.6/sim/ppc/configure.ac contains:

# Put a plausible default for CC_FOR_BUILD in Makefile.
if test "x$cross_compiling" = "xno";
then
    CC_FOR_BUILD='$(CC)'
else
    CC_FOR_BUILD=gcc
fi
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-$}

The conflict comes from config.h being created using the
mingw cross-compiler
and including it in igen.c which is being built with the
build machine compiler.

The configure command is:

  ../gdb-6.6/configure  --build=i686-pc-linux-gnu
--host=i686-pc-mingw32 
    --target=powerpc-rtems4.8 --verbose --disable-nls 
    --without-included-gettext --disable-win32-registry
--disable-werror

Regards
Chris

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )