NetBSD Problem Report #25880
Received: (qmail 1022 invoked by uid 605); 9 Jun 2004 01:34:01 -0000
Message-Id: <20040609013359.0522A11152@narn.netbsd.org>
Date: Wed, 9 Jun 2004 01:33:59 +0000 (UTC)
From: yui@yui.pe.kr
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: yui@yui.pe.kr
To: gnats-bugs@gnats.NetBSD.org
Subject: devel/cpuflags makes a wrong result.
X-Send-Pr-Version: www-1.0
>Number: 25880
>Category: pkg
>Synopsis: devel/cpuflags makes a wrong result.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 09 01:35:00 +0000 2004
>Closed-Date: Wed Jun 09 20:52:03 +0000 2004
>Last-Modified: Wed Jun 09 20:53:00 +0000 2004
>Originator: Kibum Han
>Release: 2.0F
>Organization:
n/a
>Environment:
NetBSD caspar 2.0F NetBSD 2.0F (YUIKERNEL) #1: Mon May 31 13:43:37 KST 2004 root@caspar:/usr/obj/sys/arch/i386/compile/YUIKERNEL i386
>Description:
devel/cpuflags is slightly modified two days ago and that change causes some problems.
1) before modification
# cpuflags
-march=athlon
2) after modification
# cpuflags
-march=pentium3 -mno-sse
my machine is athlon thunderbird.
>How-To-Repeat:
in i386 machine, make install "devel/cpuflags" and do:
# cpuflags
>Fix:
--- cpuflags.orig 2004-06-09 10:28:25.000000000 +0900
+++ cpuflags 2004-06-09 10:31:40.000000000 +0900
@@ -75,6 +75,7 @@
*AMD\ K6-2*) FLAGS='-march=k6-2' ;;
*AMD\ K6*) FLAGS='-march=k6' ;;
*AMD\ Duron*) FLAGS='-march=athlon' ;;
+ *AMD\ Athlon*Thunderbird*) FLAGS='-march=athlon-tbird' ;;
*AMD\ Athlon\ 4*) FLAGS='-march=athlon-4' ;;
*AMD\ Athlon\ MP*) FLAGS='-march=athlon-mp' ;;
*AMD\ K7\ \(Athlon\)\ XP\ *) FLAGS='-march=athlon-xp' ;;
@@ -85,7 +86,6 @@
*586-class*) FLAGS='-march=pentium' ;;
*686-class*) FLAGS='-march=pentiumpro' ;;
esac
- FLAGS='-march=pentium3 -mno-sse'
;;
m68k) case $hw_model in # Examples
>Release-Note:
>Audit-Trail:
From: Quentin Garnier <quentin@eve-team.com>
To: yui@yui.pe.kr
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25880: devel/cpuflags makes a wrong result.
Date: Wed, 9 Jun 2004 08:15:47 +0200
On Wed, 9 Jun 2004 01:33:59 +0000 (UTC)
yui@yui.pe.kr wrote:
>
> >Number: 25880
> >Category: pkg
> >Synopsis: devel/cpuflags makes a wrong result.
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Wed Jun 09 01:35:00 UTC 2004
> >Closed-Date:
> >Last-Modified:
> >Originator: Kibum Han
> >Release: 2.0F
> >Organization:
> n/a
> >Environment:
> NetBSD caspar 2.0F NetBSD 2.0F (YUIKERNEL) #1: Mon May 31 13:43:37 KST
> 2004 root@caspar:/usr/obj/sys/arch/i386/compile/YUIKERNEL i386
> >Description:
> devel/cpuflags is slightly modified two days ago and that change
> causes some problems.
>
> 1) before modification
> # cpuflags
> -march=athlon
>
> 2) after modification
> # cpuflags
> -march=pentium3 -mno-sse
>
> my machine is athlon thunderbird.
And what exactly does 'sysctl hw.model' say about your CPU?
> @@ -85,7 +86,6 @@
> *586-class*) FLAGS='-march=pentium'
> ;;
> *686-class*) FLAGS='-march=pentiumpro'
> ;;
> esac
> - FLAGS='-march=pentium3 -mno-sse'
> ;;
>
> m68k) case $hw_model in # Examples
Obviously this line should not have been committed, but since it might
be interesting to add support for athlon-tbird, I'll wait for more info.
Quentin Garnier.
From: "Kibum Han" <yui@yui.pe.kr>
To: "Quentin Garnier" <quentin@eve-team.com>
Cc: <gnats-bugs@gnats.NetBSD.org>
Subject: Re: pkg/25880: devel/cpuflags makes a wrong result.
Date: Thu, 10 Jun 2004 01:56:56 +0900
----- Original Message -----
From: "Quentin Garnier" <quentin@eve-team.com>
[...]
> And what exactly does 'sysctl hw.model' say about your CPU?
# sysctl -n hw.model
AMD Athlon Model 4 (Thunderbird) (686-class)
[...]
> Obviously this line should not have been committed, but since it might
> be interesting to add support for athlon-tbird, I'll wait for more info.
I agree that tbird support needs some time to be commited,
but how about rolling-back the following chage.
(copied from
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/cpuflags/files/cpuflags.NetBSD.diff?r1=1.48&r2=1.49)
@@ -83,7 +84,9 @@ case $hw_machine_arch in
*486-class*) FLAGS='-march=i486' ;;
*586-class*) FLAGS='-march=pentium' ;;
*686-class*) FLAGS='-march=pentiumpro' ;;
- esac ;;
+ esac
+ FLAGS='-march=pentium3 -mno-sse'
+ ;;
That makes cpuflags result of i386 machine always be
'-march=petium3 -mno-sse'.
State-Changed-From-To: open->closed
State-Changed-By: cube
State-Changed-When: Wed Jun 9 20:51:41 UTC 2004
State-Changed-Why:
Fixed in version 0.71.
From: Quentin Garnier <cube@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/25880 CVS commit: pkgsrc
Date: Wed, 9 Jun 2004 20:51:11 +0000 (UTC)
Module Name: pkgsrc
Committed By: cube
Date: Wed Jun 9 20:51:11 UTC 2004
Modified Files:
pkgsrc/devel/cpuflags: Makefile
pkgsrc/devel/cpuflags/files: cpuflags.NetBSD
pkgsrc/doc: CHANGES
Log Message:
Remove an obvious left over from a test. Fixes PR 25880.
To generate a diff of this commit:
cvs rdiff -r1.73 -r1.74 pkgsrc/devel/cpuflags/Makefile
cvs rdiff -r1.49 -r1.50 pkgsrc/devel/cpuflags/files/cpuflags.NetBSD
cvs rdiff -r1.6189 -r1.6190 pkgsrc/doc/CHANGES
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.