Subject: pkg/12140: cross/mipseb-netbsd does not work (for kernels, at least)
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 02/05/2001 11:26:20
>Number:         12140
>Category:       pkg
>Synopsis:       cross/mipseb-netbsd cannot compile a kernel on my laptop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 05 11:29:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     TheMan
>Release:        current as of 20010130, pkgsrc from 20010124
>Organization:
none
>Environment:
	
System: NetBSD this 1.5R NetBSD 1.5R (THAT) #29: Mon Feb  5 01:17:39 EST 2001     root@this:/usr/src/sys/arch/i386/compile/THAT i386


>Description:

when attempting to build a kernel for a sgimips machine, the build
fails half way though with this message:


>How-To-Repeat:

	# cd /usr/pkgsrc/cross/mipseb-netbsd
	# make install
	# cd /usr/src/sys/arch/sgimips/conf
	# config INDY
	# cd ../compile/INDY
	# sgimips-make		(a shell script to set MACHINE, CC, etc)
	...
	/usr/pkg/cross/bin/mipseb-netbsd-ld: unrecognised emulation mode: elf32bmip
Supported emulations: elf_i386 i386linux elf64alpha armnbsd i386pe i386go32 i386nbsd i386nw m68kelf m68knbsd sun3 elf32ebmip elf32lmip elf32ppc elf32lppc sparcnbsd elf32_sparc sun4

>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/cross/mipseb-netbsd/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	2001/01/06 06:38:21	1.2
+++ Makefile	2001/02/05 19:25:37
@@ -11,7 +11,7 @@
 
 USE_CROSS_BINUTILS=	yes
 BINUTILS_GNUTARGET=	elf32-bigmips
-BINUTILS_LDEMULATION=	elf32bmip
+BINUTILS_LDEMULATION=	elf32ebmip
 USE_CROSS_EGCS=		yes
 EGCS_FAKE_RUNTIME=	yes
 
>Release-Note:
>Audit-Trail:
>Unformatted: