From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11613 invoked by alias); 27 Mar 2012 06:30:59 -0000 Received: (qmail 11601 invoked by uid 22791); 27 Mar 2012 06:30:58 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-wi0-f179.google.com (HELO mail-wi0-f179.google.com) (209.85.212.179) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Mar 2012 06:30:42 +0000 Received: by wibhn6 with SMTP id hn6so4326048wib.8 for ; Mon, 26 Mar 2012 23:30:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.196.29 with SMTP id q29mr1840185wen.12.1332829841400; Mon, 26 Mar 2012 23:30:41 -0700 (PDT) Received: by 10.180.99.99 with HTTP; Mon, 26 Mar 2012 23:30:41 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Mar 2012 06:30:00 -0000 Message-ID: Subject: Re: Cross compilation problem From: Alexey Umnov To: gcc-help@gcc.gnu.org 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: 2012-03/txt/msg00362.txt.bz2 >> 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=3Di386-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. =C2=A0However, you also have to prov= ide > a compiler that generates executables that run on that host. =C2=A0If you > don't, the configure script will try to find such a compiler. =C2=A0In yo= ur > case it appears to be getting it wrong. > > I would recommend passing BOOT_CFLAGS=3D-m32 when you run configure and/or > make. > > Ian Thank You! I tried to add following parameters and they helped: --disable-bootstrap CFLAGS=3D-m32 I also added CFLAGS=3D-m32 to "make" command just in case I don't know what exactly made such an effect but the problem is solved now. Thank You! ---------------------------- Best regards! Alexey Umnov umnoff@gmail.com