From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 5YZ9GXsDI2DQbAAAWB0awg (envelope-from ) for ; Tue, 09 Feb 2021 16:49:47 -0500 Received: by simark.ca (Postfix, from userid 112) id 552411EF4F; Tue, 9 Feb 2021 16:49:47 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 8D4E31E590 for ; Tue, 9 Feb 2021 16:49:46 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E6595389680F; Tue, 9 Feb 2021 21:49:45 +0000 (GMT) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 84967386F03E for ; Tue, 9 Feb 2021 21:49:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 84967386F03E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wr1-x432.google.com with SMTP id z6so23784201wrq.10 for ; Tue, 09 Feb 2021 13:49:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=h/7UHaF3ggMF6YaVBaDOeJXWnVrPH3ncFzK8y8vXlF0=; b=Kl20QsgQcRAusm8UqlIgiUBjOrhumzQ6DHH9av5bGDthHADHK/VKZvG3hFtN5QB2wu iGGOXRUrBKbK/XCNedFgJaAqYUVDt/RWAQuH2l5WAmaP91Kgu0dojnt9DUtgRQ1oFLh8 njMeczsFN2oC06FYT8skXNh+l3FJbtUgUsuj105+ntRnGVPoEbnI88sx3qf70d1KReQ6 BabwLig0/CuQ6GeVeu0ixsJokje6VqXid0mlFvFJRlZGR/5lUqNneRjm0NVx1LccBi7n PjCLWH3/PhO6tIIQJGJEu/BY8ALGGamfjOAnnZnzzHKQ29ILTiX5XDcc88UFwPkqL1MB xnHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=h/7UHaF3ggMF6YaVBaDOeJXWnVrPH3ncFzK8y8vXlF0=; b=t1SV0ELV9nBmZkFfWkUCwK8jAVI/IX1ANv9tpaMyugh5Z/mfhVXfxF0JFnKoV6A87l jArkOUCuSg9szWD+1dOHfXXYsj63WHdPXE8zCDSVgwP5y0nxPYSpduGhfTCjBOhEBMA1 /yAN9R1955Fu7TAiwjvaYeglQBnhBiBJCkxGkNhcLOYUI4vtStFDj7qoRDCMnzXt1gOh EhqIKae1VerEXlNMjAnFM+Z2qRwRfBKTBSde5FjQBjy9m60sIV6vL8dEbvYV9wlgLsuW 1oWiHDYzmmolHPMLxwk3VjzNBFR40HlF7PWv54HF0a+gljS1SBLDImEhmZ8/YCmglJ77 WPzA== X-Gm-Message-State: AOAM530oj3puUpRUpzWFYZD8gCEmCIfXneP6tuK3tuQfGEVH3dRC/36R 26TLkIPXptf8AiGMzASD9QklLg== X-Google-Smtp-Source: ABdhPJzGupc9uhuF5JbKEKCfMO+Ah7zMVOlVSIL9c/YBwaDuTohtlzmS8VrJV4XwKMAWciKYxbgqdA== X-Received: by 2002:a5d:4203:: with SMTP id n3mr142842wrq.49.1612907382573; Tue, 09 Feb 2021 13:49:42 -0800 (PST) Received: from localhost (host109-151-46-64.range109-151.btcentralplus.com. [109.151.46.64]) by smtp.gmail.com with ESMTPSA id q6sm36444885wrw.43.2021.02.09.13.49.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 13:49:42 -0800 (PST) Date: Tue, 9 Feb 2021 21:49:41 +0000 From: Andrew Burgess To: Nick Alcock Subject: Re: new gdb build failures on MacOS X (... fallout from libintl fixups, see users/nalcock/included-gettext) Message-ID: <20210209214941.GJ265215@embecosm.com> References: <874kird819.fsf@esperi.org.uk> <87k0rna7w4.fsf_-_@esperi.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k0rna7w4.fsf_-_@esperi.org.uk> X-Operating-System: Linux/5.8.13-100.fc31.x86_64 (x86_64) X-Uptime: 21:46:51 up 63 days, 2:31, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Casner , gdb-patches Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" * Nick Alcock [2021-02-04 20:35:23 +0000]: > [gcc-patches Cc:ed for the elfcore failure, not so much for the iconv > stuff yet, since I'm revamping a lot of that stuff in bfd/opcodes/etc > and that should probably get looked at before the gdb side, I guess. > See the git branch referenced below.] > > On 4 Feb 2021, Stephen Casner told this: > > > On Thu, 4 Feb 2021, Nick Alcock wrote: > > > >> I've updated the users/nalcock/included-gettext branch on > >> binutils-gdb.git with a new approach which is rather less gross than the > >> horrible stuff I was doing before. > >> > >> It still seems to work for me: could you check to see if it still works > >> for you? > > > > This version introduces two new undefined symbols in the gdb link: > > Oh dammit. > > > Undefined symbols for architecture x86_64: > > "_elfcore_write_prstatus", referenced from: > > gcore_collect_regset_section_cb(char const*, int, int, regset const*, char const*, void*) in gcore.o > > "_elfcore_write_register_note", referenced from: > > gcore_collect_regset_section_cb(char const*, int, int, regset const*, char const*, void*) in gcore.o > > I think this may not be my fault but rather is unrelated fallout from > commit 82a1fd3a4935fe665cf08bc6820942c4a091184c, which just landed. > As of this commit, elfcore_write_register_note et al are unconditionally > cited from gdb/gcore.c, but obviously these are only going to exist for > ELF platforms, which MacOS X is not. Sorry for causing this breakage. I've now reverted commit 82a1fd3a4935 while I think of a better way to make this change. One thing that would be helpful is, do you know if there's a non-elf targeting triple that I could configure GDB for that would allow me to make sure I don't break this again? Thanks, Andrew