From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64030 invoked by alias); 27 Jul 2016 08:20:22 -0000 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 Received: (qmail 64015 invoked by uid 89); 27 Jul 2016 08:20:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=douglas, Douglas, Houston, houston X-HELO: mail-yw0-f177.google.com Received: from mail-yw0-f177.google.com (HELO mail-yw0-f177.google.com) (209.85.161.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 27 Jul 2016 08:20:11 +0000 Received: by mail-yw0-f177.google.com with SMTP id z8so50456827ywa.1 for ; Wed, 27 Jul 2016 01:20:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7bcair9eEGD5CI2H6EROyqHu8sfBPDo2yhadA8XrQ1I=; b=FFDfM5pLBTpWCza45xUSZN9OnMvZtzUTsJNA6G+50dNps+XKEqdLjejEk/6Na5Ganq 8A0u6+9IjkIzpPVnhM3uS0+eazmww30ZJoc3rQ4kV/U9CVc3SAwCSqOLkhHvadSCUK9T 8yhPJEUbNVmpITTUVPvkQgWO+Hh5ppuJBovLWSZ6AGLWs0NwQQL7r3IjazvReEDwZKMQ 74gfSujnPBb/Gt3o00tQrxdh2+atwk7bpBn3B9HOzw4woQmIM46kVTq5lYk6UEU4Bxpy WkDp5VnDeD5n2tXIm6i6c1wCxAu1s8ypVVnn4oQBtpRfNwNZnJemtrsO4qLx9VakOYNh K4Fg== X-Gm-Message-State: AEkooutanUmxfrBuzfUmsyebs/08e9o5fJ4U6qSJGFYGn/BXJgBL3MJMNZVXt5j03aDGnuj5bTrHU0gmD/tlyA== X-Received: by 10.13.234.139 with SMTP id t133mr24398403ywe.108.1469607609106; Wed, 27 Jul 2016 01:20:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.66.12 with HTTP; Wed, 27 Jul 2016 01:20:08 -0700 (PDT) In-Reply-To: <20160727084755.73846m6y070c2lss@www.staffmail.ed.ac.uk> References: <20160727084755.73846m6y070c2lss@www.staffmail.ed.ac.uk> From: Jonathan Wakely Date: Wed, 27 Jul 2016 08:22:00 -0000 Message-ID: Subject: Re: Problems building gcc To: Douglas Houston Cc: gcc-help Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00071.txt.bz2 On 27 July 2016 at 08:47, Douglas Houston wrote: > Hi all, > > I'm having some trouble installing the latest gcc (which I need to build > another program called Gromacs). > > I am on Scientific Linux release 6.8 (Carbon) (kernel > 2.6.32-573.3.1.el6.x86_64), trying to install gcc-5.4.0. > > After installing the latest gmp, mpfr and mpc, I create a separate objdir > build/install directory as recommended. In there, as root, I run: > > > ../gcc-5.4.0/configure > > > Which fails with: > > > /usr/bin/ld: crt1.o: No such file: No such file or directory > collect2: ld returned 1 exit status > configure: error: I suspect your system does not have 32-bit developement > librar > ies (libc and headers). If you have them, rerun configure with > --enable-multilib > . If you do not have them, and want to build a 64-bit-only compiler, rerun > confi > gure with --disable-multilib. https://gcc.gnu.org/wiki/FAQ#gnu_stubs-32.h > So as directed by the output, I try: > > > ../gcc-5.4.0/configure --disable-multilib > > > Now it fails with: > > > checking for x86_64-unknown-linux-gnu-gcc... > /root/gcc-5.4.0-install/./gcc/xgcc > -B/root/gcc-5.4.0-install/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ > -B/u > sr/local/x86_64-unknown-linux-gnu/lib/ -isystem > /usr/local/x86_64-unknown-linux- > gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include > checking for suffix of object files... configure: error: in > `/root/gcc-5.4.0-ins > tall/x86_64-unknown-linux-gnu/libgcc': > configure: error: cannot compute suffix of object files: cannot compile > See `config.log' for more details. https://gcc.gnu.org/wiki/FAQ#configure_suffix > Can anyone suggest what the fix might be? I've looked in config.log as the > output suggests but can't find any reference to > x86_64-unknown-linux-gnu-gcc. As it says at https://gcc.gnu.org/wiki/FAQ#configure_suffix, you're probably looking at the wrong config.log file. https://gcc.gnu.org/wiki/InstallingGCC might be useful. You've probably installed gmp, mpfr and mpc awkwardly.