From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6021 invoked by alias); 15 Feb 2008 07:17:28 -0000 Received: (qmail 6010 invoked by uid 22791); 15 Feb 2008 07:17:27 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Feb 2008 07:17:10 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1JPuoc-0000fc-1Y; Fri, 15 Feb 2008 07:16:58 +0000 Message-ID: <47B53C68.989E034E@dessent.net> Date: Fri, 15 Feb 2008 07:17:00 -0000 From: Brian Dessent Reply-To: gcc-help@gcc.gnu.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: "Frank W. Miller" CC: gcc-help@gcc.gnu.org Subject: Re: Building a cross compiler for x86_64 References: <20080215070029.047D11038014@smtpauth03.csee.onr.siteprotect.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2008-02/txt/msg00175.txt.bz2 "Frank W. Miller" wrote: > I'm not sure why I would need to have a different libc. I'm going to run > the cross compiler and binutils on my Linux box. I only want to use them to > generate an x86_64 binary kernel that I'll boot on another machine. > Wouldn't the cross compiler just use the fc8 libc to do its work? I'm talking about target libs not host libs. > May I assume you're talking about providing some libc functionality for the > target? If that's the case, the kernel is standalone, i.e. its built using > --freestanding. That way no other libs get linked in except what I specify > exactly. Okay, I thought you were saying you had the kernel and wanted to start on the userspace. If it's freestanding then you can skip building libgcc which eliminates the need for a target libc. You can either just do the standard "make all" and let it error at libgcc or you can do "make all-gcc" which builds just the compiler. Brian