From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26124 invoked by alias); 14 Jun 2012 03:46:55 -0000 Received: (qmail 26113 invoked by uid 22791); 14 Jun 2012 03:46:54 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,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; Thu, 14 Jun 2012 03:46:41 +0000 Received: by pbbrq2 with SMTP id rq2so3167006pbb.20 for ; Wed, 13 Jun 2012 20:46: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=LaFV3zLPAWVhbZjnaDdbqEEr3EdUcePIKCXwNMgfNww=; b=Hi0vub4tBS6gRe3V3SbgRP53mki+BlgJt4CzLEhKPZj+jFgP+fhIAT1WtZxmJPCqoD AA4eFb1RbFr3z6NavaDjkNErAkTS3DcjE8VtWrTeHLPAwhesU8Zu6Rc/3c3jtslshC8p 4YtCxZ7hzZxJHhL1ul/Lmcph/zYWe7djeNfy3oj2+KpXy8IwTopEgCRyl6JJLwJaX1S1 eHmYLgEKUNnri3t65Eh9/XVOZujLUdA8fdymyvaAgeDhzJAaUd+IT+uJxQFzG0NcssmH V7oer/WjB1uLL2P4PPIWaRZTcUuNxmRmenD+YujEJw+A4H4z+ZtG7cogTpoNA6qmjuSi AjSw== Received: by 10.68.240.73 with SMTP id vy9mr3012949pbc.102.1339645601049; Wed, 13 Jun 2012 20:46:41 -0700 (PDT) Received: by 10.68.240.73 with SMTP id vy9mr3012915pbc.102.1339645600884; Wed, 13 Jun 2012 20:46:40 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id og4sm7971075pbb.48.2012.06.13.20.46.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jun 2012 20:46:40 -0700 (PDT) From: Ian Lance Taylor To: "Armin K." Cc: gcc-help@gcc.gnu.org Subject: Re: i686 Multilib Question References: <4FD93478.5030204@email.com> Date: Thu, 14 Jun 2012 03:46:00 -0000 In-Reply-To: <4FD93478.5030204@email.com> (Armin K.'s message of "Thu, 14 Jun 2012 02:46:48 +0200") 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: ALoCoQnRa7WdYBSpgacDXBIz+pLfDGc0xgqElg587fou3gvgnXYn5k+2s/XR8x0pNvZqgFo1gX9ciQMzaKZrebYfNLqK6mbz2eZaigxbRbhUWQSB+8gy0hjOorwtB4Bz7g4RWLNgvh7CK6PKI2IYOmn3JOyTZX0Ljc2BBVf+3SI734TpG6tmrd4= 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-06/txt/msg00128.txt.bz2 "Armin K." writes: > I have currently i686 system (Linux From Scratch) and I would like to > bootstrap multilib compiler on that one. The problem is, I don't have > any working multilib compiler, only i686 one. And I don't know where > to start. > > I have tried first enabling multilib and all targets in binutils, then > statically compiling gcc. > > I ran into problems in bootstrap stage and tought it was a bug. A more > detailed report about this can be found in bug report > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53662 > > Has anyone managed to bootstrap multilib compiler using i686 one? I > would like to have i686 compiler, but also I want to be able to use > -m64 which is done by multilib right? I am aware that I need multilib > binutils, static gcc to compile multilib glibc and use it to bootstrap > full gcc with shared libraries and such. Am I right? But I am unable > to accomplish that. Could anyone guide me in right direction? Google > does not help very much. And yes, I want this. I don't want to install > or build 64 bit operating system. In order to build a GCC that can build 64-bit binaries, you need to have a 64-bit C library and 64-bit binutils installed. Do you? There is a shell script config.guess in the top level GCC directory. When you run it, does it print x86_64-unknown-linux-gnu or i686-unknown-linux-gnu? If it prints i686, that suggests that uname -m on your system prints i686, and that suggests that your kernel is not running in 64-bit mode. Ian