From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,70cc1410ff93d38b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!postnews.google.com!t3g2000vbb.googlegroups.com!not-for-mail From: Rolf Newsgroups: comp.lang.ada Subject: Re: gcc - ada cross compiler question Date: Sun, 12 Sep 2010 05:26:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4c8bfc49$0$4834$9a6e19ea@unlimited.newshosting.com> <878w379u6h.fsf@ludovic-brenta.org> NNTP-Posting-Host: 91.4.251.9 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1284294417 1940 127.0.0.1 (12 Sep 2010 12:26:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 12 Sep 2010 12:26:57 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t3g2000vbb.googlegroups.com; posting-host=91.4.251.9; posting-account=-RRRjAkAAAAGFvmHqTCN-L7gNQ7lRGfd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14025 Date: 2010-09-12T05:26:56-07:00 List-Id: On 12 Sep., 11:40, 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. =A0I have to build a gcc 4.1.2 based Ada > > cross compiler. =A0The host is Linux. =A0The 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 > > > =A0cp -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? =A0Its confusing why s-stalib i= s > > not being compiled. =A0I 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. =A0You can use GCC 4.4.4 only as the bootstra= p > compiler in this case. =A0What 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