From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id B76CA385B804 for ; Sat, 30 Jul 2022 20:20:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B76CA385B804 Received: by mail-pj1-x1032.google.com with SMTP id e8-20020a17090a280800b001f2fef7886eso8255154pjd.3 for ; Sat, 30 Jul 2022 13:20:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=ABpy02vweyySaP91Sf+0gqJyp0uoAxtb0hXuL49LKwk=; b=v2yndODuMbSUZCG/QP3awG0rtQr7EU25U/TPlr8zoRev8rIjmoe4uujWI8GJu52k4M rX2pu4G0pzseaB2kMuGDiYObAnKYbcEqqLWL6Pp79vr/YeKFucUrrKFAI7GUGCAp0/Pu p9WMEDie6fWFiMeOP1ew3x/Q7keFPFslmYjOMs+FJ+eZ62QW/44/E5G30v+YTFUoCTVK 3xhnWRwdEudCulPwUYOlocyOSU21h+KxPYXmbxsIZcn5vc2uCTvc/FASPQB0SqB8tgW2 8maQXOqh96tfLgsEM2JgevVbuQi+sybOO1xuiljBqDt/wZtDYLKvH8pS4M9BDa2XjNx3 gfOQ== X-Gm-Message-State: ACgBeo0Cp7GYqmKAcdHZSJKpYK09ujPFYZ9lQRp1zOMdWQCWC6QpCe+X ptb5GEzn2N1jBRxaD9GvKeaqjGIOmpo= X-Google-Smtp-Source: AA6agR6/+TYYAnLjdsnpnbcDIEzaofeSDGcWFcgfqwiDWnwcSXdu2jElWo51Hsq4E/cGlHbfbXcAIw== X-Received: by 2002:a17:90a:df14:b0:1f3:3a50:9dc1 with SMTP id gp20-20020a17090adf1400b001f33a509dc1mr9032294pjb.139.1659212439901; Sat, 30 Jul 2022 13:20:39 -0700 (PDT) Received: from [172.31.0.204] (c-73-98-188-51.hsd1.ut.comcast.net. [73.98.188.51]) by smtp.gmail.com with ESMTPSA id 32-20020a17090a09a300b001ece32cbec9sm8149220pjo.24.2022.07.30.13.20.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Jul 2022 13:20:39 -0700 (PDT) Message-ID: Date: Sat, 30 Jul 2022 14:20:38 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: hppa2.0w-hp-hpux11.11 bootstrap comparison failure gcc 11.3.0 and 10.4.0 Content-Language: en-US To: gcc-help@gcc.gnu.org References: <63233E3D-4AFA-4BA9-9596-350402ACE097@gmail.com> From: Jeff Law In-Reply-To: <63233E3D-4AFA-4BA9-9596-350402ACE097@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 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: Sat, 30 Jul 2022 20:20:42 -0000 On 7/19/2022 9:25 AM, Dennis Grevenstein via Gcc-help wrote: > Hi, > > 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: > > Comparing stages 2 and 3 > warning: hppa2.0w-hp-hpux11.11/libgcc/lib2funcs_s.o differs > warning: hppa2.0w-hp-hpux11.11/libgcc/lib2funcs.o differs > Bootstrap comparison failure! > gcc/analyzer/diagnostic-manager.o differs > gcc/analyzer/feasible-graph.o differs > gcc/analyzer/program-point.o differs > gcc/analyzer/engine.o differs > gcc/analyzer/sm-signal.o differs > gcc/analyzer/trimmed-graph.o differs > gcc/calls.o differs > gcc/cgraph.o differs > gcc/ipa-comdats.o differs > gcc/ipa-visibility.o differs > gcc/ipa-inline-transform.o differs > gcc/ipa-predicate.o differs > gcc/ipa-ref.o differs > make[2]: *** [Makefile:23872: compare] Error 1 > make[2]: Leaving directory '/usr/local/compile/gcc-11.3.0bin‘ > > > I am using gcc 9.5.0 to bootstrap: [ ... ] So the way we end up having to debug this stuff is to compare the resulting code in the files that differ and where/why they differ. Given that the PA/HP-UX isn't a common target anymore, it's entirely possible something has gone wonky.  I know John David Anglin does build it semi-regularly, maybe he has some insight.  My tester only builds 32bit PA Linux, so it's not particularly helpful. It might be something in the debug sections, in which case bootstrapping without -g should get you over the hump.  It might also be a problem where -g is impacting the resulting code generation (that's not supposed to happen, but does), and again bootstrapping without -g should get you over the hump. It may also be the case that there's a codegen issue in gcc-9.5.0 that affects building gcc-10 and gcc-11.  I think it's pretty unlikely to be a binutils problem. So the first step is to look at those files and see where they differ.  Do they differ in the contents of the text section or is it something else? jeff