From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id 0F0843858D32 for ; Tue, 13 Jun 2023 10:35:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0F0843858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-977c89c47bdso963473466b.2 for ; Tue, 13 Jun 2023 03:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686652526; x=1689244526; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=k6ktxv7OD+WNOctqHr/S8SwBb71vKS+H5RtJbUpVTbg=; b=WPH59TAwqp9ZwlZpCddW7FG74brsvSnGE7YwcqD1rSFG2gjSkQreJ8iCexntLPF38Y X1YSsDyC/dT43/jFZXGPzjM8tVCT+IUkY2HK9zGURso5LWs5Fxc4iRx5bXRQTD7EawvI PdgzmSmxNPf9xnkKnbfbwoVwJU/DMvPxG2z8puUwHdcPaWePRlZYa61nltzqEUtmudZN B9+Ul/VDibulfD2YvyiyXFnxO7Q2CONfXSksKpyGYGFeaBQLXXGj24WSA0oGVgSw1tMw 0NyEOH0bxcW23DWEZLqxZjbpR9tmq2KUiH0lhW1Xs7B/JrrEgpNTwNSWqnGvSGRF/mfy B3eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686652526; x=1689244526; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k6ktxv7OD+WNOctqHr/S8SwBb71vKS+H5RtJbUpVTbg=; b=hVlU+s8BVhQjovd7+1+Avq07FXRy64m4GPF4c9UBuszQmLo/8cOnmIWIWIxwqxdRvV 5SPDMibxq6vx1YhFFPM9anjE9w+V8gmLXy9ADlBJBkVL71Rf9M/fwpSv7LcMUmxCzda+ 4h62o2a1MV7XuBBfH78sUMsf13miQwAXa84tM76DEwEggIB39XLGGbj6Gf54rFF4V67X OEZsTD1xO9PfohCoGNhP0f2ngvPFZ+p5PUo5w4sa30+jHIZsvlH6lCLRSsSh/IQ2eV1W INRzTtqxTkA/4mRHv2sSRC+/1lI8dUkcpQqqUH7ZRuo+tW12K1qK2onuadFvts5SjCpy Pa2w== X-Gm-Message-State: AC+VfDwktHRe2FPnU7Nyz2DrYLCf9PG3r0GvIlUD3KIy1N8VJgnAP5A2 wgi+Oxux1eQOHBSpr7wvyBz6iNjTkYOmBWKOzQclM81c X-Google-Smtp-Source: ACHHUZ5BaTLv7cXw02YGnkuqSOUmCPlQ065zdX6wtvrwat9Zuew+qDShtY7MVUoOZD4K1CLiX2UXbFQcMTlvi4TQ484= X-Received: by 2002:a2e:7d07:0:b0:2a7:a59c:8ad0 with SMTP id y7-20020a2e7d07000000b002a7a59c8ad0mr4516528ljc.2.1686652189658; Tue, 13 Jun 2023 03:29:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Randy Galbraith Date: Tue, 13 Jun 2023 06:29:38 -0400 Message-ID: Subject: Re: Building gcc 4.9.2 on AIX 7.1 To: David Edelsohn Cc: gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="0000000000009fd36905fe0050d7" X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000009fd36905fe0050d7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 12, 2023 at 6:50=E2=80=AFPM David Edelsohn = wrote: > >>> Randy Galbraith wrote: > > > We have a need to match gcc version on Red Hat GNU/Linux 7. I am looking > > forward to newer GCC once Red Hat is upgraded. However, that will likely > > break our build. We elevate every warning in gcc to error status that > stops > > the building. Thus we need to plan for that. At the moment I just need = to > > support the AIX 7.2 upgrade. Ironically had our port to GNU/Linux been > > completed this would not be an issue. Cheers, -Randy > > Red Hat provides newer releases of GCC through the GCC Toolset > package, but that may be limited to RHEL 8. RHEL 7 is quite old. > > Does your AIX 7.2 system have all of the latest Technology Levels > (TLs) and Service Packs (SPs) installed? There have been many > assembler and linker fixes. > > If you still have GCC 4.9.2 from the AIX 7.1 system, you should be > able to continue to use it. You can rebuild the "fixed" headers > without rebuilding the entire compiler. I don't believe that anyone > has tried bootstrapping GCC with XLC in a very long time. > > GCC builds and works with AIX Assembler and AIX Linker. Until > recently, GNU Assembler and GNU Linker were out of date on AIX 7.x and > produced corrupted object files. The latest GNU Binutils functions. > It might be better to ensure that the AIX tools are used (AIX as, ld, > ar). > > GCC 4.9 is very old. I don't have any intuition about why GCC (without > any optimization) would generate unusual code for ferror(). Again, I > would ensure that you are not using the GNU Assembler for your > bootstrap. > > Thanks, David > I am trying to land a new GCC compiler to address the break related to fixed headers. If these could be rebuilt without having to land a new compiler I would be most interested in the steps to do that! Any advice on where to start with that? Cheers, -Randy --0000000000009fd36905fe0050d7--