From: Mike Frysinger <vapier@gentoo.org>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org, toolchain-devel@blackfin.uclinux.org
Subject: Re: [PATCH] sim: generate build dependencies on the fly
Date: Tue, 12 Jul 2011 20:59:00 -0000 [thread overview]
Message-ID: <CAJaTeTqM-Kr3Nrr4JKyfpys7=+aWk_YJCA+=AensJyBTUvg4dQ@mail.gmail.com> (raw)
In-Reply-To: <m3hb6rgu18.fsf@fleche.redhat.com>
On Tue, Jul 12, 2011 at 15:48, Tom Tromey wrote:
>>>>>> "Mike" == Mike Frysinger writes:
> Mike> Generated header files still need to be manually tracked.
>
> Why is that?
it didnt seem to work :). if the dependency generation step is done
inline with the compile step, how can we figure out the dependency
info of a header file that is generated ? does gdb handle this and i
just missed it in its Makefile ?
a good example is the mn10300 subdir (which coincidentally, i'm pretty
sure is already missing dependency info and often fails to build in
parallel today). the "sim-main.h" header is included by pretty much
all sim files and each arch must create it. mn10300's sim-main.h
relies on the generated headers "itable.h" and "idecode.h" which come
from running ../igen/igen. so they add those headers to
SIM_EXTRA_DEPS as most objects will depend on the files in that
existing.
> Mike> -VPATH = @srcdir@
> Mike> +VPATH = @srcdir@:$(srccom)
>
> The Autoconf manual lists various problems with VPATH.
>
> You can't use variable references in VPATH.
i read some info on that, but it sounded like the known issues were
worked around by configure. such as empty vpath and "." entries. but
i guess i didnt delve into the autoconf manual to double check.
> Also VPATH won't work properly with built sources. I'm not sure if your
> patch relies on that or not.
the common subdir does generate one "sim-inline.c" file for a few
targets. seemed to generate/build on my system, but i'm using
up-to-date GNU make, so that probably doesnt count.
> Finally I thought there was some problem with multiple entries in VPATH,
> but I cannot find that in the docs. Perhaps it is one of those ancient
> incorrect memories. It would bear testing with a non-GNU make.
sounds like all good reasons to use automake :). otherwise all the
files in common/ need manual deps (like gdb does with files in
subdirs), and that semi-defeats the purpose of this in the first
place.
> Mike> +depcomp = $(SHELL) $(srcdir)/../depcomp
>
> This seems like the wrong directory to me.
> I would have expected $(srcdir)/../../depcomp.
yeah ... i didnt notice as my stuff all went through gcc for dep info.
probably better to use $(srcroot)/depcomp.
-mike
next prev parent reply other threads:[~2011-07-12 20:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1310436152-8693-1-git-send-email-vapier__46811.2245122485$1310436164$gmane$org@gentoo.org>
2011-07-12 19:49 ` Tom Tromey
2011-07-12 20:59 ` Mike Frysinger [this message]
[not found] ` <CAJaTeTqM-Kr3Nrr4JKyfpys7=+aWk_YJCA+=AensJyBTUvg4dQ__24418.5384632603$1310503395$gmane$org@mail.gmail.com>
2011-07-12 21:15 ` Tom Tromey
2011-07-13 2:04 ` Mike Frysinger
[not found] ` <CAJaTeTpoc=UUiePTTBNiRA=dREKdYABMfXQ+HdCsDWaa4wuG0w__27433.0390304842$1310506984$gmane$org@mail.gmail.com>
2011-07-13 13:59 ` Tom Tromey
2011-07-13 20:17 ` Mike Frysinger
2011-07-12 5:18 Mike Frysinger
2011-12-03 18:24 ` Mike Frysinger
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='CAJaTeTqM-Kr3Nrr4JKyfpys7=+aWk_YJCA+=AensJyBTUvg4dQ@mail.gmail.com' \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
--cc=toolchain-devel@blackfin.uclinux.org \
--cc=tromey@redhat.com \
/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