From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id p5yOEBJhkWBeZAAAWB0awg (envelope-from ) for ; Tue, 04 May 2021 10:58:26 -0400 Received: by simark.ca (Postfix, from userid 112) id 292911F149; Tue, 4 May 2021 10:58:26 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=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 7BEF41F11C for ; Tue, 4 May 2021 10:58:24 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D952A398EC1F; Tue, 4 May 2021 14:58:23 +0000 (GMT) Received: from rock.gnat.com (rock.gnat.com [205.232.38.15]) by sourceware.org (Postfix) with ESMTP id D710F3954C04 for ; Tue, 4 May 2021 14:58:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D710F3954C04 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey@adacore.com Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id ABDC556154; Tue, 4 May 2021 10:58:20 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eL-NJqFTlzHu; Tue, 4 May 2021 10:58:20 -0400 (EDT) Received: from murgatroyd.Home (97-122-70-176.hlrn.qwest.net [97.122.70.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 67067117786; Tue, 4 May 2021 10:58:20 -0400 (EDT) From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 2/3] Fix igen build Date: Tue, 4 May 2021 08:58:17 -0600 Message-Id: <20210504145818.4088770-3-tromey@adacore.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210504145818.4088770-1-tromey@adacore.com> References: <20210504145818.4088770-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Tom Tromey Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" The igen build fails for me like: gcc -g -O2 -c ../../binutils-gdb/sim/igen/igen.c -o igen/igen.o In file included from ../../binutils-gdb/sim/igen/igen.c:26: ../../binutils-gdb/sim/igen/lf.h:22:10: fatal error: ansidecl.h: No such file or directory This patch fixes the problem by arranging for igen to find the libiberty includes. This seems slightly hacky to me, because libiberty is not a "build" library, so it can't be linked against. However, since igen currently only includes the header, it seems relatively safe. sim/ChangeLog 2021-05-04 Tom Tromey * Makefile.in: Rebuild. * Makefile.am (AM_CPPFLAGS): New variable. --- sim/ChangeLog | 5 +++++ sim/Makefile.am | 2 ++ sim/Makefile.in | 1 + 3 files changed, 8 insertions(+) diff --git a/sim/Makefile.am b/sim/Makefile.am index a68a964d87a..6696adc304a 100644 --- a/sim/Makefile.am +++ b/sim/Makefile.am @@ -35,6 +35,8 @@ CLEANFILES = DISTCLEANFILES = MOSTLYCLEANFILES = core +AM_CPPFLAGS = -I$(srcroot)/include + COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD) LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ diff --git a/sim/Makefile.in b/sim/Makefile.in index 890adab5072..5c997b0c118 100644 --- a/sim/Makefile.in +++ b/sim/Makefile.in @@ -682,6 +682,7 @@ CLEANFILES = testsuite/common/bits-gen testsuite/common/bits32m0.c \ DISTCLEANFILES = MOSTLYCLEANFILES = core $(am__append_3) site-srcdir.exp testrun.log \ testrun.sum +AM_CPPFLAGS = -I$(srcroot)/include COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD) LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ @SIM_ENABLE_IGEN_TRUE@igen_libigen_a_SOURCES = \ -- 2.26.3