From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6530 invoked by alias); 6 Mar 2020 12:08:38 -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 6520 invoked by uid 89); 6 Mar 2020 12:08:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-wr1-f44.google.com Received: from mail-wr1-f44.google.com (HELO mail-wr1-f44.google.com) (209.85.221.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Mar 2020 12:08:36 +0000 Received: by mail-wr1-f44.google.com with SMTP id n15so2034683wrw.13 for ; Fri, 06 Mar 2020 04:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zBb4YDyGBgcKlIsiyW4VW0dpb17QZjN7zUG8Zw3+vBc=; b=AKPy5yJG3PMwaUG/qDaFAPV1yxrvxMLTUIGh6GHXdFoTfbQ7jo8dXXIHHnHcxmx1HG i0h+N2LeP34CzH0ztPIlOoYNJhTCyFi/OCOODEDnnAzGQ23TnA+s2w8mSm0TvnZiTT94 sor03aheaDk/9ZqLzBbV8Kc6jxIjYTAGsQVPY9pNS+Q/wO0c38qVjWN2VN7VohzzWUw7 WKedxWumtZ+YpznuL/coTTIYtOAyN8ER3CCTXkA8wi9BJzHxq5yFP2pW7qJguigAiauy o2GUcQgcrMirx2I/bx/JRuVaD9THVW74y1NPreJJtVDX+xfjY7naQom0EpIH1aJ3SNWN WHmg== MIME-Version: 1.0 References: <5e6238c2.1c69fb81.e2203.5452SMTPIN_ADDED_BROKEN@mx.google.com> In-Reply-To: <5e6238c2.1c69fb81.e2203.5452SMTPIN_ADDED_BROKEN@mx.google.com> From: Jonathan Wakely Date: Fri, 06 Mar 2020 12:08:00 -0000 Message-ID: Subject: Re: Install gcc To: "yilu@bupt.edu.cn" Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-03/txt/msg00033.txt On Fri, 6 Mar 2020 at 11:49, yilu@bupt.edu.cn wrote: > > Hi, everybody. > I'm trying install gcc, with command: > > ./gcc/configure --prefix=/gccobj --disable-checking --enable-languages=all --disable-multilib --disable-bootstrap --with-gmp=/gmp --with-mpfr==/mpfr --with-mpc==/mpc This is a really really bad idea. The build will create a sub-directory called 'gcc' which is the directory where you have the source tree. https://gcc.gnu.org/install/configure.html says "First, we **highly** recommend that GCC be built into a separate directory from the sources which does **not** reside within the source tree." > (I've installed mpfr,mpc,gmp in the corresponding directory) My recommendation is that you don't do that either. See https://gcc.gnu.org/wiki/InstallingGCC > and I got this two information after a lot of checkings: > > configure: creating ./config.status > config.status: creating Makefile > > and then I try the command > > make -j4 > > and I got > > make[1]: Leaving directory '/root' > Makefile:959: recipe for target 'all' failed > make: *** [all] Error 2 This is completely usleless information. The error happened much earlier but you've just shown the very end of the output which says "there was an error"> > > I searched for FAQ, but cannot find an approach. What can I do in this situation? See https://gcc.gnu.org/wiki/InstallingGCC