This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Getting and compiling ECOS or is there an archive?
On Sat, 2005-03-19 at 23:35 -0500, Linux HA wrote:
> Gary Thomas wrote:
>
> > You could try this example:
> > http://www.mlbassoc.com/examples/build_hello.html
> > Just use your desired platform (eb40a) where it uses "viper"
>
>
> Gary thanks for the example and it's Howto. I now get this error:
>
> arm-elf-gcc -c -mthumb-interwork -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 -I/tmp/redboot_ROM/install/include hello.c
> hello.c: In function `main':
> hello.c:5: warning: implicit declaration of function `printf'
> hello.c:6: warning: implicit declaration of function `exit'
> arm-elf-gcc -mthumb-interwork -mcpu=arm7tdmi -mno-short-load-words
> -Wl,--gc-sections -Wl,-static -g -nostdlib -L/tmp/redboot_ROM/install/lib
> -Ttarget.ld hello.o -o hello
> /tmp/redboot_ROM/install/lib/libtarget.a(redboot_main.o): In function `cyg_start':
> /tmp/redboot_ROM/install/include/cyg/hal/hal_if.h:601: undefined reference to
> `RedBoot_version'
> collect2: ld returned 1 exit status
> make: *** [hello] Error 1
>
> I think I figured out what's going on/ It compiles
> version.c but I doubt it's being put into the lib
> file. When I add
>
> /tmp/redboot_ROM/install/lib/version.o
>
> to the arm-elf-gcc line it compiles.
You've just put a band-aid on a broken setup :-( No changes
like this should ever be required.
Your real problem seems to be that you're trying to build a
normal application using a tree built using the RedBoot template.
Please reread the example and note that it starts from scratch
which is what you need to do.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss