Please Help.. CrossGCC for arm-uclinux Using Gatliff's Method and Wirespeed Toolchain - So Close...
Brian
bwang@mltc.com.tw
Wed May 30 21:11:00 GMT 2001
Hello,
I'm very new to the GNU toolchain. I really need some help...
I'm trying to build a cross GNU toolchain for arm-uclinux on RedHat 7.0.
The toolchain set that I'm using is from the WireSpeed ftp site:
ftp://ftp.wirespeed.com/uClinux
=======================================
arm_uclinux_binutils_10_31_2000.tar.gz
arm_uclinux_gcc_10_31_2000.tar.gz
uC-glibc-2.1.3-10112000.tar.gz
=======================================
I had a tough time going through the toolchain building process until
I found Bill Gatliff's FAQ site at:
http://crossgcc.billgatliff.com/
which I found makes more sense than getting pre-built target headers
from others.
There's no option for arm-uclinux in Gatliff's script so I followed
it even though I can only guess the meaning from the bash script.
(Linux newbie...) I was able to get through the core gcc and the
glibc process without any error. When I got back to complete the
full gcc build, there was a [needed-list] make error.
I tried to look at the makefile but just could not comprehend.
The error message is as follows:
===================================
[snip..]
Adding multilib support to Makefile in ../../../../../arm-uclinux-
gcc/libiberty
with_multisubdir=pic/soft
make[1]: Entering directory `/root/uclinux_wirespeed/build-gcc/arm-
uclinux/libiberty'
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename
strchr strerror strrchr strstr strtol strtoul tmpnam vfprintf vprintf
vfork waitpid bcmp bcopy bzero; do \
for g in ; do \
<= something missing here?
case "$g" in \
*$f*) echo $g >> needed-list ;; \
esac; \
done; \
done
/bin/sh: -c: line 1: syntax error near unexpected token `;'
/bin/sh: -c: line 1: `rm -f needed-list; touch needed-list; for f in
atexit calloc memchr memcmp memcpy memmove memset rename strchr
strerror strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork
waitpid bcmp bcopy bzero; do for g in ; do case "$g" in *$f*)
echo $g >> needed-list ;; esac; done; done'
make[1]: *** [needed-list] Error 2
========================================================
I looked at the output file. The needed-list make process seems to
be run more than once but failed at last. The needed-list target
section of the makefile is:
==================================
needed-list: Makefile
rm -f needed-list; touch needed-list; \
for f in $(NEEDED); do \
for g in $(LIBOBJS) $(EXTRA_OFILES); do \ <= causing
problem????
case "$$g" in \
*$$f*) echo $$g >> needed-list ;; \
esac; \
done; \
done
==================================
The $(LIBOBJS) symbol disappeared at the erroneous attempt seen from
the output. "LIBOBJS = mkstemps.o" is defined at the top of the
makefile.
But at the previous attempt, the LIBOBJS symbol seems to be present
as seen from the beginning of the output.
====================================
make[1]: Entering directory `/root/uclinux_wirespeed/build-
gcc/libiberty'
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename
strchr strerror strrchr strstr strtol strtoul tmpnam vfprintf vprintf
vfork waitpid bcmp bcopy bzero; do \
for g in mkstemps.o ; do \
<= mkstemps.o is here!
case "$g" in \
*$f*) echo $g >> needed-list ;; \
esac; \
done; \
done
[snip..]
====================================
I don't know what went wrong... Any hint?
I don't know if this is a configuration error or not. Here is my
configuration of the full-gcc:
../arm-uclinux-gcc/configure --prefix="/opt/arm-uclinux-tools" --
target=arm-uclinux --enable-languages=c,c++ --with-local-
prefix=/opt/arm-uclinux-tools/arm-uclinux 2>&1 | tee configure_gcc.log
I really appreciate Gatliff's effort of making the FAQ. Maybe after
I'm through with this, he can add the arm-uclinux option in the one-
step build script and benefit others interested in arm-uclinux. : )
Any help is appreciated.
Thanks. :)
Brian
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list