Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/rfa] gdb_mbuild.sh build errors
@ 2004-05-18  5:04 Randolph Chung
  2004-05-18 21:25 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Randolph Chung @ 2004-05-18  5:04 UTC (permalink / raw)
  To: gdb-patches

A few targets don't build correctly with the gdb_mbuild.sh script (using
i386-linux as the host):

alpha-elf:
/home/tausq/gdb/gdb/gdb/alpha-tdep.c: In function `alpha_gdbarch_init':
/home/tausq/gdb/gdb/gdb/alpha-tdep.c:1502: warning: integer constant is too large for "long" type

m32r-elf:
mloop.c: In function `execute':
mloop.c:115: too few arguments to function
/home/tausq/gdb/gdb/sim/m32r/model.c: In function `m32r_init_cpu':
/home/tausq/gdb/gdb/sim/m32r/model.c:4344: `m32rbf_engine_run_full' undeclared (first use in this function)
/home/tausq/gdb/gdb/sim/m32r/model.c:4344: (Each undeclared identifier is reported only once
/home/tausq/gdb/gdb/sim/m32r/model.c:4344: for each function it appears in.)

v850-elf, when built with -j4
/home/tausq/gdb/gdb/sim/v850/interp.c:5: itable.h: No such file or directory
make[2]: *** [interp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

The alpha and v850 build errors can be fixed with the following. I don't
know how to fix the m32r-elf build error. Should i check these in?

gdb:
2004-05-17  Randolph Chung  <tausq@debian.org>

    * alpha-tdep.c (alpha_gdbarch_init): Define 64-bit constant with
    ULL qualifier.

sim/v850:
2004-05-17  Randolph Chung  <tausq@debian.org>

    * Makefile.in (interp.o): Define proper dependency.

Index: gdb/alpha-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alpha-tdep.c,v
retrieving revision 1.130
diff -u -r1.130 alpha-tdep.c
--- gdb/alpha-tdep.c    1 May 2004 15:34:49 -0000       1.130
+++ gdb/alpha-tdep.c    18 May 2004 05:00:16 -0000
@@ -1499,7 +1499,7 @@

   /* Lowest text address.  This is used by heuristic_proc_start()
      to decide when to stop looking.  */
-  tdep->vm_min_address = (CORE_ADDR) 0x120000000;
+  tdep->vm_min_address = (CORE_ADDR) 0x120000000ULL;

   tdep->dynamic_sigtramp_offset = NULL;
   tdep->sigcontext_addr = NULL;
Index: sim/v850/Makefile.in
===================================================================
RCS file: /cvs/src/src/sim/v850/Makefile.in,v
retrieving revision 1.7
diff -u -r1.7 Makefile.in
--- sim/v850/Makefile.in        16 May 2003 07:11:43 -0000      1.7
+++ sim/v850/Makefile.in        18 May 2004 05:00:16 -0000
@@ -124,6 +124,7 @@
        rm -f table.c simops.h gencode

 #interp.o: interp.c table.c $(INCLUDE)
+interp.o: interp.c $(INCLUDE)
 simops.o: simops.c simops.h $(INCLUDE) targ-vals.h
 #table.o: table.c
 semantics.o: $(INCLUDE)

-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch/rfa] gdb_mbuild.sh build errors
  2004-05-18  5:04 [patch/rfa] gdb_mbuild.sh build errors Randolph Chung
@ 2004-05-18 21:25 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2004-05-18 21:25 UTC (permalink / raw)
  To: Randolph Chung; +Cc: gdb-patches

On Mon, May 17, 2004 at 10:04:02PM -0700, Randolph Chung wrote:
> A few targets don't build correctly with the gdb_mbuild.sh script (using
> i386-linux as the host):
> 
> alpha-elf:
> /home/tausq/gdb/gdb/gdb/alpha-tdep.c: In function `alpha_gdbarch_init':
> /home/tausq/gdb/gdb/gdb/alpha-tdep.c:1502: warning: integer constant is too large for "long" type

Got this one, and several others related - we must be using different
host compiler versions if you didn't see similar problems on a lot of
other targets.

> m32r-elf:
> mloop.c: In function `execute':
> mloop.c:115: too few arguments to function
> /home/tausq/gdb/gdb/sim/m32r/model.c: In function `m32r_init_cpu':
> /home/tausq/gdb/gdb/sim/m32r/model.c:4344: `m32rbf_engine_run_full' undeclared (first use in this function)
> /home/tausq/gdb/gdb/sim/m32r/model.c:4344: (Each undeclared identifier is reported only once
> /home/tausq/gdb/gdb/sim/m32r/model.c:4344: for each function it appears in.)

I'm guessing this is just another symptom of the same problem I just
checked in a fix for.

> Index: sim/v850/Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/sim/v850/Makefile.in,v
> retrieving revision 1.7
> diff -u -r1.7 Makefile.in
> --- sim/v850/Makefile.in        16 May 2003 07:11:43 -0000      1.7
> +++ sim/v850/Makefile.in        18 May 2004 05:00:16 -0000
> @@ -124,6 +124,7 @@
>         rm -f table.c simops.h gencode
> 
>  #interp.o: interp.c table.c $(INCLUDE)
> +interp.o: interp.c $(INCLUDE)
>  simops.o: simops.c simops.h $(INCLUDE) targ-vals.h
>  #table.o: table.c
>  semantics.o: $(INCLUDE)

First of all, delete the line above your addition, and the commented
out rule for table.o, please.  Secondly please update the copyright
year in the Makefile.

It looks like it needs these years added:
 1998, 2001, 2002, 2003, 2004

-- 
Daniel Jacobowitz


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-18 21:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-18  5:04 [patch/rfa] gdb_mbuild.sh build errors Randolph Chung
2004-05-18 21:25 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox