public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Dimitar Dimitrov <dimitar@dinux.eu>
To: gdb-patches@sourceware.org
Subject: [PATCH/committed] sim: Add bfd include path for common testsuite tools
Date: Fri,  7 May 2021 21:21:25 +0300	[thread overview]
Message-ID: <20210507182125.28292-1-dimitar@dinux.eu> (raw)
In-Reply-To: <22824111.e6QXDZrZfI@tpdeb>

On a host without installed libbfd, this patch fixes the following
"make check-sim" errors for both pru cross target, and native x86_64:

In file included from ../../../binutils/sim/common/sim-basics.h:131,
                 from testsuite/common/bits32m0.c:13:../../../binutils/sim/../include/gdb/callback.h:55:10: fatal error: bfd.h: No such file or directory
   55 | #include "bfd.h"
      |          ^~~~~~~

sim/ChangeLog:

	* Makefile.in: Rebuild.

sim/testsuite/ChangeLog:

        * local.mk (%C%_CPPFLAGS): Add ../bfd include path.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
---
 sim/testsuite/common/local.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sim/testsuite/common/local.mk b/sim/testsuite/common/local.mk
index 38ffb0b0b7d..4db7981d160 100644
--- a/sim/testsuite/common/local.mk
+++ b/sim/testsuite/common/local.mk
@@ -29,7 +29,8 @@ check_PROGRAMS += $(TESTS)
 
 %C%_CPPFLAGS = \
 	-I$(srcdir)/common \
-	-I$(srcroot)/include
+	-I$(srcroot)/include \
+	-I../bfd
 
 # These tests are build-time only tools.  Override the default rules for them.
 %D%/%.o: %D%/%.c
-- 
2.20.1


      parent reply	other threads:[~2021-05-07 18:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-04 14:35 [PATCH 1/3] sim: testsuite: calculate $arch from $subdir Mike Frysinger
2021-04-04 14:35 ` [PATCH 2/3] sim: testsuite: skip tests when the port is disabled Mike Frysinger
2021-04-04 14:35 ` [PATCH 3/3] sim: testsuite: support exit 77 for unsupported tests Mike Frysinger
2021-04-05 16:31 ` [PATCH 1/3] sim: testsuite: calculate $arch from $subdir Dimitar Dimitrov
2021-04-05 17:17   ` Mike Frysinger
2021-04-05 18:19     ` Dimitar Dimitrov
2021-05-06 20:51       ` Dimitar Dimitrov
2021-05-06 22:27         ` Mike Frysinger
2021-05-07 18:21         ` Dimitar Dimitrov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210507182125.28292-1-dimitar@dinux.eu \
    --to=dimitar@dinux.eu \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).