Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: jtc@redback.com
Cc: gdb-patches@sourceware.cygnus.com
Subject: Re: [RFA]: simulator build failures with parallel make
Date: Fri, 06 Apr 2001 11:08:00 -0000	[thread overview]
Message-ID: <3ACE0606.1A63BF3D@cygnus.com> (raw)
In-Reply-To: <5m8zlrot5g.fsf@jtc.redback.com>

"J.T. Conklin" wrote:
> 
> With gmake -j, the d10v, mn10200, mn10300 and v850 simulators can
> fail to build because the generated header simops.h is included by
> simops.c, but is not listed as a dependency for that file.
> 
> There are similar failures with the ppc simulator.  I'll submit a
> patch for it as soon as I get a few moments to address it.
> 
>         --jtc
> 
> (I have this change log entry in each of the four simulator directories)
> 
> 2001-03-27  J.T. Conklin  <jtc@redback.com>
> 
>         * Makefile.in (simops.o): Add simops.h to dependency list.

With that dependency added without -j does the generator get run twice?
I've this memory of a strange querk with make dependencies and files
being created as a sideeffect.

Any way, assuming you've played with it with using both make and gmake
and it appears ok then yes.

	Andrew

> Index: d10v/Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/sim/d10v/Makefile.in,v
> retrieving revision 1.2
> diff -c -r1.2 Makefile.in
> *** Makefile.in 2000/02/22 08:52:21     1.2
> --- Makefile.in 2001/03/27 20:07:40
> ***************
> *** 48,53 ****
>         rm -f table.c simops.h gencode
> 
>   interp.o: interp.c table.c $(INCLUDE)
> ! simops.o: simops.c $(INCLUDE)
>   endian.o: endian.c $(INCLUDE)
>   table.o: table.c
> --- 48,53 ----
>         rm -f table.c simops.h gencode
> 
>   interp.o: interp.c table.c $(INCLUDE)
> ! simops.o: simops.c simops.h $(INCLUDE)
>   endian.o: endian.c $(INCLUDE)
>   table.o: table.c
> Index: mn10200/Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/sim/mn10200/Makefile.in,v
> retrieving revision 1.1.1.2
> diff -c -r1.1.1.2 Makefile.in
> *** Makefile.in 1999/04/26 18:33:09     1.1.1.2
> --- Makefile.in 2001/03/27 20:07:40
> ***************
> *** 48,52 ****
>         rm -f table.c simops.h gencode
> 
>   interp.o: interp.c table.c $(INCLUDE)
> ! simops.o: simops.c $(INCLUDE)
>   table.o: table.c
> --- 48,52 ----
>         rm -f table.c simops.h gencode
> 
>   interp.o: interp.c table.c $(INCLUDE)
> ! simops.o: simops.c simops.h $(INCLUDE)
>   table.o: table.c
> Index: mn10300/Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/sim/mn10300/Makefile.in,v
> retrieving revision 1.2
> diff -c -r1.2 Makefile.in
> *** Makefile.in 2000/03/03 23:25:10     1.2
> --- Makefile.in 2001/03/27 20:07:40
> ***************
> *** 152,158 ****
> 
> 
>   interp.o: interp.c $(MN10300_INTERP_DEP) $(INCLUDE)
> ! simops.o: simops.c $(INCLUDE)
>   table.o: table.c
> 
>   clean-extra: clean-igen
> --- 152,158 ----
> 
> 
>   interp.o: interp.c $(MN10300_INTERP_DEP) $(INCLUDE)
> ! simops.o: simops.c simops.h $(INCLUDE)
>   table.o: table.c
> 
>   clean-extra: clean-igen
> Index: v850/Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/sim/v850/Makefile.in,v
> retrieving revision 1.3
> diff -c -r1.3 Makefile.in
> *** Makefile.in 2001/03/14 21:51:31     1.3
> --- Makefile.in 2001/03/27 20:07:41
> ***************
> *** 135,140 ****
>         rm -f table.c simops.h gencode
> 
>   #interp.o: interp.c table.c $(INCLUDE)
> ! simops.o: simops.c $(INCLUDE) targ-vals.h
>   #table.o: table.c
>   semantics.o: $(INCLUDE)
> --- 135,140 ----
>         rm -f table.c simops.h gencode
> 
>   #interp.o: interp.c table.c $(INCLUDE)
> ! simops.o: simops.c simops.h $(INCLUDE) targ-vals.h
>   #table.o: table.c
>   semantics.o: $(INCLUDE)


  reply	other threads:[~2001-04-06 11:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-27 12:26 J.T. Conklin
2001-04-06 11:08 ` Andrew Cagney [this message]
2001-04-06 11:30   ` Frank Ch. Eigler
2001-04-08 23:28     ` Eli Zaretskii
2001-04-15 12:54   ` J.T. Conklin
2001-04-15 13:13     ` H . J . Lu
2001-04-15 13:47       ` J.T. Conklin
2001-04-15 13:56         ` H . J . Lu
2001-04-15 22:53           ` Eli Zaretskii

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=3ACE0606.1A63BF3D@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sourceware.cygnus.com \
    --cc=jtc@redback.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