Subject: toolchain/14598: cross-compiling from alpha is more broken now
To: None <>
From: None <kre@munnari.OZ.AU>
List: netbsd-bugs
Date: 11/16/2001 18:14:53
>Number:         14598
>Category:       toolchain
>Synopsis:       cross-compiling from alpha is more broken now
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 16 03:13:00 PST 2001
>Originator:     Robert Elz
>Release:        NetBSD-current 20011115
	University of Melbourne
System: NetBSD 1.5_BETA NetBSD 1.5_BETA (BRANDENBURG) #6: Sun Oct 14 19:40:40 ICT 2001 i386

(that's this system, when I'm running send-pr, the problem happened on...)

NetBSD 1.5R NetBSD 1.5R (MUNNNARI) #0: Thu Feb 15 16:25:51 EST 2001 alpha

Sources cvs updated about 18 hours ago (between 03:00 and 07:30, UTC+1100).

	Attempt to cross compile on an alpha, producing i386.
	This used to (almost) work - there's a c++ compiler error
	(produces bad assembly code (PR bin/14489) - or was - I was
	attempting to get that far gain to possibly investigate the
	cause, if the problem remains)

	This is the first time I have attempted this since autoconf
	was added to the tools used ...

	The attempt ends ...

configure: error: *** Gdb does not support host alpha-unknown-netbsd1.5R
Configure in /usr/obj/tools/toolchain/build/gdb failed, exiting

	I have the full (600Kb) make log (mostly from a cleandir that
	preceded the build) if anyone needs more that.

	Get on a NetBSD alpha ...

	In /etc/mk.conf put

# DISTDIR=/home/distfiles

	(and some other stuff that relates only to pkgsrc).

	Then run:

(cd /usr/src; /usr/tools/bin/nbmake cleandir; ./ -u -m i386 -T /usr/tools -O /usr/obj -D /home/trees/i386 -R /home/snapshots/i386 ) 2>&1 | Mail -s Build kre &

	The relevant part of that, is ..

	./ -u -m i386 -T /usr/tools -O /usr/obj \
		-D /home/trees/i386 -R /home/snapshots/i386

	I guess, don't attemmt to autoconf gdb when cross-compiling
	(at lest when it isn't supported).