Subject: pkg/25880: devel/cpuflags makes a wrong result.
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <yui@yui.pe.kr>
List: pkgsrc-bugs
Date: 06/09/2004 01:33:59
>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.
>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:
>Unformatted: