This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
question about at91 eb40
- From: Roman Jordan <RomanJordan at gmx dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 10 Oct 2002 11:37:25 +0200
- Subject: [ECOS] question about at91 eb40
Hello,
i am new to ecos. I want to compile the AT91 target. I use arm-elf-gcc at
version 3.2. The ecos - tree is a new cvs-download (yesterday).
I use the following commands.
ecosconfig new at91 redboot
ecosconfig tree
make
i got the following error:
arm-elf-gcc -c -I/home/jor/ecos_arm/install/include
-I/tools/down/ecos/packages/hal/arm/arch/current
-I/tools/down/ecos/packages/hal/arm/arch/current/src
-I/tools/down/ecos/packages/hal/arm/arch/current/tests -I.
-I/tools/down/ecos/packages/hal/arm/arch/current/src/ -mcpu=arm7tdmi
-mno-short-load-words -Wall -Wpointer-arith -Wstrict-prototypes -Winline
-Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections
-fno-rtti -fno-exceptions -fvtable-gc -finit-priority
-Wp,-MD,src/redboot_linux_exec.tmp -o src/hal_arm_arch_redboot_linux_exec.o
/tools/down/ecos/packages/hal/arm/arch/current/src/redboot_linux_exec.c
/tools/down/ecos/packages/hal/arm/arch/current/src/redboot_linux_exec.c:75:3:
#error
make[1]: *** [src/redboot_linux_exec.o.d] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis
»/home/jor/ecos_arm/hal/arm/arch/current«
make: *** [build] Fehler 2
Here is the code which results in this error.
--->
#ifndef CYGARC_PHYSICAL_ADDRESS
# error
# define CYGARC_PHYSICAL_ADDRESS(x) (x)
#endif
I don't know why this code comes from the main directory, not from my own??
<---
At other processors i found mostly the "#define CYGARC_PHYSICAL_ADDRESS(x)
(x)" line. Any help would be usefull.
At second, if i disable the "#error" line i get the next error in making
libc-function memchr:
/tools/down/ecos/packages/language/c/libc/string/current/src/memchr.cxx:71: `
void* memchr(const void*, int, long unsigned int)' defined both normally
and
as an alias
make[1]: *** [src/memchr.o.d] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis
»/home/jor/ecos_arm/language/c/libc/string/current«
make: *** [build] Fehler 2
The source:
--->
externC void *
memchr( const void *s, int c, size_t n ) CYGBLD_ATTRIB_WEAK_ALIAS(__memchr);
// FUNCTIONS
void *
__memchr( const void *s, int c, size_t n )
...
<-----
At least a general question about ecos. Do'es the whole source code for a
target exist in my local work-directory? It seems to me that i always need
the main tree. Is this correct?
Thanks for any help,
Roman Jordan
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss