This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cross-compilation of GCC-4.3.0 snapshot fails


Hi,

I'm trying to cross-compile GCC-4.3.0 snapshot (24-12-2007) for MinGW32 target.
I'm using a linux hosted cross-compiler (GCC-4.2.2). I'm using the following
script file to configure and compile it.


# !/bin/sh

CROSS_TOOL_PATH=/usr/local/cross-tools
CROSS_TOOL_PREFIX=i686-pc-mingw32

CROSS_BUILD_BUILD=i686-pc-linux-gnu
CROSS_BUILD_HOST=i686-pc-mingw32
CROSS_BUILD_TARGET=i686-pc-mingw32

export PATH=$CROSS_TOOL_PATH/bin:$PATH

../configure --build=$CROSS_BUILD_BUILD \
--host=$CROSS_BUILD_HOST --target=$CROSS_BUILD_TARGET \
--prefix=/mingw --program-prefix= \
--with-sysroot=$CROSS_TOOL_PATH \
--with-as=$CROSS_TOOL_PATH/bin/$CROSS_TOOL_PREFIX-as \
--with-ld=$CROSS_TOOL_PATH/bin/$CROSS_TOOL_PREFIX-ld --with-gcc \
--with-gnu-ld --with-gnu-as \
--enable-threads --disable-nls --disable-werror \
--enable-languages=c,c++,fortran \
--disable-win32-registry --disable-shared --without-x --enable-interpreter \
--enable-hash-synchronization --enable-libstdcxx-debug --enable-libgomp \
--disable-sjlj-exceptions --with-dwarf2 --enable-fully-dynamic-string \
--with-gmp=$CROSS_TOOL_PATH --with-mpfr=$CROSS_TOOL_PATH

make CFLAGS="-O2 -fomit-frame-pointer" CXXFLAGS="-mthreads \
-fno-omit-frame-pointer -O2" LDFLAGS="-s"


The build fails with the following error.

/bin/sh ../../gcc/../move-if-change tmp-options.h options.h
echo timestamp > s-options-h
TARGET_CPU_DEFAULT="" \
        HEADERS="auto-build.h ansidecl.h" DEFINES="" \
        /bin/sh ../../gcc/mkconfig.sh bconfig.h
make[2]: *** No rule to make target `auto-build.h', needed by
`build/genmodes.o'.  Stop.
make[2]: Leaving directory `/home/biplab/Software/gcc-4.3/build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/biplab/Software/gcc-4.3/build'
make: *** [all] Error 2


It appears that the target to create auto-build.h is missing in Makefile. I have
searched the internet for any solution. But couldn't find one.

It would be thankful if anyone points me towards solution.

Thanks & Best Regards,

Biplab


--
For unsubscribe information see http://sourceware.org/lists.html#faq


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