comp.lang.ada
 help / color / mirror / Atom feed
* gcc - ada cross compiler question
@ 2010-09-11 22:00 mark
  2010-09-12  9:40 ` Ludovic Brenta
  0 siblings, 1 reply; 4+ messages in thread
From: mark @ 2010-09-11 22:00 UTC (permalink / raw)


Hi:

I've built a couple gcc/ada cross compilers in the past but I'm really 
having trouble with this one.  I have to build a gcc 4.1.2 based Ada 
cross compiler.  The host is Linux.  The target is a 
powerpc-mpc8248-linux-uclibc (PowerPC 603, Linux 2.6.20, uClibc-0.9.29). 
  When building the compiler, I get a message

  cp -p ../../gcc/ada/sinfo.ads ../../gcc/ada/nmake.adt 
../../gcc/ada/xnmake.adb ada/bldtools/nmake_b
(cd ada/bldtools/nmake_b; gnatmake -q xnmake ; ./xnmake -b ../../nmake.adb )
gnatbind: Cannot find: s-stalib.ali
gnatmake: *** bind failed.

Would anyone know why the error occurs?  Its confusing why s-stalib is 
not being compiled.  I am using gcc 4.4.4 as the host compiler.

Thanks

Mark



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc - ada cross compiler question
  2010-09-11 22:00 gcc - ada cross compiler question mark
@ 2010-09-12  9:40 ` Ludovic Brenta
  2010-09-12 12:26   ` Rolf
  2010-09-12 17:40   ` mark
  0 siblings, 2 replies; 4+ messages in thread
From: Ludovic Brenta @ 2010-09-12  9:40 UTC (permalink / raw)


mark writes on comp.lang.ada:
> I've built a couple gcc/ada cross compilers in the past but I'm really
> having trouble with this one.  I have to build a gcc 4.1.2 based Ada
> cross compiler.  The host is Linux.  The target is a
> powerpc-mpc8248-linux-uclibc (PowerPC 603, Linux 2.6.20,
> uClibc-0.9.29). When building the compiler, I get a message
>
>  cp -p ../../gcc/ada/sinfo.ads ../../gcc/ada/nmake.adt
> ../../gcc/ada/xnmake.adb ada/bldtools/nmake_b
> (cd ada/bldtools/nmake_b; gnatmake -q xnmake ; ./xnmake -b ../../nmake.adb )
> gnatbind: Cannot find: s-stalib.ali
> gnatmake: *** bind failed.
>
> Would anyone know why the error occurs?  Its confusing why s-stalib is
> not being compiled.  I am using gcc 4.4.4 as the host compiler.

IIRC, it is necessary to use the exact same version of GCC for the
native and cross compilers.  You can use GCC 4.4.4 only as the bootstrap
compiler in this case.  What stage does the error happen in?

-- 
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc - ada cross compiler question
  2010-09-12  9:40 ` Ludovic Brenta
@ 2010-09-12 12:26   ` Rolf
  2010-09-12 17:40   ` mark
  1 sibling, 0 replies; 4+ messages in thread
From: Rolf @ 2010-09-12 12:26 UTC (permalink / raw)


On 12 Sep., 11:40, Ludovic Brenta <ludo...@ludovic-brenta.org> wrote:
> mark writes on comp.lang.ada:
>
> > I've built a couple gcc/ada cross compilers in the past but I'm really
> > having trouble with this one.  I have to build a gcc 4.1.2 based Ada
> > cross compiler.  The host is Linux.  The target is a
> > powerpc-mpc8248-linux-uclibc (PowerPC 603, Linux 2.6.20,
> > uClibc-0.9.29). When building the compiler, I get a message
>
> >  cp -p ../../gcc/ada/sinfo.ads ../../gcc/ada/nmake.adt
> > ../../gcc/ada/xnmake.adb ada/bldtools/nmake_b
> > (cd ada/bldtools/nmake_b; gnatmake -q xnmake ; ./xnmake -b ../../nmake.adb )
> > gnatbind: Cannot find: s-stalib.ali
> > gnatmake: *** bind failed.
>
> > Would anyone know why the error occurs?  Its confusing why s-stalib is
> > not being compiled.  I am using gcc 4.4.4 as the host compiler.
>
> IIRC, it is necessary to use the exact same version of GCC for the
>

GNAT is very picky about the build compiler. Ludovic is right in that
you have to use a 4.1 compiler, better the exact matching version,
i.e. gcc-4.1.2 in your case.

> native and cross compilers.  You can use GCC 4.4.4 only as the bootstrap
> compiler in this case.  What stage does the error happen in?
>

Using a higher version number for bootstrapping older GNAT versions
requires that you don't treat warnings as errors during stage 1. This
is a usability bug in the Makefiles, IMHO.

BTW, there is only a single stage when building cross compilers.

   Rolf



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc - ada cross compiler question
  2010-09-12  9:40 ` Ludovic Brenta
  2010-09-12 12:26   ` Rolf
@ 2010-09-12 17:40   ` mark
  1 sibling, 0 replies; 4+ messages in thread
From: mark @ 2010-09-12 17:40 UTC (permalink / raw)


I had deleted the original post.  I was using a wrong adalib.  Problems 
still remain but I'm posting them in gnu.gcc.help.  Thanks for your 
reply anyway.

On 09/12/2010 05:40 AM, Ludovic Brenta wrote:
> mark writes on comp.lang.ada:
>> I've built a couple gcc/ada cross compilers in the past but I'm really
>> having trouble with this one.  I have to build a gcc 4.1.2 based Ada
>> cross compiler.  The host is Linux.  The target is a
>> powerpc-mpc8248-linux-uclibc (PowerPC 603, Linux 2.6.20,
>> uClibc-0.9.29). When building the compiler, I get a message
>>
>>   cp -p ../../gcc/ada/sinfo.ads ../../gcc/ada/nmake.adt
>> ../../gcc/ada/xnmake.adb ada/bldtools/nmake_b
>> (cd ada/bldtools/nmake_b; gnatmake -q xnmake ; ./xnmake -b ../../nmake.adb )
>> gnatbind: Cannot find: s-stalib.ali
>> gnatmake: *** bind failed.
>>
>> Would anyone know why the error occurs?  Its confusing why s-stalib is
>> not being compiled.  I am using gcc 4.4.4 as the host compiler.
>
> IIRC, it is necessary to use the exact same version of GCC for the
> native and cross compilers.  You can use GCC 4.4.4 only as the bootstrap
> compiler in this case.  What stage does the error happen in?
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-12 17:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-11 22:00 gcc - ada cross compiler question mark
2010-09-12  9:40 ` Ludovic Brenta
2010-09-12 12:26   ` Rolf
2010-09-12 17:40   ` mark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox