pc386 - hello world linker problem

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Tue Nov 9 17:57:26 UTC 2004


Ralf Corsepius wrote:
> On Mon, 2004-11-08 at 23:36, Lars Munch wrote:
> 
>>Hello
>>
>>I have been playing a bit with bochs and added a small contribution
>>about creating FAT32 hard disk images for bochs to the wiki. Now its
>>time to actually build "hello world" for pc386 myself to run in bochs,
>>but due to a linker error I have not had any success on this part yet.
>>
>>I am using:
>>binutils-2.13.2.1-rtems-20030901.diff
>>binutils-2.13.2.1.tar.bz2
>>gcc-3.2.3-rtems-20040420.diff
>>gcc-3.2.3.tar.bz2
>>newlib-1.11.0-rtems-20031113.diff
>>newlib-1.11.0.tar.gz
>>
>>
>>This is my first time using RTEMS for i386, so any pointer are highly
>>appreciated.
> 
> The cause for this breakdown is a typo in RTEMS gcc-patch, which had
> been reported and fixed looong time ago. Unfortunately it still seems to
> be contained in RTEMS current toolchain.
> 
> 
> As a work around, check your
> /opt/rtems-4.6/lib/gcc-lib/i386-rtems/3.2.3/specs

I thought I had dealt with this in the 4.6 tools.  Grrrr...

I will start spinning a new set of 3.2.3/4.6 RPMs now. :(

> for the "lib:"-rule and edit -gcc into -lgcc in this line.
> 
> 
> --- /opt/rtems-4.6/lib/gcc-lib/i386-rtems/3.2.3/specs~  2004-10-27 16:43:43.000000000 +0200
> +++ /opt/rtems-4.6/lib/gcc-lib/i386-rtems/3.2.3/specs   2004-10-27 16:43:43.000000000 +0200
> @@ -45,7 +45,7 @@
>   
>   
>  *lib:
> -%{!qrtems: %{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}} %{!nostdlib: %{qrtems: --start-group  %{!qrtems_debug: -lrtemsbsp -lrtemscpu}  %{qrtems_debug: -lrtemsbsp_g -lrtemscpu_g}  -lc -gcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}
> +%{!qrtems: %{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}} %{!nostdlib: %{qrtems: --start-group  %{!qrtems_debug: -lrtemsbsp -lrtemscpu}  %{qrtems_debug: -lrtemsbsp_g -lrtemscpu_g}  -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}
>   
>  *libgcc:
>  -lgcc
> 
> 
> <ranting>
> Joel, when will this bug finally be fixed?
> </ranting>
> 
> Ralf
> 
> 


-- 
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