NetBSD Problem Report #16214

Received: (qmail 3576 invoked from network); 6 Apr 2002 09:20:40 -0000
Message-Id: <200204060920.g369KcL01524@night-porter.duskware.de>
Date: Sat, 6 Apr 2002 11:20:38 +0200 (MEST)
From: Martin Husemann <martin@duskware.de>
Reply-To: martin@duskware.de
To: gnats-bugs@gnats.netbsd.org
Subject: 32bit kernels are broken
X-Send-Pr-Version: 3.95

>Number:         16214
>Category:       port-sparc64
>Synopsis:       32bit kernels are broken
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sparc64-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 06 09:21:01 +0000 2002
>Closed-Date:    Sun Sep 29 23:14:28 +0000 2002
>Last-Modified:  Wed May 13 13:28:40 +0000 2015
>Originator:     Martin Husemann
>Release:        NetBSD 1.5ZC
>Organization:
>Environment:
System: NetBSD night-porter.duskware.de 1.5ZC NetBSD 1.5ZC (PORTER) #1: Fri Apr 5 11:45:53 MEST 2002 martin@night-porter.duskware.de:/usr/src/sys/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:

Using a 32bit sparc64 kernel results in compiler errors, same userland works
on sparc.

>How-To-Repeat:

I setup a native sparc userland, used a i386-sparc cross-compiler to build
a sparc64 32bit kernel and booted that. Then I tried to recompile the kernel
natively:

This results (repeatable) in this error:

cc  -pipe -mno-fpu -ffreestanding  -O2 -mcpu=ultrasparc -pipe -Werror -Wall -Wno-main -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized  -Dsparc64 -D__sparc64__ -m32 -Wa,-Av8plusa -mcpu=ultrasparc -I.  -I../../../../arch -I../../../.. -nostdinc -DNVNODE="0x2ee0" -D__ELF__ -DMAXUSERS=10 -D_KERNEL -D_KERNEL_OPT   -c /sparc64/usr/src/sys/arch/sparc64/compile/SETTINGSUN32/../../../../netinet/tcp_input.c
cc: {standard input}: Assembler messages:
{standard input}:0: Warning: end of file not at end of a line; newline inserted
{standard input}:359: Error: Unknown opcode: `l'
Internal compiler error: program cc1 got fatal signal 11
*** Error code 1

Stop.
make: stopped in /sparc64/usr/src/sys/arch/sparc64/compile/SETTINGSUN32
/sparc64/usr/src/sys/arch/sparc64/compile/SETTINGSUN32 > cpp0: output pipe has been closed

I get similar errors when trying to compile "digest" from pkgsrc.

The exactly same toolchain and userland works fine on my Sparc LX,
so this is definitively a kernel issue.

>Fix:
n/a
>Release-Note:
>Audit-Trail:

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: kern/16214: 32bit kernels are broken
Date: Sat, 6 Apr 2002 11:39:54 +0200

 > The exactly same toolchain and userland works fine on my Sparc LX,
 > so this is definitively a kernel issue.

 Additional note: on the 32bit sparc64 kernel I *sometimes* get alignement
 faults from a statically linked tcsh binary (of course the same binary always
 works, and has for ages, on the Sparc LX)

 Alignment error: pid=1579 comm=tcsh dsfsr=00000000:00800005 dsfar=0:211 isfsr=00000000:00000000 pc=48908

 The core dumped by this is not useable for the 32bit gdb:

 This GDB was configured as "sparc--netbsdelf"...(no debugging symbols found)...
 "/root/tcsh.core" is not a core dump: Bad value

 but file says:
 tcsh.core: ELF 32-bit MSB core file, SPARC32PLUS, version 1 (SYSV), NetBSD-style, from 'tcsh' (signal 10)

 Martin
Responsible-Changed-From-To: kern-bug-people->port-sparc64-maintainer 
Responsible-Changed-By: thorpej 
Responsible-Changed-When: Fri Jun 14 08:23:14 PDT 2002 
Responsible-Changed-Why:  
This is a sparc64 problem. 

From: eeh@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: kern/16214: 32bit kernels are broken
Date: 14 Jun 2002 20:16:05 -0000

 I can't reproduce this problem.  Are you sure you
 didn't build your sparc snapshot with some funny
 compiler flags?  Your kernel is an ELF32 executable?

 Eduardo
State-Changed-From-To: open->closed 
State-Changed-By: martin 
State-Changed-When: Sun Sep 29 16:13:45 PDT 2002 
State-Changed-Why:  
This works with -current kernels. 

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.