NetBSD Problem Report #9778

Received: (qmail 13574 invoked from network); 5 Apr 2000 04:21:21 -0000
Message-Id: <200004050420.VAA04090@nbwww.isc.org>
Date: Tue, 4 Apr 2000 21:20:06 -0700 (PDT)
From: mbw@netbsd.org
Reply-To: mbw@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: emulators/bochs fails to build during assembler of reg_u_add.S
X-Send-Pr-Version: www-1.0

>Number:         9778
>Category:       pkg
>Synopsis:       emulators/bochs fails to build during assembler of reg_u_add.S
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 05 04:22:01 +0000 2000
>Closed-Date:    Sun Jul 08 16:32:18 +0000 2001
>Last-Modified:  Sun Jul 08 16:32:18 +0000 2001
>Originator:     Michael Wolfson
>Release:        1.4.2
>Organization:
>Environment:
NetBSD fatmac 1.4.2 NetBSD 1.4.2 (FATMAC) #0: Mon Mar 20 00:36:27 EST 2000     mw@fatmac:/usr/src/sys/arch/hp300/compile/FATMAC hp300

>Description:

Using pkgsrc.tar.gz dated Apr 1, 2000, emulators/bochs (2000_0104c) build
fails with:

cc -c -O2   -DUSE_WITH_CPU_SIM -DPARANOID   -fno-builtin -DNO_ASSEMBLER -I.. -I.
./instrument/stubs -I. -I./stubs reg_mul.c -o reg_mul.o
cc -I./stubs -D__ASSEMBLY__ -DPARANOID -c reg_u_add.S
reg_u_add.S: Assembler messages:
reg_u_add.S:35: Error: "Unknown operator" -- Statement 'pushl %ebp' ignored
reg_u_add.S:36: Warning: Unknown expression: '%esp' defaulting to 0
reg_u_add.S:36: Warning: Unknown expression: '%ebp' defaulting to 0
reg_u_add.S:37: Error: "Unknown operator" -- Statement 'pushl %esi' ignored
reg_u_add.S:38: Error: "Unknown operator" -- Statement 'pushl %edi' ignored
reg_u_add.S:39: Error: "Unknown operator" -- Statement 'pushl %ebx' ignored
reg_u_add.S:41: Error: Ignoring junk after expression
reg_u_add.S:41: Warning: Unknown expression: '%esi' defaulting to 0
reg_u_add.S:42: Error: Ignoring junk after expression
reg_u_add.S:42: Warning: Unknown expression: '%edi' defaulting to 0
reg_u_add.S:44: Error: Ignoring junk after expression
reg_u_add.S:44: Warning: Unknown expression: '%ecx' defaulting to 0
reg_u_add.S:45: Warning: Unknown expression: '%ecx' defaulting to 0
reg_u_add.S:45: Warning: Unknown expression: '%edx' defaulting to 0
reg_u_add.S:46: Error: "instruction/operands mismatch" -- Statement 'subl 32(%eb
p),%ecx' ignored
reg_u_add.S:50: Error: Ignoring junk after expression
reg_u_add.S:50: Warning: Unknown expression: '%ebx' defaulting to 0
reg_u_add.S:51: Error: Ignoring junk after expression
reg_u_add.S:51: Warning: Unknown expression: '%eax' defaulting to 0
reg_u_add.S:53: Warning: Unknown expression: '%edi' defaulting to 0
reg_u_add.S:53: Warning: Unknown expression: '%esi' defaulting to 0
reg_u_add.S:54: Error: Ignoring junk after expression
reg_u_add.S:54: Warning: Unknown expression: '%edx' defaulting to 0
reg_u_add.S:55: Warning: Unknown expression: '%cx' defaulting to 0
reg_u_add.S:60: Error: Ignoring junk after expression
reg_u_add.S:60: Warning: Unknown expression: '%ebx' defaulting to 0
reg_u_add.S:61: Error: Ignoring junk after expression
reg_u_add.S:61: Warning: Unknown expression: '%eax' defaulting to 0
reg_u_add.S:64: Error: Ignoring junk after expression
reg_u_add.S:64: Warning: Unknown expression: '%edi' defaulting to 0
reg_u_add.S:65: Warning: Unknown expression: '%dx' defaulting to 0
reg_u_add.S:65: Error: Ignoring junk after expression
reg_u_add.S:67: Error: "Unknown operator" -- Statement 'xorl %edx,%edx' ignored
reg_u_add.S:70: Error: "Unknown operator" -- Statement 'testl $0x80000000,%eax' 
ignored
reg_u_add.S:71: Error: "Unknown operator" -- Statement 'je L_bugged' ignored
reg_u_add.S:73: Error: "Unknown operator" -- Statement 'testl $0x80000000,4(%esi
)' ignored
reg_u_add.S:74: Error: "Unknown operator" -- Statement 'je L_bugged' ignored
reg_u_add.S:78: Error: "instruction/operands mismatch" -- Statement 'cmpw $32,%c
x' ignored
reg_u_add.S:79: Error: "Unknown operator" -- Statement 'jnc L_more_than_31' igno
red
reg_u_add.S:82: Error: "Unknown operator" -- Statement 'shrd %cl,%ebx,%edx' igno
red
reg_u_add.S:83: Error: "Unknown operator" -- Statement 'shrd %cl,%eax,%ebx' igno
red
reg_u_add.S:84: Error: "Unknown operator" -- Statement 'shr %cl,%eax' ignored
reg_u_add.S:88: Error: "instruction/operands mismatch" -- Statement 'cmpw $64,%c
x' ignored
reg_u_add.S:89: Error: "Unknown operator" -- Statement 'jnc L_more_than_63' igno
red
reg_u_add.S:91: Error: "instruction/operands mismatch" -- Statement 'subb $32,%c
l' ignored
reg_u_add.S:92: Error: "Unknown operator" -- Statement 'jz L_exactly_32' ignored
reg_u_add.S:94: Error: "Unknown operator" -- Statement 'shrd %cl,%eax,%edx' igno
red
reg_u_add.S:95: Error: "Unknown operator" -- Statement 'shr %cl,%eax' ignored
reg_u_add.S:96: Error: "instruction/operands mismatch" -- Statement 'orl %ebx,%e
bx' ignored
reg_u_add.S:97: Error: "Unknown operator" -- Statement 'jz L_more_31_no_low' ign
ored
reg_u_add.S:99: Error: "instruction/operands mismatch" -- Statement 'orl $1,%edx
' ignored
reg_u_add.S:102: Warning: Unknown expression: '%eax' defaulting to 0
reg_u_add.S:102: Warning: Unknown expression: '%ebx' defaulting to 0
reg_u_add.S:103: Error: "Unknown operator" -- Statement 'xorl %eax,%eax' ignored
reg_u_add.S:107: Warning: Unknown expression: '%ebx' defaulting to 0
reg_u_add.S:107: Warning: Unknown expression: '%edx' defaulting to 0
reg_u_add.S:108: Warning: Unknown expression: '%eax' defaulting to 0
reg_u_add.S:108: Warning: Unknown expression: '%ebx' defaulting to 0
reg_u_add.S:109: Error: "Unknown operator" -- Statement 'xorl %eax,%eax' ignored
reg_u_add.S:113: Error: "instruction/operands mismatch" -- Statement 'cmpw $65,%
cx' ignored
reg_u_add.S:114: Error: "Unknown operator" -- Statement 'jnc L_more_than_64' ign
ored
reg_u_add.S:116: Warning: Unknown expression: '%eax' defaulting to 0
reg_u_add.S:116: Warning: Unknown expression: '%edx' defaulting to 0
reg_u_add.S:117: Error: "instruction/operands mismatch" -- Statement 'orl %ebx,%
ebx' ignored
reg_u_add.S:118: Error: "Unknown operator" -- Statement 'jz L_more_63_no_low' ig
nored
reg_u_add.S:120: Error: "instruction/operands mismatch" -- Statement 'orl $1,%ed
x' ignored
reg_u_add.S:124: Warning: Unknown expression: '%edx' defaulting to 0
reg_u_add.S:127: Error: "Unknown operator" -- Statement 'xorl %ebx,%ebx' ignored
reg_u_add.S:128: Error: "Unknown operator" -- Statement 'xorl %eax,%eax' ignored
reg_u_add.S:132: Error: "instruction/operands mismatch" -- Statement 'addl 0(%es
i),%ebx' ignored
reg_u_add.S:133: Error: "Unknown operator" -- Statement 'adcl 4(%esi),%eax' igno
red
reg_u_add.S:134: Error: "Unknown operator" -- Statement 'jnc L_round_the_result'
 ignored
reg_u_add.S:137: Error: "Unknown operator" -- Statement 'rcrl $1,%eax' ignored
reg_u_add.S:138: Error: "Unknown operator" -- Statement 'rcrl $1,%ebx' ignored
reg_u_add.S:139: Error: "Unknown operator" -- Statement 'rcrl $1,%edx' ignored
reg_u_add.S:140: Error: "Unknown operator" -- Statement 'jnc L_no_bit_lost' igno
red
reg_u_add.S:142: Error: "instruction/operands mismatch" -- Statement 'orl $1,%ed
x' ignored
reg_u_add.S:145: Error: "Unknown operator" -- Statement 'incw 8(%edi)' ignored
reg_u_add.S:155: Error: "Unknown operator" -- Statement 'pushl $0x8000' ignored
reg_u_add.S:156: Error: "Unknown operator" -- Statement 'call FPU_exception' ign
ored
reg_u_add.S:157: Error: "Unknown operator" -- Statement 'pop %ebx' ignored
reg_u_add.S:158: Warning: Unknown expression: '%eax' defaulting to 0
reg_u_add.S:162: Error: "Unknown operator" -- Statement 'popl %ebx' ignored
reg_u_add.S:163: Error: "Unknown operator" -- Statement 'popl %edi' ignored
reg_u_add.S:164: Error: "Unknown operator" -- Statement 'popl %esi' ignored
reg_u_add.S:165: Error: "Unknown operator" -- Statement 'leave' ignored
reg_u_add.S:166: Error: "Unknown operator" -- Statement 'ret' ignored
*** Error code 1

Stop.

>How-To-Repeat:

Using pkgsrc.tar.gz dated Apr 1, 2000
cd emulators/bochs
make package
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: wiz 
State-Changed-When: Sun Sep 10 15:14:53 PDT 2000 
State-Changed-Why:  
I just committed a fix that should solve this (Makefile v1.8). 
Could you please check that this solves the problem for you? 

From: Michael Wolfson <mw@costello.cnf.cornell.edu>
To: wiz@netbsd.org, gnats-bugs@netbsd.org
Cc:  
Subject: Re: pkg/9778
Date: Mon, 11 Sep 2000 01:52:10 -0400

 At 10:15 PM +0000 9/10/00, you wrote:

 :)Synopsis: emulators/bochs fails to build during assembler of reg_u_add.S
 :)
 :)State-Changed-From-To: open->feedback
 :)State-Changed-By: wiz
 :)State-Changed-When: Sun Sep 10 15:14:53 PDT 2000
 :)State-Changed-Why:
 :)I just committed a fix that should solve this (Makefile v1.8).
 :)Could you please check that this solves the problem for you?

 I'm afraid I still get the same errors.  Any other ideas?

 Thanks,
   -- MW



From: Michael Wolfson <mw@costello.cnf.cornell.edu>
To: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>, gnats-bugs@netbsd.org
Cc:  
Subject: Re: pkg/9778
Date: Tue, 12 Sep 2000 14:54:20 -0400

 At 1:51 PM +0200 9/11/00, you wrote:

 :)Could you please send me the output of the `make' after a cvs update,
 :)or provide me with an account?

 Oops, I did indeed forget to cvs update before trying again.  Here's the
 latest make output:

 [...]
 cc -c -O2   -DUSE_WITH_CPU_SIM -DPARANOID  -fno-builtin -DNO_ASSEMBLER -I..
 -I..
 /instrument/stubs -I. -I./stubs reg_constant.c -o reg_constant.o
 reg_constant.c:21: warning: alignment of `CONST_1' is greater than maximum
 objec
 t file alignment. Using 4.
 reg_constant.c:22: warning: alignment of `CONST_2' is greater than maximum
 objec
 t file alignment. Using 4.
 reg_constant.c:23: warning: alignment of `CONST_HALF' is greater than
 maximum ob
 ject file alignment. Using 4.
 reg_constant.c:24: warning: alignment of `CONST_L2T' is greater than
 maximum obj
 ect file alignment. Using 4.
 reg_constant.c:25: warning: alignment of `CONST_L2E' is greater than
 maximum obj
 ect file alignment. Using 4.
 reg_constant.c:26: warning: alignment of `CONST_PI' is greater than maximum
 obje
 ct file alignment. Using 4.
 reg_constant.c:27: warning: alignment of `CONST_PI2' is greater than
 maximum obj
 ect file alignment. Using 4.
 reg_constant.c:28: warning: alignment of `CONST_PI4' is greater than
 maximum obj
 ect file alignment. Using 4.
 reg_constant.c:29: warning: alignment of `CONST_LG2' is greater than
 maximum obj
 ect file alignment. Using 4.
 reg_constant.c:30: warning: alignment of `CONST_LN2' is greater than
 maximum obj
 ect file alignment. Using 4.
 reg_constant.c:33: warning: alignment of `CONST_PI2extra' is greater than
 maximu
 m object file alignment. Using 4.
 reg_constant.c:37: warning: alignment of `CONST_Z' is greater than maximum
 objec
 t file alignment. Using 4.
 reg_constant.c:44: warning: alignment of `CONST_QNaN' is greater than
 maximum ob
 ject file alignment. Using 4.
 reg_constant.c:47: warning: alignment of `CONST_INF' is greater than
 maximum obj
 ect file alignment. Using 4.
 cc -c -O2   -DUSE_WITH_CPU_SIM -DPARANOID  -fno-builtin -DNO_ASSEMBLER -I..
 -I..
 /instrument/stubs -I. -I./stubs reg_convert.c -o reg_convert.o
 [...]
 cc -c -O2   -DUSE_WITH_CPU_SIM -DPARANOID  -fno-builtin -DNO_ASSEMBLER -I..
 -I..
 /instrument/stubs -I. -I./stubs wm_sqrt.c -o wm_sqrt.o
 /usr/src/gnu/usr.bin/egcs/common/../../../dist/gcc/reload.c:3531: Internal
 compi
 ler error in function find_reloads
 gmake[1]: *** [wm_sqrt.o] Error 1
 gmake[1]: Leaving directory
 `/usr/src/pkgsrc/emulators/bochs/work/bochs-2000_010
 4c/fpu'
 gmake: *** [fpu/libfpu.a] Error 2
 *** Error code 2

 Stop.

 Thanks,
   -- MW


State-Changed-From-To: feedback->open 
State-Changed-By: wiz 
State-Changed-When: Tue Sep 12 18:43:06 PDT 2000 
State-Changed-Why:  
Hm, compiler errors are not my specialty. I'll ask on port-hp300 for help. 
State-Changed-From-To: open->feedback 
State-Changed-By: wiz 
State-Changed-When: Fri Jun 29 15:07:24 PDT 2001 
State-Changed-Why:  
bochs-1.1.2 just compiled successfully on mac68k/1.5U. 
Is it okay with you to close this PR? 
State-Changed-From-To: feedback->closed 
State-Changed-By: wiz 
State-Changed-When: Sun Jul 8 09:31:14 PDT 2001 
State-Changed-Why:  
Submitter is content with bochs-1.1.2 compiling on mac68k/1.5U. 
>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.