This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
compilation error while building redboot
- From: Robert Brusa <bob dot brusa at gmail dot com>
- To: MailingList:ecos-discuss <ecos-discuss at ecos dot sourceware dot org>;
- Date: Tue, 03 Feb 2009 18:14:08 +0100
- Subject: [ECOS] compilation error while building redboot
- Reply-to: Bob dot Brusa at gmail dot com
Hi
I try to build a redboot for my at91sam7x-based board. I have created a
new target in ecos.db and also created corresponding directory-entries in
ecos/packages/arm/at91 and a board-specific cdl-file. When building (using
configtool) I get the following error message (shortened):
make[1]: Entering directory
`/home/rwb/red0/red2_kz_build/devs/spi/arm/at91/current'
arm-eabi-gcc -c -I/home/rwb/red0/red2_kz_install/include
-I/home/rwb/ecos/packages/devs/spi/arm/at91/current
-I/home/rwb/ecos/packages/devs/spi/arm/at91/current/src
-I/home/rwb/ecos/packages/devs/spi/arm/at91/current/tests -I.
-I/home/rwb/ecos/packages/devs/spi/arm/at91/current/src/
-finline-limit=7000 -mthumb-interwork -mcpu=arm7tdmi -Wall -Wpointer-arith
-Wstrict-prototypes -Winline -Wundef -g -O2 -ffunction-sections
-fdata-sections -fno-exceptions -Wp,-MD,src/spi_at91.tmp -o
src/devs_spi_arm_at91_spi_at91.o
/home/rwb/ecos/packages/devs/spi/arm/at91/current/src/spi_at91.c
make[1]: Leaving directory
`/home/rwb/red0/red2_kz_build/devs/spi/arm/at91/current'
/home/rwb/ecos/packages/devs/spi/arm/at91/current/src/spi_at91.c:59:29:
error: cyg/error/codes.h: Datei oder Verzeichnis nicht gefunden
make: Leaving directory `/home/rwb/red0/red2_kz_build'
/home/rwb/ecos/packages/devs/spi/arm/at91/current/src/spi_at91.c: In
function âspi_at91_get_configâ:
/home/rwb/ecos/packages/devs/spi/arm/at91/current/src/spi_at91.c:648:
error: âEINVALâ undeclared (first use in this function)
It seems to miss CYGPKG_ERROR, but I am not able to include this package.
The package CYGPKG_IO_SERIAL_ARM_AT91 - which is required - kicks it out -
as I can see from the ecc-file. Ironically, the error happends in the
SPI-module - which I do not need for redboot (but later for the
application) The redboot template should therefore kick this out - but it
does not. Any hints on how to proceed? Thanks and nice evening.
Robert
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss