NetBSD Problem Report #9453
Received: (qmail 29958 invoked from network); 20 Feb 2000 16:41:42 -0000
Message-Id: <200002201641.LAA12191@sy-borg.mcmahill.net>
Date: Sun, 20 Feb 2000 11:41:35 -0500 (EST)
From: mcmahill@mtl.mit.edu
Reply-To: mcmahill@mtl.mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: compiler/assembler fails
X-Send-Pr-Version: 3.95
>Number: 9453
>Category: port-pmax
>Synopsis: compiler/assembler fails
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kristerw
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 20 08:42:00 +0000 2000
>Closed-Date: Sun Jul 28 21:32:32 +0000 2002
>Last-Modified: Sun Jul 28 21:32:32 +0000 2002
>Originator: Dan McMahill
>Release: 1.4.1
>Organization:
none
>Environment:
System: NetBSD sy-borg 1.4.1 NetBSD 1.4.1 (SY-BORG) #1: Sun Oct 3 00:23:28 EDT 1999 dan@sy-borg:/amd/dinah-moe/export/src/sys/arch/pmax/compile/SY-BORG pmax
>Description:
certain c++ programs don't assemble when compiled with -O2. The symptom is
the assembler just goes and goes and goes. A program which compiles in
3 minutes on my Mac IIci (NetBSD-1.4.1) was still running the assembler
after more than an hour on my DECstation 5000/200 (NetBSD-1.4.1) (note that
the pmax has 96 MB of RAM and 160 MB of swap compared to 32 MB RAM and
128 MB of swap on the Mac and both systems were relatively idle so its
not just a swap/ram difference).
When the assembler is churning away, its generating a CPU load of about 95%
so its doing something....
currently, top shows:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
12043 root 64 0 2396K 2888K run 80:10 96.39% 96.39% as
>How-To-Repeat:
download the pkgsrc/math/yacas package sources. Should be rev 1.1.1.1 of
Makefile patches/patch-{aa,ab,ac,ad}. Then
cd /usr/pkgsrc/math/yacas
rm patches/patch-ac
make makepatchsum
make
note that patch-ac removes the -O2 flag for the problem file which lets it
finish.
Another pkg on which pmax loses with the -O2 flag is pkgsrc/cad/verilog.
Makefile r1.2
patches/patch-{ad,ae} r1.2
files/{md5,patch-sum} r1.2
patch-ad removes the -O2 flag for 1 particular file. So again
rm patches/patch-ad
make makepatchsum
make
and you'll see the assembly lose.
>Fix:
the current workaround is patch-ac which is already included in the package.
For other programs I'd expect omitting the -O2 flag would also work. However,
thats just a workaround, not a fix.
>Release-Note:
>Audit-Trail:
From: Nino Margetic <nino@well.ox.ac.uk>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-pmax/9453: compiler/assembler fails
Date: Thu, 11 May 2000 14:36:13 +0100 (BST)
Hi,
System: NetBSD una 1.4.2 NetBSD 1.4.2 (UNA) #0: Thu Apr 27 17:38:28 BST 2000 root@una:/tmp_mnt/krka.internal.net/export/NetBSD/src/sys/arch/pmax/compile/UNA pmax
Using pkgsrc.tar.gz of 24-04-00.
During "make package" of kdegraphics-1.1.2 assembler goes off to la-la
land on the kfax.cpp source file (killed "as" after 200mins of CPU time).
Recompiling that particular source file with -O (instead of -O2) solves
the problem.
I have saved (what I hope are) the relevant bits and pieces (the command
line, kfax.cpp, kfax.ii and the kfax.s) in case anyone wants to take a
look at the generated assembly code.
--Nino
---
Nino Margetic <nino@well.ox.ac.uk> | http://www.well.ox.ac.uk/~nino
The Wellcome Trust Centre for Human Genetics, University of Oxford &
Centre National de Genotypage, Evry, France | mailto: <nino@cng.fr>
---
Responsible-Changed-From-To: port-pmax-maintainer->kristerw
Responsible-Changed-By: kristerw
Responsible-Changed-When: Tue Jul 4 13:02:22 PDT 2000
Responsible-Changed-Why:
I have reproduced the problem, and will fix it.
From: Krister Walfridsson <cato@df.lth.se>
To: <gnats-bugs@gnats.netbsd.org>
Cc:
Subject: Re: port-pmax/9453: compiler/assembler fails
Date: Sat, 14 Jul 2001 18:16:26 +0200 (MEST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---559023410-851401618-995127386=:22527
Content-Type: TEXT/PLAIN; charset=US-ASCII
What is happening is that the size estimate when relaxing the segments
in gas write.c:relax_segment() is osicillating between two values, and
the code is iterating until the value stabilizes (i.e. never in this
case.)
I have attached a small file that displays this behaviour (just run
'as bug.s')
The gas from binutils 2.11 does not go into a loop when assembling this
test case. The relevant code has hovever been changed (in what I think)
non-obvious ways, so I don't want to risk pulling up this in the
NetBSD-1.5 branch. The next release of NetBSD will have binutils 2.11.
/Krister
---559023410-851401618-995127386=:22527
Content-Type: APPLICATION/octet-stream; name="bug.s.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.32.0107141816260.22527@igloo.df.lth.se>
Content-Description:
Content-Disposition: attachment; filename="bug.s.gz"
H4sICIZvUDsAA2J1Zy5zAK1W308jRwx+Jn8HjwWN58fODG9HCFck2kpcq1b3
sgpkgZVIQCS09L/v7tjfxuSy0Z1UJOLJxJ/H9meP5+HuztZ3z8uX9qlZnJ5N
6vph9TZs1HcvT2/r/v9scnw9NeWTyqctn+5ssmneN2+vzdlk0bxsHrvvr+38
ofu6bN9N+aTyacun61GX593Wxev8ny8vj81rY+r6clGsXV4ZkSSynHI5K1/v
G2K01WhSaCfSiwyMtoxmW+dOo61CVyKjyMRox2jx3Gu0U+gMz4cQ2NuZZ3wn
1k2zYCudYzfNutnczFeL52Vn5W/WDazLfp93Du0qVKxQsUKEArsDtf5wiwVy
QkgKBSwQMCFiSlggGotobImGbDFHjoWNLBKLzL8ZFpE9juwxH8E+SHgdajlv
VzgAHlt4bOGxhccWHlt4bOGxhccOHjvUkCuWyRcrFIWWxH4xyedZ01rXP9PX
DZnpL+379Pnp+XXtvm7S9KK9v39bN/TH09Jml23Ksd/+tLxtm9Xm43ac/tm0
D48bap3p/uqbOP299MXiZvqXobYGUQ7ROkTrEK1DtA7ROkTrEK1HtB7ReuTR
D90Ayx6WPSx7WPZMYWJeM1OYC9AaYlHQlivLcvFYJssyH5ZTbpkLGwrcMWmO
/XJVOcil8pvnZvGs4kNR8aziswipo8x8ZblAzHcQp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HL5egV/7rfabwuvFSU1xeLOoncOFRKyus7Uc86Pw6VQvIq
qbc7N+EIUgrJKyL1ZTF+hXspJK+K53bnIt65LIaRSsNMpWGo2mGo2mGo2mGo
2mGo2mFm22Fo22Fq96vJf6QnGnyMEwAA
---559023410-851401618-995127386=:22527--
State-Changed-From-To: open->analyzed
State-Changed-By: kristerw
State-Changed-When: Fri Jul 20 06:09:46 PDT 2001
State-Changed-Why:
The problem has been analyzed (see the audit trail)
State-Changed-From-To: analyzed->closed
State-Changed-By: kristerw
State-Changed-When: Sun Jul 28 14:31:39 PDT 2002
State-Changed-Why:
This is fixed in the NetBSD 1.6 release.
>Unformatted:
(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.