From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25219 invoked by alias); 15 Dec 2007 00:39:01 -0000 Received: (qmail 25210 invoked by uid 22791); 15 Dec 2007 00:39:00 -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; Sat, 15 Dec 2007 00:38:56 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1J3L3D-0002gO-U3; Sat, 15 Dec 2007 00:38:44 +0000 Message-ID: <4763228A.25D48A54@dessent.net> Date: Sat, 15 Dec 2007 00:39: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: Eduardo Martinez Pardeiro CC: gcc-help@gcc.gnu.org Subject: Re: crosscompiler for ia64 References: <43f288560712141301k6f5ef9fbvc4930bda898f2a7f@mail.gmail.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: 2007-12/txt/msg00278.txt.bz2 Eduardo Martinez Pardeiro wrote: > I want to build a crosscompiler from i486 to ia64-hp-hpux11.23. > I know in configure have to specify --target=ia64-hp-hpux11.23, but > only with this, i have a mistake. What more have i do? The problem that you're running into is that gcc is just the compiler, it is not the C library. If you try to build a cross compiler without a libc (i.e. just using what comes with gcc) you will get something that is not very useful as it can't link any programs -- which also means it won't be able to build libgcc or libstdc++ or any of the other required support libraries, let alone a "hello world" C program. This is probably not what you want. One way to supply these items is with a sysroot. Take the relevant items from the target system (e.g. /usr/include and /usr/lib or whereever they are located) and reproduce them in the same tree structure in some subdirectory on the cross host. Then supply the top of that location as --with-sysroot=/foo/bar when configuring the cross compiler. If you don't have an appropriate target system to get a copy of these files from then you're in a bit of a pickle. If the target is open source you can use a more complicated process to bootstrap them from source, but when you're targeting a proprietary target like HP-UX there's really no choice but to copy them from the target system. Brian