From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,af7cd770fa0fc2b1 X-Google-Attributes: gid111c93,public From: martin.kahlert@keksy.mchp.siemens.de (Martin Kahlert) Subject: Re: crosscompile Date: 1999/06/29 Message-ID: <7la49f$l9h$1@news.mch.sbs.de>#1/1 X-Deja-AN: 495127323 References: <3776747d.2017228@news.wish.net> To: rwassens@thewatercooler.com Content-Type: text/plain; charset=us-ascii Organization: Siemens Inc. Mime-Version: 1.0 Reply-To: martin.kahlert@mchp.siemens.de Newsgroups: comp.os.linux.alpha [Posted and mailed] In article <3776747d.2017228@news.wish.net>, rwassens@thewatercooler.com writes: > I want to cross-compile alph linux code on an i586 host. But I can't > configure gcc-2.7.2.3 for target alpha-linux (is not supported). What > do I have to do to make it work? You won't have any luck to do that. It would work the other way round: a compiler running on Linux Alpha which produces code for intel586 The problem is, that gcc (egcs, too!) assumes e.g., that a long on the target fits in a long on the host. That's a gcc inherent problem, which is not easy to fix. PS: gcc-2.7.2.3 is very old. Use egcs instead (http://egcs.cygnus.com) Bye, Martin. -- esa$ gcc -Wall -o ariane5 ariane5.c ariane5.c: 666: warning: long float implicitly truncated to unsigned type esa$ ariane5