Problem building Ada examples
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Mon Nov 7 20:57:00 UTC 2005
Frédéric PRACA wrote:
> Hello,
> I'm interested in using Rtems with Ada but I have a problem with the provided
> examples.
> I have two questions :
> - what is the linkcmds file ? Do I have to tweak it ?
> - Using the linkcmds I found in RTEMS_MAKEFILE_PATH/lib/, I get the following
> error :
>
> fred at coruscant:~/Dev/RealTime/ada-examples-4.6.5/hello_world_ada>gmake -f
> Makefile.pc386
> /home/fred/Dev/Audiome/crossCompiler/binaries/bin/i386-rtems-gnatmake -v -O
> -gnata -gnatE -gnato hello -g -o hello.obj \
> -bargs -Mgnat_main \
> -cargs -B/home/fred/Dev/RealTime/rtemsInstall/i386-rtems/pc386/lib/ -specs
> /home/fred/Dev/RealTime/rtemsInstall/i386-rtems/pc686/lib/bsp_specs -qrtems
> -Wl,-Ttext,0x00100000 \
> -largs -B/home/fred/Dev/RealTime/rtemsInstall/i386-rtems/pc386/lib/ -specs
> /home/fred/Dev/RealTime/rtemsInstall/i386-rtems/pc686/lib/bsp_specs -qrtems
> -Wl,-Ttext,0x00100000 init.o
>
> GNATMAKE 4.0.2
> Copyright 1995-2004 Free Software Foundation, Inc.
> -> "hello.obj" final executable
> "hello.ali" being checked ...
> End of compilation
> "hello.obj" missing.
> i386-rtems-gnatbind -aO./ -Mgnat_main -I- -x hello.ali
> i386-rtems-gnatlink hello.ali -g -o hello.obj
> -B/home/fred/Dev/RealTime/rtemsInstall/i386-rtems/pc386/lib/ -specs
> /home/fred/Dev/RealTime/rtemsInstall/i386-rtems/pc686/lib/bsp_specs -qrtems
> -Wl,-Ttext,0x00100000 init.o
> /home/fred/Dev/Audiome/crossCompiler/binaries/lib/gcc/i386-rtems/4.0.2/../../../../i386-rtems/bin/ld:
> start.o: pas de fichier tel: No such file or directory
If memory serves, there should be a start.o in the same directory as the
bsp_specs and the above linker options are sufficient to find it. Is it
there?
> collect2: ld returned 1 exit status
> i386-rtems-gnatlink: cannot call
> /home/fred/Dev/Audiome/crossCompiler/binaries/bin/i386-rtems-gcc
> i386-rtems-gnatmake: *** link failed.
> gmake: *** [hello.exe] Erreur 4
>
> Why does ld look for start.o ????
Every program needs start.o which is traditionally known as crt0.o. It
initializes the stack, etc.
> Thanks for help.
>
> Fred
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list