[ECOS] Building toolchain for eCOS

Jonathan Larmour jifl@eCosCentric.com
Mon Mar 24 23:47:00 GMT 2003


Uwe Kindler wrote:
> Hello,
> 
> i would like to build a i386-elf toolchain under Windows (Cygwin installed) by myself. I strictly followed the instructions on the eCOS page: 
> 
> http://sources.redhat.com/ecos/build-toolchain.html
> 
> Building Binutils worked without problems.
> If i build GCC i the following error occurs:
> 
> gnu-regex.o(.text+0x6556): In function `regerror´:
> /src/gcc-3.2.1/gcc/fixinc/gnu-regex.c:5723: undefined reference to `__mempcpy´

Don't ask me how it's happened, but something at the configure stage has 
tested for the existence of mempcpy... and as a result HAVE_MEMPCPY was 
defined in gcc/auto-host.h in your build directory. gnu-regex.c appears to 
actually use __mempcpy i.e. with double underscores, though. I'd say edit 
your gnu-regex.c to change __mempcpy to mempcpy.

This could have been due to some recent change in cygwin that we haven't 
yet had a chance to notice ourselves. But then that's one of the reasons 
we are supplying prebuilt tools with 2.0 (including i386-elf for windows) 
so we don't have to worry about the extra problems with people building tools!

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


-- 
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