This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29780] New: temporary file breaks cross-build
- From: "danny dot backx at scarlet dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Nov 2006 12:06:31 -0000
- Subject: [Bug c++/29780] New: temporary file breaks cross-build
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
When performing a cross-build (see the triplets I entered above), a file named
"as" gets created which gets used instead of the right assembler, thus breaking
the build.
Pls. note that I've entered the target triplets we're building (see
http://cegcc.sourceforge.net), this gcc build bug is probably unrelated to
them.
I've had to work around this by using a script such as the one pasted below.
I've reported this to the mailing list months ago (see
http://gcc.gnu.org/ml/gcc/2006-07/msg00533.html ) but someone asked me a couple
of days ago whether I created a bugzilla report, and I don't think I did.
So I'm making up for that now.
Here's the script I use as workaround :
mkdir -p $BUILD_DIR/gpp || exit 1
cd $BUILD_DIR/gpp || exit 1
#
export CFLAGS=""
#
$TOP_SRCDIR/src/gcc/configure \
--prefix=$PREFIX \
--enable-languages=c,c++ \
--disable-interwork \
--disable-nls \
--enable-checking \
--disable-multilib \
--build=$MY_HOST_ARCH --target=$TGT_ARCH || exit 1
#
# Deliberately no error handling here.
#
make
#
# Because we need to delete this file
#
rm $BUILD_DIR/gpp/gcc/as || exit 1
#
# Now the build should continue smoothly
#
make || exit 1
exit 0
--
Summary: temporary file breaks cross-build
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danny dot backx at scarlet dot be
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-wince-pe, arm-wince-mingw32ce, arm-wince-cegcc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29780