Subject: install/24036: ./bootstrap fails with error
To: None <gnats-bugs@gnats.netbsd.org>
From: None <fox@tcnet.ch>
List: netbsd-bugs
Date: 01/10/2004 02:55:37
>Number:         24036
>Category:       install
>Synopsis:       running .bootstrab fails on cobalt mipsel
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 10 01:48:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Fuchs
>Release:        NetBSD 1.6.1
>Organization:
	
>Environment:
	
	
System: NetBSD qube 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Thu Jun 26 22:22:53 CEST 2003 cdi@merlin.camelot.net:/misc/home/cdi/src/netbsd/1.6.1/src/sys/arch/cobalt/compile/GENERIC cobalt
Architecture: mipsel
Machine: cobalt
>Description:
rm -f *.[ado] */*.[ado]
CC="gcc" MAKESYSPATH=/usr/pkg/share/mk ./bmake.boot -f Makefile
gcc -O2 -I. -I. -DHAVE_CONFIG_H  "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c arch.c
gcc -O2 -I. -I. -DHAVE_CONFIG_H  "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c buf.c
gcc -O2 -I. -I. -DHAVE_CONFIG_H  "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c compat.c
gcc -O2 -I. -I. -DHAVE_CONFIG_H  "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c cond.c
gcc -O2 -I. -I. -DHAVE_CONFIG_H  "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c dir.c
gcc -O2 -I. -I. -DHAVE_CONFIG_H  "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c for.c
gcc -O2 -I. -I. -DHAVE_CONFIG_H  "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c hash.c
gcc -O2 -I. -I. -DHAVE_CONFIG_H  "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""    -Werror   -c job.c
gcc -O2 -I. -I. -DHAVE_CONFIG_H  "-D_PATH_DEFSYSPATH=\"/usr/pkg/share/mk\""  "-DMAKE_VERSION=\"bmake-3.1.12 20040110\"" "-DMACHINE=\"cobalt\"" "-DMACHINE_ARCH=\"cobalt\""  -Werror   -c main.c
In file included from /usr/include/sys/param.h:146,
                 from main.c:92:
/usr/include/machine/param.h:44: warning: `MACHINE_ARCH' redefined
*Initialization*:1: warning: this is the location of the previous definition
*** Error code 1

Stop.
bmake.boot: stopped in /usr/bootstrap-pkgsrc/bmake
*** Error code 1

Stop.
make: stopped in /usr/bootstrap-pkgsrc/bmake
===> exited with status 1
aborted.

>How-To-Repeat:
	
	just try to run ./bootstrap from ftp://ftp.netbsd.org/pub/NetBSD/packages/bootstrap-pkgsrc.tar.gz on a cobalt mips
>Fix:
	i think the problem is that configure think that MACHINE_ARCH=\"cobalt\" should it not be mipsel ?

>Release-Note:
>Audit-Trail:
>Unformatted: