[ECOS] problem when building the arm-elf toolchain (http://sources.redhat.com/ecos/build-toolchain.html).Thanks a lot.

jameshq@liverpool.ac.uk jameshq@liverpool.ac.uk
Sat May 24 17:42:00 GMT 2003

Hi all:

I tried to build the tool chain for arm-elf target (follow the same
instruction in ecos web page 
"Building a toolchain for use with eCos", applied all the patches). ,
I can build GNU binary utilities, Insight 
for arm-elf target without problem, when I came to a make for the gcc
(make -w all install 2>&1 | tee make.out )
I got __memcpy() function not defined problem as shown below(I have
made a search on all the source and couldn't find
__memcpy() definition anywhere):

/src/gcc-3.2.1/gcc/fixinc/gnu-regex.c: In function `regerror':
/src/gcc-3.2.1/gcc/fixinc/gnu-regex.c:5723: warning: implicit
declaration of fun
ction `__mempcpy'
-Wall -Wwrite
-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-l
ong-long -DHAVE_CONFIG_H -DGENERATOR_FILE  -W -Wall -Wwrite-strings
totypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-I. -I.. -I/
src/gcc-3.2.1/gcc/fixinc -I/src/gcc-3.2.1/gcc/fixinc/..
inc/../config -I/src/gcc-3.2.1/gcc/fixinc/../../include
rings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-long -DHAVE_CONFIG_H -DGENERATOR_FILE  -W -Wall -Wwrite-strings
ypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I.
-I.. -I/src
/gcc-3.2.1/gcc/fixinc -I/src/gcc-3.2.1/gcc/fixinc/..
/../config -I/src/gcc-3.2.1/gcc/fixinc/../../include  -o fixincl.exe
fixincl.o f
ixtests.o fixfixes.o server.o procopen.o gnu-regex.o fixlib.o
gnu-regex.o(.text+0x6556): In function `regerror':
/src/gcc-3.2.1/gcc/fixinc/gnu-regex.c:5723: undefined reference to
collect2: ld returned 1 exit status
make[2]: *** [full-stamp] Error 1
make[2]: Leaving directory `/tmp/build/gcc/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'

But I can build it with gcc-3.3, then I can build the ecos library but
when linking with 
ecos user application I got error. 

BTW has anybody use sh ecos-install.tcl recently? I failed to use it
now. (I could use it some
weeks ago, but not now.) Thanks

Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list