From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28807 invoked by alias); 8 Jan 2007 00:39:20 -0000 Received: (qmail 28798 invoked by uid 22791); 8 Jan 2007 00:39:20 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-send.myrealbox.com (HELO smtp-send.myrealbox.com) (151.155.5.143) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 08 Jan 2007 00:39:14 +0000 Received: from tprince [68.122.9.103] by myrealbox.com with NetMail ModWeb Module; Mon, 08 Jan 2007 00:39:12 +0000 Subject: Re: Re: cross compiling for x86_64 Reply-To: tprince@nospamcomputer.org From: "Timothy C Prince" To: karuottu@mbnet.fi CC: aph@redhat.com, bhagat.indu@gmail.com, gcc-help@gcc.gnu.org Date: Mon, 08 Jan 2007 00:39:00 -0000 X-Mailer: NetMail ModWeb Module X-Sender: tprince MIME-Version: 1.0 Message-ID: <1168216752.c7cdb73ctprince@myrealbox.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg00061.txt.bz2 -----Original Message----- From: Kai Ruottu To: Andrew Haley Date: Mon, 08 Jan 2007 01:48:04 +0200 Subject: Re: cross compiling for x86_64 Andrew Haley wrote : > Indu Bhagat writes: > > I am trying to configure gcc for compiling some c,cpp and fortran > > sources to x86_64 on my x86 machine using the following steps: > >=20 > > 1. Binutils-2.17 configuration and installation: > > 2. After successful completion of step 1, gcc configuration and insta= llation: > > 3. After this, I proceeded with glibc, as I think one needs to have > > appropriate library support as well, to support cross compilation. > OK, now you need to build gcc again, this time with glibc (not=20 newlib) support. The common rule is that the "appropriate library" is always the C=20 library for the $target!=20=20 ____________________________- As there no longer exist any production CPUs which support only 32-bit i386= , and not 64-bit x86-64, this seems an inappropriate time to attempt instit= ution of cross-compiler capability. Intel compilers for x86-64 run in 32-bit mode, in an apparently impractical= attempt to support cross compilation. All the headers, libraries, and a c= ross-build of binutils, for the 64-bit target, would have to be present. I= don't know of any successful demonstration of such capability. Tim Prince