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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!z34g2000vbl.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: compiling for sparc64 Date: Sat, 29 Aug 2009 07:45:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 94.108.212.132 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1251557130 21863 127.0.0.1 (29 Aug 2009 14:45:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 29 Aug 2009 14:45:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z34g2000vbl.googlegroups.com; posting-host=94.108.212.132; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009061208 Iceweasel/3.0.12 (Debian-3.0.12-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8048 Date: 2009-08-29T07:45:30-07:00 List-Id: Allison Phillips wrote on comp.lang.ada: > I have a linux-i686 pc and i need to cross compile a program with gnat to > a sparc64-freebsd target. > are there some parameters for the compiler? > i searched in google and in the old messages of this newsgroup, but no > answers. > i don't need to have a sparc64 version of gnat, only the compiled program. You need to build a cross-compiler from the gnat sources. GCC requires the native and cross compilers to be from the same sources; therefore you have to build your cross-compiler from the exact same sources as your native compiler. To build a cross-compiler, follow the installation instructions[1], passing --target=sparc64-freebsd to ../src/configure. [1] http://gcc.gnu.org/install/ HTH -- Ludovic Brenta.