From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by sourceware.org (Postfix) with ESMTPS id 09539384B438 for ; Wed, 19 Aug 2020 06:51:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 09539384B438 Received: by mail-io1-xd32.google.com with SMTP id v6so23569055iow.11 for ; Tue, 18 Aug 2020 23:51:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=L5C+3ZJwF7701OTYMym+PXqWmra+RzXrarS+3AzfbDo=; b=ouQkjrpnoUT1Ug7G6K60nKo7kn81JC+0azORKSVV+lq+AVdIEdH8LkSEyOV23EjbRl FB9Dp1k5+kq41C5ABOPnPnL7zVo3F18AWsOe/FYoQRVMEi/KQ5TESA/94NyZTI7BNlOB CVbRYpGZOUYoe3vjkDkQ2ZO/L9vjql3qTY5ZgGwMlXGcehfCV2EVY5r2OLJv+VEjhniC BtltX6GTr704V6J1svpygK05xmdLNGual+UrldBSYjars830Tpk6p4yEqMs5xtmaDdGR n98WXH9dDzzsoQOMcWkn72Ts2/h6YDLh2jbN3N1EKoj8b/A3GijCytAdjDflF3xej19k 7RLg== X-Gm-Message-State: AOAM530TGlT2/vw/SvnUBZOhThXIWEnPcW/7bvyZGSBgU0MuHh3vQ6RV SZEtggfEI2LpRPeFZ5RQOQr4uWU1kkMt7yF9yxk= X-Google-Smtp-Source: ABdhPJzzzdHvXM9WLn30vOXbWLbiW+8X2TsXBEjolRjsWIT4a9nSF1gK3858ciWNvglTZEm211BX6DNt5WcWu0NENoU= X-Received: by 2002:a6b:7e41:: with SMTP id k1mr19251983ioq.130.1597819874341; Tue, 18 Aug 2020 23:51:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Wed, 19 Aug 2020 07:51:03 +0100 Message-ID: Subject: Re: Fail in build gcc 4.2 to use in x86_64-linux-gnu Ubuntu 5.4.0-6ubuntu1~16.04.12 To: Felipe Moura Oliveira Cc: gcc-help Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2020 06:51:17 -0000 On Wed, 19 Aug 2020 at 00:15, Felipe Moura Oliveira via Gcc-help wrote: > > Hi all. > > I need gcc 4.2 to compile old project. > I tried to build gcc 4.2 in several ways and with several configurations > and at the end I had the same error log. > I'm stuck in it for about 3 days T_T. > My process: > 1 - cloned gcc repository and change to branch gcc-4.2. > 2 - created dir in parallel with code. > 3 - run *sudo ../gcc-4.2.0/configure --enable-languages=3Dc,c++ > --disable-stage1-checking --disable-multilib --disable-werror > --disable-bootstrap* Why are you using sudo? > 4 - I open Makefile and change : > > CC =3D gcc > CXX =3D g++ > > to > > CC =3D gcc -fgnu89-inline > CXX =3D g++ -fgnu89-inline > > (https://unix.stackexchange.com/questions/219708/arch-compiling-toplev-o-= fails-in-gcc-install) > > Because I had same behavior. > > 5 - sudo make -j1 Don't build as root! That's very silly. > > After 10 minutes my build crash with msg: > ... > ../../gcc-4.2.0/gcc/config/i386/i386.h:155: error: storage class > specified for parameter =E2=80=98x86_partial_reg_dependency=E2=80=99 It looks to me like your sources are corrupt somehow. This line is not a function parameter.