From patchwork Wed Jun 25 15:21:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mark at klomp dot org X-Patchwork-Id: 115075 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5604E385C6FE for ; Wed, 25 Jun 2025 15:25:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5604E385C6FE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1750865132; bh=1QcritaRAp+QPkk3Tb/mwEojQo+Rbpti1MxbjPurs5o=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=uEH9ieenelpOiWoT+25/yv3JVpm9VERPXvMQ/Cbw3leAz3qlKIfrH4yx+YIMnRIO1 bfo0X2Oo2oEat0bNheT0jHazZsBS3jam2cjvYUozl5x26I8N25NQ4OKBlCw7+9z4JG 9V34HN73k37pyIRxHN8L7nMOTCf0IgYfpXrmV6NA= X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: by sourceware.org (Postfix, from userid 48) id 08EA03854AB5; Wed, 25 Jun 2025 15:21:01 +0000 (GMT) From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug general/33103] elfutils fails in-tree build due to ./stack binary #included via Date: Wed, 25 Jun 2025 15:21:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: elfutils-devel-bounces~patchwork=sourceware.org@sourceware.org https://sourceware.org/bugzilla/show_bug.cgi?id=33103 --- Comment #3 from Mark Wielaard --- I don't understand why this is only a problem with srcdir == builddir. But maybe we can extend the original solution to use -iquote for srcdir. And only have -I for lib and the top builddir (for )? Does the following work for you? You are on the CC list for the bug. diff --git a/config/eu.am b/config/eu.am index 5157a34ee552..1361044804f5 100644 --- a/config/eu.am +++ b/config/eu.am @@ -31,7 +31,7 @@ ## DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"' -AM_CPPFLAGS = -iquote . -I$(srcdir) -I$(top_srcdir)/lib -I.. +AM_CPPFLAGS = -iquote. -iquote$(srcdir) -I$(top_srcdir)/lib -I$(abs_top_builddir) # Drop the 'u' flag that automake adds by default. It is incompatible # with deterministic archives. diff --git a/libdw/libdwP.h b/libdw/libdwP.h index 25d53d31c7c8..b77db1423fe0 100644 --- a/libdw/libdwP.h +++ b/libdw/libdwP.h @@ -32,8 +32,8 @@ #include #include -#include -#include +#include "libdw.h" +#include "dwarf.h" #include "eu-search.h" -- You are receiving this mail because: