This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
configtool fails building tests
- From: Daniel Gomes <danielcgomes at yahoo dot com dot br>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 25 Nov 2004 16:45:20 -0300 (ART)
- Subject: [ECOS] configtool fails building tests
Hello, people.
I'm trying to build the Tests in eCos Configuration
Tool, but it's failing to compile. I'm using the
ecos.ecc generated from Cirrus Logic for their EDB9301
eval board.
I know the the error is because cyg_start is declared
both in redboot (main.c) and test (context.c), but I
don't know what to do !! Please, someone give me some
light ! Thanks a lot !
Error output:
arm-elf-gcc -c
-I/cirrus/ecos-2.0/edb9301_ROMRAM/ecos_install/include
-I/cirrus/ecos-2.0/packages/hal/common/v2_0
-I/cirrus/ecos-2.0/packages/hal/common/v2_0/src
-I/cirrus/ecos-2.0/packages/hal/common/v2_0/tests -I.
-I/cirrus/ecos-2.0/packages/hal/common/v2_0/tests/
-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,tests/context.tmp -o tests/context.o
/cirrus/ecos-2.0/packages/hal/common/v2_0/tests/context.c
arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2
-nostdlib
-L/cirrus/ecos-2.0/edb9301_ROMRAM/ecos_install/lib
-Ttarget.ld -o
/cirrus/ecos-2.0/edb9301_ROMRAM/ecos_install/tests/hal/common/v2_0/tests/context
tests/context.o
make[1]: Leaving directory
`/cirrus/ecos-2.0/edb9301_ROMRAM/ecos_build/hal/common/v2_0'
/cirrus/ecos-2.0/edb9301_ROMRAM/ecos_install/lib/libtarget.a(redboot_main.o):
In function `bist':
make: Leaving directory
`/cirrus/ecos-2.0/edb9301_ROMRAM/ecos_build'
/cirrus/ecos-2.0/packages/redboot/v2_0/src/main.c:626:
multiple definition of `cyg_start'
tests/context.o:/cirrus/ecos-2.0/packages/hal/common/v2_0/tests/context.c:116:
first defined here
/usr/local/arm/3.2.1-elf/lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/bin/ld:
Warning: size of symbol `cyg_start' changed from 12 to
952 in
/cirrus/ecos-2.0/edb9301_ROMRAM/ecos_install/lib/libtarget.a(redboot_main.o)
collect2: ld returned 1 exit status
make[1]: ***
[/cirrus/ecos-2.0/edb9301_ROMRAM/ecos_install/tests/hal/common/v2_0/tests/context]
Error 1
make: *** [tests] Error 2
=====
---
Daniel C. Gomes <danielcgomes@yahoo.com.br>
ICQ : 2278714
Belo Horizonte - MG - Brasil
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss