Subject: toolchain/16710: cross-gdb fails build: tm.h includes machine/vmparam.h
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@Pin.LU>
List: netbsd-bugs
Date: 05/08/2002 03:13:50
>Number: 16710
>Category: toolchain
>Synopsis: cross-gdb fails build: tm.h includes machine/vmparam.h
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 07 18:54:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Christian Limpach
>Release: current (as of May 6 2002)
>Organization:
>Environment:
Debian GNU/Linux with gcc 2.95
>Description:
building a cross-gdb on a linux host fails because tm.h
includes header files which exist only on the target
cc -c -O -I. -I/devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb -I/devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/config -DHAVE_CONFIG_H -I/devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/../include/opcode -I/devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/../readline/.. -I../bfd -I/devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/../bfd -I/devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/../include -I../intl -I/devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/../intl -I/devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/tui -DUSE_INCLUDED_REGEX /devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/main.c
In file included from /devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/defs.h:720,
from /devel/netbsd/current-lvm/syssrc/tools/toolchain/../../gnu/dist/toolchain/gdb/main.c:21:
tm.h:25: machine/vmparam.h: No such file or directory
*** Error code 1
Stop.
>How-To-Repeat:
build cross-gdb on linux host
MKCROSSGDB=yes ./build.sh -m next68k -t
(also setting ac_cv_header_fts_h=no is probably necessary because
of toolchain/16138)
>Fix:
do not include sys/param.h and machine/vmparam.h
gdb builds ok without these
Index: tm-nbsd.h
===================================================================
RCS file: /cvsroot/gnusrc/gnu/dist/toolchain/gdb/config/m68k/tm-nbsd.h,v
retrieving revision 1.3
diff -u -r1.3 tm-nbsd.h
--- tm-nbsd.h 2002/02/09 19:37:39 1.3
+++ tm-nbsd.h 2002/05/08 01:52:15
@@ -21,9 +21,6 @@
#ifndef TM_NBSD_H
#define TM_NBSD_H
-#include <sys/param.h>
-#include <machine/vmparam.h>
-
/* Define BPT_VECTOR if it is different than the default.
This is the vector number used by traps to indicate a breakpoint. */
>Release-Note:
>Audit-Trail:
>Unformatted: