From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iOdGJhBsr2cJSTEAWB0awg (envelope-from ) for ; Fri, 14 Feb 2025 11:15:12 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=JHKNcjX6; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 936C81E105; Fri, 14 Feb 2025 11:15:12 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 403031E05C for ; Fri, 14 Feb 2025 11:15:12 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D9FE13858417 for ; Fri, 14 Feb 2025 16:15:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9FE13858417 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=JHKNcjX6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id A36493858430 for ; Fri, 14 Feb 2025 16:09:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A36493858430 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A36493858430 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739549341; cv=none; b=e20VI0HTyOwRkMvMi4lrFkOTVffLK82myel95GjNQ19q5Nf6/845ibzwFaDKEP7I+ZG/x/LH/x/7un/kLRUg6Gz9loo9ypoqL2N2T33DvnqG8LTwMWwBNxs6TUNVn3viHbd6KVq8qoKjBzsoJTeiq9ZDrBT456MODMsl5Te4abs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1739549341; c=relaxed/simple; bh=dMrVxJbWr6CSxvMJiB0GKWTGK+sBXd7VKrlr7YfDm7I=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=W03hXOz93Hw+XJRjGnKzVfF8gD4DmsSr1oX8Vz/yulPOpA8//vTWOkX/LikhNzULhn8bq5hbE7CUJmurMf5CdWtArByYpFwr+J6BO4/RERnz3dZV0ZckpDMvyfPx4zS8LLWSvUbnw48VZouYiwJfBUkoXy/pFHe68/FTXfgWcCA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A36493858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1739549341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PEyublfbsA3YBkIb+8187+RAbkBOj3JOtq1KmXmGiOw=; b=JHKNcjX666OwAWIt6H10FawO0TmgQg2CQwvTdmgZd40iVF4e2FpwI0DYv2Enfdl8rFFO8i C3E3mzquY2et4wFUiKsshG2IxT6vJ09c5Qh+KdxXvQH5ajmg96UsdZAXF9qCpc/s/jy8oa j5AMsD1fiAOaSVeKXjMG1FiQVS0ZbuQ= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-186-_8sJjRbJMwip84jjHPwf1Q-1; Fri, 14 Feb 2025 11:09:00 -0500 X-MC-Unique: _8sJjRbJMwip84jjHPwf1Q-1 X-Mimecast-MFC-AGG-ID: _8sJjRbJMwip84jjHPwf1Q_1739549339 Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5d89a53fc46so3183180a12.2 for ; Fri, 14 Feb 2025 08:08:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739549339; x=1740154139; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PEyublfbsA3YBkIb+8187+RAbkBOj3JOtq1KmXmGiOw=; b=YPSipM83fMoaJ3iGjHYqtLwYYUI2dlKD+foY8UNVn0eNte9dp6HAA7x4znewv9AcM1 4yDNWw3ioQu8QmDgyOOoR6r6YeaFDe4xrZ8SOxAG2ZCMwJWnc8tXtg04Q2wlbIcbvpMl hRxB3Jm4YP1giTywfohxpRnZARbN/4dmnYKlsx2LUTomoYU9wbe4ojRdP55VQGV8jw21 hD5tEHlKosx56YUaB1XCc5zSsNU60P4ZW2xJq2V4d3QnE6djZEYYWloAoUvEBSXXPNIN tZ/ivOGBKiohBvAXgIH8by812Rb9OHD0l0pLKj/w3CIgEbjOt8pvfD1Jy6CXIoHa+epi 1xtg== X-Forwarded-Encrypted: i=1; AJvYcCVYC3h56sPeA5+ZXmO3HRkhsRDD8RiTZjj5rmlmu9TaJdNAChHngH24P5C4CNoBWkvXYmrjKYY11A9COA==@sourceware.org X-Gm-Message-State: AOJu0YzIgCtLMDeMh2ZS9+3mmFoLDsiOL5TBf2TpCj0dWkeWe+oQCMF9 DI/QGSt7XCXWviLMjYzfMXvq7VjNIS0jVZHCrid3hTEFK67WL4G+TWFwtaduP0mtyYxJdhU4lU8 dKuqBgDiosC35Fv55Amjqn9PeycU5TiSOzOx3Z+uuSsGKdO60THKWRBLHiQ4= X-Gm-Gg: ASbGnctni+Xpc88r3/EArgv545gsB8feLJdyBt2uPIhiv/tUJ3LbJ6g+ALxVPo9kLCY xsBinnW+uHFFfRJc+rgXxDapiVYTdUPsEE735+REzhVhsEXuQEg/Edbo2twNMRQ/lhI4p4LqNM/ 2NzGmr63KYEoybBYV30keTqUvxq0Bc4+3RYeIpoTdHanrBvlCyMVxqLWM/LfjCXUY7CA691+jms oz0jRlAbaAS3pILWeM/jvbQ+n27ysO9y75U8rJe60vvlK1IT6Msb3Iqz7zWbY2UGvK517YwNx70 ZFWZkLD9045E1g== X-Received: by 2002:a05:6402:280a:b0:5de:6486:3f52 with SMTP id 4fb4d7f45d1cf-5e036070696mr22961a12.9.1739549338788; Fri, 14 Feb 2025 08:08:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtfAO9QnTO5YbLxKa6Mft5aVaKtPkuoCgtK4zvV2IE784SElwEozcWG9o7NUGven2sKb21OQ== X-Received: by 2002:a05:6402:280a:b0:5de:6486:3f52 with SMTP id 4fb4d7f45d1cf-5e036070696mr22918a12.9.1739549338220; Fri, 14 Feb 2025 08:08:58 -0800 (PST) Received: from tpp.orcam.me.uk (tpp.orcam.me.uk. [81.187.245.177]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dece288e38sm3090539a12.79.2025.02.14.08.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2025 08:08:57 -0800 (PST) Date: Fri, 14 Feb 2025 16:08:56 +0000 (GMT) From: "Maciej W. Rozycki" To: Alan Modra cc: binutils@sourceware.org, gdb-patches@sourceware.org, Guinevere Larsen , Andrew Burgess Subject: Re: [PATCH] Fix 64-bit BFD detection causing build failures In-Reply-To: Message-ID: <06eba5a3-9c2c-016f-6d89-b8286dd4fd58@redhat.com> References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 8TDaducNkfYyI_A2dnDDF01pL1nXlZrB4IhajuzGBuc_1739549339 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On Thu, 13 Feb 2025, Alan Modra wrote: > > We have a discrepancy with 64-bit BFD handling across our component > > subdirectories leading to link failures such as: > > Thanks for doing this. The patch is OK for the binutils side. Thank you for your review. I had to post v2 however as I remembered that we also support explicit secondary targets and if we reconfigure from `--host=i386-linux-gnu' to `--host=i386-linux-gnu --enable-targets=riscv64-linux-gnu,all', then the build will fail owing to the stale value of the `bfd_cv_64_bit' cache variable. And having thought about it a bit harder the same happens, perhaps more importantly, when switching from `--host=i386-linux-gnu --enable-targets=all' to `--host=i386-linux-gnu --enable-targets=all --enable-64-bit-bfd'. Therefore I have removed the variable and the check for BFD64 is now always run. Maciej