From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15384 invoked by alias); 26 Mar 2012 20:50:55 -0000 Received: (qmail 15375 invoked by uid 22791); 26 Mar 2012 20:50:54 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Mar 2012 20:50:41 +0000 Received: by pbcum15 with SMTP id um15so6542663pbc.20 for ; Mon, 26 Mar 2012 13:50:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:x-gm-message-state; bh=e+hyF8uEsngcccHbAfHHg7HqQCSgiPnou4ITOjQUp84=; b=a8S2P5yLIGP1KHK+vwweEp/RT5NG/s83N2rtBOD+PxI0ObMaPAc8MzIdYFuu70F8Qt wPRLU7FoPCd7qP8h1rPCYmRz2pfqFnSauhyxtIm2W3Q8Rnjk+47EpczX/K3xQJaKlfAN njtvQsGsNJrYu5zLczsQp8R9MmJgtTjTtlbX6sDe2nw5b3IJvqgI5098W9drL+Or/eyw rt60M6LrbFcUDiKlOTj97RT99iLHrFj/wRrbt9wa9LnNCZcPxBPArcdKekAQsakZaKOw ds21DiesI4qP/kOl8tM7OgvyplRNNy9lOdC7d8bWvo/5OO4lYfdi2LDqO+YR8PthO1xK tzCA== Received: by 10.68.132.232 with SMTP id ox8mr55826175pbb.145.1332795041457; Mon, 26 Mar 2012 13:50:41 -0700 (PDT) Received: by 10.68.132.232 with SMTP id ox8mr55826131pbb.145.1332795041093; Mon, 26 Mar 2012 13:50:41 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id m7sm13246219pba.30.2012.03.26.13.50.40 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Mar 2012 13:50:40 -0700 (PDT) From: Ian Lance Taylor To: Alexey Umnov Cc: gcc-help@gcc.gnu.org Subject: Re: Cross compilation problem References: Date: Mon, 26 Mar 2012 20:50:00 -0000 In-Reply-To: (Alexey Umnov's message of "Mon, 26 Mar 2012 16:25:27 +0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQmxvKSfiVGCQrAo2TdMzFTYUwBo0cNOkvmxhADNz89X2vqnJjLFDpzWgf5ntrid4RGmd8H73AXNagVMdQ0LW3XihmzA9LDBXbWOUuvDWFNnzxKg3OM1uFfoqjvyu7M94ZHIdkrX/XnUv7E645xX/3Xz7bWQcs2vXO3U7UjYETe/mtPoWSs= 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: 2012-03/txt/msg00356.txt.bz2 Alexey Umnov writes: > The problem is that the tools that is being built are not 32bit > executables, they are rather 64bit (ELF 64-bit LSB executable, > x86-64). This is not what I expected because of > "--with-host=i386-linux-gnu" parameter which as far as I understand > tells the build system to build a compiler that runs on 32bit linux > machine. Specifying --with-host tells the build system that the resulting executables should run on that host. However, you also have to provide a compiler that generates executables that run on that host. If you don't, the configure script will try to find such a compiler. In your case it appears to be getting it wrong. I would recommend passing BOOT_CFLAGS=-m32 when you run configure and/or make. Ian