From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Cannot bootstrap on NetBSD/cobalt Date: Mon, 06 Mar 2006 17:18:16 +0900 Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1141677694 1806 80.91.229.6 (6 Mar 2006 20:41:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 20:41:34 +0000 (UTC) Cc: nakaji@takamatsu-nct.ac.jp Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 06 21:41:27 2006 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1FGMFC-00025d-00 for ; Mon, 06 Mar 2006 21:23:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGMFM-000290-Ky for ged-emacs-devel@m.gmane.org; Mon, 06 Mar 2006 15:24:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FGLhg-0001hp-Ha for emacs-devel@gnu.org; Mon, 06 Mar 2006 14:49:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FGLhZ-0001dS-7Y for emacs-devel@gnu.org; Mon, 06 Mar 2006 14:49:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGK0B-0004i3-OU for emacs-devel@gnu.org; Mon, 06 Mar 2006 13:00:11 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FGAxS-0005XM-8H for emacs-devel@gnu.org; Mon, 06 Mar 2006 03:20:46 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k268IHTR012136; Mon, 6 Mar 2006 17:18:18 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k268IHAU009102; Mon, 6 Mar 2006 17:18:17 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FGAv2-0006v2-00; Mon, 06 Mar 2006 17:18:16 +0900 Original-To: emacs-devel@gnu.org User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51284 Archived-At: I got this bug report (translated by me from the original Japanese). As I don't have NetBSD nor mips machine, I can't work on it. --- Kenichi Handa handa@m17n.org ---------------------------------------------------------------------- When we build Emacs on "Cobalt Cache RaQ2" with NetBSD/cobalt or on hpcmips with NetBSD-3.99.11 (no X11), temacs can't be build correctly. /usr/lib/crt{i,begin,end,n}.o are not linked with temacs. It seems the culprit is that START_FILES and LIB_STANDARD defined in src/s/netbsd.h are overridden by src/m/mips.h and src/m/pmax.h. With the attached patch, it is confirmed that the Emacs built on hpcmips/NetBSD at least starts up. But, the patch may cause a problem for the other OS (especially OpenBSD and older NetBSD). Index: src/m/mips.h =================================================================== RCS file: /cvsroot/emacs/emacs/src/m/mips.h,v retrieving revision 1.27 diff -u -r1.27 mips.h --- src/m/mips.h 6 Feb 2006 15:23:23 -0000 1.27 +++ src/m/mips.h 6 Mar 2006 00:50:32 -0000 @@ -112,7 +112,7 @@ /* This machine requires completely different unexec code which lives in a separate file. Specify the file name. */ -#ifndef __linux__ +#if !defined(__linux__) && !defined(__NetBSD__) #undef UNEXEC #define UNEXEC unexmips.o #endif /* not __linux__ */ @@ -142,14 +142,6 @@ #if defined (__NetBSD__) || defined (__OpenBSD__) #else /* bsd with elf */ #define LINKER /bsd43/bin/ld -#endif /* bsd with elf */ -#else /* not BSD_SYSTEM */ - -#if defined(__GNUC__) && defined(_ABIN32) -#define LIBS_MACHINE -#else -#define LIBS_MACHINE -lmld -#endif #define LD_SWITCH_MACHINE -D 800000 -g3 #define START_FILES pre-crt0.o /usr/lib/crt1.o @@ -159,6 +151,15 @@ #define C_SWITCH_MACHINE -I/usr/include/bsd #define C_DEBUG_SWITCH -O -g3 +#endif /* bsd with elf */ +#else /* not BSD_SYSTEM */ + +#if defined(__GNUC__) && defined(_ABIN32) +#define LIBS_MACHINE +#else +#define LIBS_MACHINE -lmld +#endif + #endif /* not BSD_SYSTEM */ #endif /* not NEWSOS5 && not __linux__ */ Index: src/m/pmax.h =================================================================== RCS file: /cvsroot/emacs/emacs/src/m/pmax.h,v retrieving revision 1.23 diff -u -r1.23 pmax.h --- src/m/pmax.h 1 Sep 2003 15:45:58 -0000 1.23 +++ src/m/pmax.h 6 Mar 2006 00:50:32 -0000 @@ -13,29 +13,24 @@ #ifndef __MIPSEB__ #undef WORDS_BIG_ENDIAN #endif +#if !defined (__NetBSD__) #undef LIB_STANDARD #undef START_FILES +#endif #undef COFF #undef TERMINFO #define MAIL_USE_FLOCK #define HAVE_UNION_WAIT - #ifdef MACH #define START_FILES pre-crt0.o /usr/lib/crt0.o #else +#if !defined (__NetBSD__) /* This line starts being needed with ultrix 4.0. */ /* You must delete it for version 3.1. */ #define START_FILES pre-crt0.o /usr/lib/cmplrs/cc/crt0.o #endif - -#if defined (__NetBSD__) || defined (__OpenBSD__) -#undef START_FILES -#define START_FILES pre-crt0.o /usr/lib/crt0.o -#undef RUN_TIME_REMAP -#undef UNEXEC -#define UNEXEC unexelf.o -#endif /* NetBSD || OpenBSD */ +#endif /* Supposedly the following will overcome a kernel bug. */ #undef LD_SWITCH_MACHINE