Subject: bin/14489: C++ compiler problem cross compiling from alpha to i386
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kre@munnari.OZ.AU>
List: netbsd-bugs
Date: 11/07/2001 01:40:28
>Number:         14489
>Category:       bin
>Synopsis:       i386 C++ compiler running on alpha generates code that won't assemble
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 06 10:39:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Robert Elz
>Release:        NetBSD-current 20011105
>Organization:
	University of Melbourne
>Environment:
	
System: NetBSD brandenburg.cs.mu.OZ.AU 1.5_BETA NetBSD 1.5_BETA (BRANDENBURG) #6: Sun Oct 14 19:40:40 ICT 2001 kre@brandenburg.cs.mu.OZ.AU:/usr/src/sys/arch/i386/compile/BRANDENBURG i386

Really ...

NetBSD munnnari.cs.mu.OZ.AU 1.5R NetBSD 1.5R (MUNNNARI) #0: Thu Feb 15 16:25:51 EST 2001     kre@lavender.cs.mu.OZ.AU:/extra/Sys/arch/alpha/compile/MUNNNARI alpha


>Description:
	The i386 compiler running as a cross compiler (new toolchain)
	on an alpha host, produces code the (cross) assembler won't
	assemble.

>How-To-Repeat:
	On an alpha
		./build.sh -m i386 (other options as appropriate)

	Wait for ...

/usr/tools/bin/i386--netbsdelf-c++ -O2  -Werror   -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1 -DRET_TYPE_SRAND_IS_VOID=1 -DHAVE_SYS_NERR=1 -DHAVE_SYS_ERRLIST=1 -DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_FMOD=1 -DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 -DHAVE_RENAME=1 -DHAVE_MKSTEMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRSEP=1 -DHAVE_STRDUP=1 -DSYS_SIGLIST_DECLARED=1 -I/usr/src/gnu/usr.bin/groff/hpftodit/../include -I/usr/src/gnu/usr.bin/groff/hpftodit/../../../dist/groff/src/include   -nostdinc -idirafter /home/trees/i386/usr/include -c /usr/src/gnu/usr.bin/groff/hpftodit/../../../dist/groff/src/utils/hpftodit/hpftodit.cc
/var/tmp/ccesZfXi.s: Assembler messages:
/var/tmp/ccesZfXi.s:852: Error: Value of 4294967296 too large for field of 4 bytes at 1724
/var/tmp/ccesZfXi.s:909: Error: Value of 4294967400 too large for field of 4 bytes at 1844
/var/tmp/ccesZfXi.s:938: Error: Value of 4294967376 too large for field of 4 bytes at 1942
/var/tmp/ccesZfXi.s:1027: Error: Value of 4294967556 too large for field of 4 bytes at 2114

(and about another 20 similar errors).   Note that 4294967296 (and the other
values) is indeed >= 2^32 and won't fit in 4 bytes.

>Fix:
	Sorry...
>Release-Note:
>Audit-Trail:
>Unformatted: