public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* tdep/2443: FRV/MEP code fails to build due to -I path mess
@ 2008-04-07  0:18 vapier
  0 siblings, 0 replies; only message in thread
From: vapier @ 2008-04-07  0:18 UTC (permalink / raw)
  To: gdb-gnats


>Number:         2443
>Category:       tdep
>Synopsis:       FRV/MEP code fails to build due to -I path mess
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 07 00:18:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     vapier@gentoo.org
>Release:        gdb-6.8
>Organization:
>Environment:

>Description:
the bundled readline cflags causes bad include paths in gdb from going ignored

if we look at gdb/Makefile when configured with --without-system-readline:
READLINE_DIR = ../readline
READLINE_SRC = $(srcdir)/$(READLINE_DIR)
READLINE_CFLAGS = -I$(READLINE_SRC)/..

this means the -I path now points to the top level:
-I./../readline/..

and if we configure with --without-system-readline, the READLINE_CFLAGS is no longer set which means we have no implicit -I path to the top level

the trouble comes in with frv-tdep.c and mep-tdep.c:
gdb/frv-tdep.c:#include "opcodes/frv-desc.h"
gdb/mep-tdep.c:#include "opcodes/mep-desc.h"
gdb/mep-tdep.c:#include "opcodes/mep-opc.h"

these require an explicit -I path to the toplevel in gdb/Makefile, and since there is no explicit path, this only works when there are implicit readline paths
>How-To-Repeat:
tar xf gdb-6.8.tar.bz2
cd gdb-6.8
./configure --enable-targets=all --with-system-readline
make all-gdb
<frv and mep code fail to build in gdb/>
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-07  0:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-07  0:18 tdep/2443: FRV/MEP code fails to build due to -I path mess vapier

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).