[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bogus syntax error while cross-compiling coreutils for arm9 target
From: |
Ken Wolcott |
Subject: |
bogus syntax error while cross-compiling coreutils for arm9 target |
Date: |
Tue, 9 Dec 2003 10:37:03 -0600 |
User-agent: |
KMail/1.4.3 |
Hi;
Using Red Hat 8.0 Linux build host I was able to configure, make and make
install using coreutils source (5.0). However, when I try to cross compile
for the arm9 target, a bogus syntax error is displayed:
....
/tuba_local/crosstool25/crosstool-0.25/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.1-binutils-2.14.90.0.7-linux-2.4.21/bin/arm-arm9-linux-gnu-gcc
-g -O2 -static -o dircolors dircolors.o ../lib/libfetish.a
../lib/libfetish.a
if
/tuba_local/crosstool25/crosstool-0.25/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.1-binutils-2.14.90.0.7-linux-2.4.21/bin/arm-arm9-linux-gnu-gcc
-DLOCALEDIR=\"/tuba_local/coreutils/arm9_coreutils_install/share/locale\"
-DSHAREDIR=\"/tuba_local/coreutils/arm9_coreutils_install/share\"
-DHAVE_CONFIG_H -I. -I../../coreutils-5.0/src -I.. -I..
-I../../coreutils-5.0/src -I../../coreutils-5.0/lib -I../lib -g -O2 -MT
du.o -MD -MP -MF ".deps/du.Tpo" \
-c -o du.o `test -f '../../coreutils-5.0/src/du.c' || echo
'../../coreutils-5.0/src/'`../../coreutils-5.0/src/du.c; \
then mv ".deps/du.Tpo" ".deps/du.Po"; \
else rm -f ".deps/du.Tpo"; exit 1; \
fi
../../coreutils-5.0/src/du.c: In function `du_files':
../../coreutils-5.0/src/du.c:544: `cross' undeclared (first use in this
function)
../../coreutils-5.0/src/du.c:544: (Each undeclared identifier is reported only
once
../../coreutils-5.0/src/du.c:544: for each function it appears in.)
../../coreutils-5.0/src/du.c:544: parse error before "compiling"
make[3]: *** [du.o] Error 1
make[3]: Leaving directory `/tuba_local/coreutils/build_arm9_coreutils/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tuba_local/coreutils/build_arm9_coreutils/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tuba_local/coreutils/build_arm9_coreutils'
make: *** [all] Error 2
here is my compile script:
#!/bin/bash
set -ex
export
PATH=/tuba_local/crosstool25/crosstool-0.25/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.1-binutils-2.14.90.0.7-linux-2.4.21/bin:$PATH
# this is from http://sources.redhat.com/ml/gdb/2003-08/msg00327.html
# export bash_cv_have_mbstate_t=yes
export
CROSS_COMPILE=/tuba_local/crosstool25/crosstool-0.25/result/arm-arm9-linux-gnu/gcc-3.2.1-glibc-2.3.1-binutils-2.14.90.0.7-linux-2.4.21/bin/arm-arm9-l
inux-gnu-
export CC=${CROSS_COMPILE}gcc
../coreutils-5.0/configure \
--with-gnu-gcc=${CROSS_COMPILE}gcc \
--with-gnu-ar=${CROSS_COMPILE}ar \
--with-gnu-as=${CROSS_COMPILE}as \
--with-gnu-ranlib=${CROSS_COMPILE}ranlib \
--with-gnu-ld=${CROSS_COMPILE}ld \
--with-gnu-strip=${CROSS_COMPILE}strip \
--target=arm-arm9-linux-gnu --host=arm-arm9-linux-gnu
--build=i686-pc-linux-gnu \
--prefix=/tuba_local/coreutils/arm9_coreutils_install
make LDFLAGS="-static"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bogus syntax error while cross-compiling coreutils for arm9 target,
Ken Wolcott <=