From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by sourceware.org (Postfix) with ESMTPS id 92DDC3840C17 for ; Tue, 2 Jun 2020 00:30:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 92DDC3840C17 Received: by mail-pj1-x102b.google.com with SMTP id d6so586483pjs.3 for ; Mon, 01 Jun 2020 17:30:35 -0700 (PDT) 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:content-transfer-encoding :in-reply-to:user-agent; bh=sWrjbm0G6Gq5KS5Nu6Ns3OfBH1cDRMFEHThjz85x0sc=; b=n8nlNqmP74k2vtoh2X2+HMwpFtvi9tRWankC6yBZ8Lc6mKD15agyo+02FtAOFpCFiq QlWxrIW74a4DNa31tUNCPjIh8H4Uo9LwMpEMYx/pc6hWW/5TVKLd6gB5KHWRqhtNg1Rx Ze1Fyyg5JrWC4QRvvqSsvtFqa616QDr7OxGmNd5im+McAaXYuZSpULYOig2qDpLFxxOr XsHvE5eyhsZSJQ+sTghCOiYDCyyJDzklloHzPUTiJzXue0OJMUs5WNFVqnSmutJ5KvLU 2FdL/lqQYjKlSTsevVtnNyAfw0R02Y8CWeL9E6niZTxzaRwKxqQYBZ3/1mRyrLRqeiao oGzw== X-Gm-Message-State: AOAM530J0dWqskk0ULw7Hd1sTbuxzvMi5HsiD/0L2/dQzpCleGDBz+hk BZpvnh1aTy5F1zxu5SFUpFP+m6USYk4= X-Google-Smtp-Source: ABdhPJyA0JkKKUMPEovdG2/xrWyk4ioDaKBqGr/N0TN4BjgFAfcxtreXR2C4Haqy8W9WhdznvmVu5g== X-Received: by 2002:a17:90b:e0c:: with SMTP id ge12mr2357557pjb.3.1591057834713; Mon, 01 Jun 2020 17:30:34 -0700 (PDT) Received: from bubble.grove.modra.org ([2406:3400:51d:8cc0:64ea:c225:83fa:3e9b]) by smtp.gmail.com with ESMTPSA id 85sm450031pfz.145.2020.06.01.17.30.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 17:30:33 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id EA17B889D2; Tue, 2 Jun 2020 10:00:29 +0930 (ACST) Date: Tue, 2 Jun 2020 10:00:29 +0930 From: Alan Modra To: Martin Sebor Cc: binutils@sourceware.org Subject: Re: error: unknown type =?utf-8?Q?name_?= =?utf-8?B?4oCYY3RmX2FyY2hpdmVfdA==?= Message-ID: <20200602003029.GB5204@bubble.grove.modra.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 00:30:36 -0000 On Mon, Jun 01, 2020 at 05:36:54PM -0600, Martin Sebor via Binutils wrote: > I've been getting the error below building binutils the last few > weeks: > > In file included from /src/binutils-gdb/ld/ldlex.l:31, > from /src/binutils-gdb/ld/ldlex-wrapper.c:26: > /src/binutils-gdb/ld/ldlang.h:304:3: error: unknown type name > ‘ctf_archive_t’ > 304 | ctf_archive_t *the_ctf; > | ^~~~~~~~~~~~~ > > A discussion of it I found in bug 25064 suggests it's caused by > an outdated copy of the generated ld/ldlex.c file in the source > tree. The build succeeds after I remove the file but I'd like > to know what other files I should remove (or more broadly, what > else I should do when re-building from a local copy) to make > sure I build what everyone else does. (I assume removing the whole > source tree and pulling a fresh copy is not the right way to do it.) I'm curious. What output from "make" do you see if you touch ldlex.l and then run make? ldlex.c ought to be regenerated via a .l.c rule, even without --enable-maintainer-mode during configure. I get the following. make[4]: Entering directory '/home/alan/build/gas/all/ld' /bin/bash /home/alan/src/binutils-gdb/ld/../ylwrap /home/alan/src/binutils-gdb/ld/ldlex.l lex.yy.c /home/alan/src/binutils-gdb/ld/ldlex.c -- flex -- Alan Modra Australia Development Lab, IBM