This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Problem with precompiled Cygwin arm-eabi toolchain
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Uwe Kindler <uwe_kindler at web dot de>
- Cc: ecos-discuss at sourceware dot org
- Date: Sat, 17 Jan 2009 09:32:36 +0100
- Subject: Re: [ECOS] Problem with precompiled Cygwin arm-eabi toolchain
- References: <49710EB1.1080306@web.de>
On Fri, Jan 16, 2009 at 11:48:17PM +0100, Uwe Kindler wrote:
> Hello,
>
> could anybody successful compile an eCos image for ARM7 architecture
> with the new precompiled arm-eabi toolchain for Cygwin?
>
> If I use the arm-eabi toolchain the build process stops at the first C
> source file hal_mk_defs.c with the following "informative" error message:
>
> make -r -C hal/arm/arch/current arm.inc
> make[1]: Entering directory
> `/ecos-d/cygwin/home/Nutzer/workdir/ea2468_new_kernel_01_build/hal/arm/arch/current'
> arm-eabi-gcc -finline-limit=7000 -g2 -O0
> -I/ecos-d/cygwin/home/Nutzer/workdir/ea2468_new_kernel_01_install/include
> -I/opt/ecos_web_cvs/ecos/packages/hal/arm/arch/current
> -I/opt/ecos_web_cvs/ecos/packages/hal/arm/arch/current/src
> -I/opt/ecos_web_cvs/ecos/packages/hal/arm/arch/current/tests -I.
> -Wp,-MD,arm.tmp -o hal_mk_defs.tmp -S
> /opt/ecos_web_cvs/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c
> make[1]: Leaving directory
> `/ecos-d/cygwin/home/Nutzer/workdir/ea2468_new_kernel_01_build/hal/arm/arch/current'
> make[1]: *** [arm.inc] Error 1
hal_mk_defs is somewhat special. Look at the CDL in hal/arm/arch/...
make -priority 1 {
arm.inc : <PACKAGE>/src/hal_mk_defs.c
$(CC) $(ACTUAL_CFLAGS) $(INCLUDE_PATH) -Wp,-MD,arm.tmp -o hal_mk_defs.tmp -S $<
fgrep .equ hal_mk_defs.tmp | sed s/#// > $@
@echo $@ ": \\" > $(notdir $@).deps
@tail -n +2 arm.tmp >> $(notdir $@).deps
@echo >> $(notdir $@).deps
@rm arm.tmp hal_mk_defs.tmp
}
It is probably worth figuring out what is actually going wrong. No
error message from gcc might mean gcc is actually working O.K. and you
have a silly problem with fgrep, sed, tail, etc...
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss