From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by sourceware.org (Postfix) with ESMTPS id 863F03835839 for ; Fri, 22 Jul 2022 03:17:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 863F03835839 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mattwilson.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mattwilson.org Received: by mail-pj1-x1033.google.com with SMTP id d7-20020a17090a564700b001f209736b89so7092991pji.0 for ; Thu, 21 Jul 2022 20:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mattwilson.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+19DQj5czjsYmYAvlTOKM0u6MW3JlfSRIJtmQWTBLmc=; b=hQdkcsIREpeuXAmy4Aj+Dt+J8pZlh11vIOh0Xr/oF9aJlIR/OcphqKCVZfrlbGVXhw 6i/rO0CsC4/pXZFT5xAnZW9hGzdExwD878jxzvS1pgpWqH8KClO2E4A2MJ8YSfgHCKp2 XcvRlzMU32qfMM74rCK7BLi0AeDI7OjyKv4MI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+19DQj5czjsYmYAvlTOKM0u6MW3JlfSRIJtmQWTBLmc=; b=q2djeNczxlJad8vaag7lDvaK5s6sp3/jartTk8YNo1nvY6WIcHtu12ZF37o47Tto77 jT61l9geJgr/NWjYN+ykss5LDJlCWAEI0ekOo3nk6IIKfb4BBsjs1Y92XmzGPulnVxqZ eO6RbT3vcR59PB4ZIeBtBDYKsvLmRUJ9rzEv6qYV+7iO+NhgTUrvxnBFhL8YNUdY9h3I /tu0ELAHcHG5NDxxirf8VO5esjZmRuk0Vvt+tXx9VwjLUKBo04JBn838w0g+4OwuzNJN vWRNh4eWGsKKA9/ZdbuC9jjNs8M4f99Ncv4Rs9B5djiQ27dsz5FYGQSkL32MHngHjTKz TV3w== X-Gm-Message-State: AJIora+oOa1KR0zzML7t8d7egHlMh4HzifkPYRHKc7qe3i7XNYuDb8Uw toWlTI1t9E/6PAXGch/Mp31oDQ== X-Google-Smtp-Source: AGRyM1vmdMILTQcm9tjONeF6Tp5EUWg5J8RXKXiu06R2NOiNvALpnNMtBF3Y6RbBu9ysVUQMbc79xg== X-Received: by 2002:a17:902:ef48:b0:16a:1d4b:22ca with SMTP id e8-20020a170902ef4800b0016a1d4b22camr1384406plx.6.1658459850295; Thu, 21 Jul 2022 20:17:30 -0700 (PDT) Received: from mattwilson.org ([50.45.185.53]) by smtp.gmail.com with ESMTPSA id 203-20020a6214d4000000b0052ba5fe74c8sm2545147pfu.54.2022.07.21.20.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 20:17:29 -0700 (PDT) Date: Thu, 21 Jul 2022 20:17:27 -0700 From: "Matthew R. Wilson" To: Dennis Grevenstein Cc: gcc-help@gcc.gnu.org Subject: Re: hppa2.0w-hp-hpux11.11 bootstrap comparison failure gcc 11.3.0 and 10.4.0 Message-ID: <20220722031727.5qfvywtvi52m7sf4@mattwilson.org> References: <63233E3D-4AFA-4BA9-9596-350402ACE097@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <63233E3D-4AFA-4BA9-9596-350402ACE097@gmail.com> X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DKIM_INVALID, DKIM_SIGNED, KAM_DMARC_STATUS, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Fri, 22 Jul 2022 03:17:34 -0000 Hi Dennis, On 07.19.2022 17:25, Dennis Grevenstein via Gcc-help wrote: >I have tried to build either gcc 10.4.0 or 11.3.0 on hppa2.0w-hp-hpux11.11. >Both produce the same error and fail at the comparison step: > >I am using gcc 9.5.0 to bootstrap: > >GNU binutils are 2.21.1. I have also tried updating just GNU as to the >latest 2.38, but that makes no difference. Seeing your message come through the list piqued my interest, so I pulled out the c8000 workstation again and installed HP-UX 11v1 on it. Not directly helpful to your present problem, perhaps, but as a data point, I was able to successfully get all the way to a working gcc-12.1.0 starting with nothing but the HP ANSI C compiler. Starting from an 11.11 HP-UX and HP C installation, with Support Plus 2009-12 patches, I was able to: - With CC="cc -Ae +DD64" to get a 64-bit toolchain - build GNU make-3.82 - build binutils-2.14 - build gcc-3.4.6 Using that gcc-3.4.6, I could build: - gawk-3.1.8 - binutils-2.25.1 (the last that builds before we have stdint.h available) Then, using the HP ANSI C compiler (*not* the gcc-3.4.6 we built, it will generate code that can't be assembled due to incorrect handling of very large switch statements): - gcc-4.7.4 (in-tree gmp/mpfr/mpc build failed during stage 2, so I built my own first) Using that gcc-4.7.4, I was able to build gcc-10.4.0 successfully (in-tree gmp/mpfr/mpc worked this time). With gcc-10.4.0, I could build: - texinfo-6.8 (because the latest binutils build seems to require texinfo even though it claims it doesn't if you don't need to regenerate the documentation) - gawk-5.1.1 - make-4.3 - binutils-2.38 - gcc-12.1.0 (but see https://gcc.gnu.org/pipermail/gcc-help/2022-May/141628.html; I needed to comment out lines 756-757 in c++tools/server.cc just like I did on HP-UX 11.23) All intermediate GCCs were with --enable-languages=c,c++; the final gcc-12.1.0 was with --enable-languages=c,c++,fortran. No exotic configure flags for any of them, just the usual --with-gnu-as, --with-as, --without-gnu-ld, --with-ld, --disable-nls, --enable-threads=posix. So... perhaps something suspect gcc 9.5.0? If you have the HP ANSI C compiler available, perhaps you can take a path similar to mine and build up from scratch. If you don't have the HP compiler, the GCC Platforms notes indicate it may be possible to start by using the built-in K&R C compiler in HP-UX to build gcc 3.3 and start working your way up from there. -Matthew