Bug #17707 check-cpu script doesn't include Turion
Submitted: 24 Feb 2006 19:30 Modified: 11 Jun 2007 14:47
Reporter: Peter Gulutzan
Status: Closed
Category:Server: Compiling Severity:S3 (Non-critical)
Version:4.1,5.0, 5.1,5.1-telco OS:Linux (SUSE 10.X / x86_64)
Assigned to: Daniel Fischer Target Version:
Tags: check-cpu, amd64, compiling, build_scripts

[24 Feb 2006 19:30] Peter Gulutzan
Description:
I have a new computer with an AMD Turion 64-bit chip.
BUILD/compile-pentium64-debug-max fails, saying:
BUILD/check-cpu: Oops, could not find out what kind of cpu this machine is using

Turions are common, so I shouldn't need to add these
lines in BUILD/check-cpu: 
"
  *Turion*)
    cpu_arg="athlon64";
    ;;
"

How to repeat:
pgulutzan@linux:~/mysql-5.1-new> cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 36
model name      : AMD Turion(tm) 64 Mobile Technology ML-30
stepping        : 2
cpu MHz         : 800.046
cache size      : 1024 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm
bogomips        : 1601.89
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

pgulutzan@linux:~/mysql-5.1-new> BUILD/compile-pentium64-debug
BUILD/check-cpu: Oops, could not find out what kind of cpu this machine is using.
...
[25 Feb 2006 22:52] Valeriy Kravchuk
Thank you for a problem report. Verified just as described.
[2 Mar 2006 20:30] Peter Gulutzan
I feel odd setting this bug to "Can't Repeat",
since I'm the guy who reported it. But after
I pulled the latest MySQL-5.1 source files
today, I can't make the build fail any more.
Those who are familiar with the tale of The
Shoemaker And The Elves will know the
feeling.
[18 Mar 2007 7:36] Jon Stephens
check-cpu fails to detect CPU with my AMD64/Turion:

jon@biollante:~/bk/mysql-4.1> BUILD/check-cpu
BUILD/check-cpu: Oops, could not find out what kind of cpu this machine is using.

jon@biollante:~/bk/mysql-5.0> BUILD/check-cpu
BUILD/check-cpu: Oops, could not find out what kind of cpu this machine is using.

jon@biollante:~/bk/mysql-5.1> BUILD/check-cpu
BUILD/check-cpu: Oops, could not find out what kind of cpu this machine is using.

jon@biollante:~/bk/mysql-5.1-telco> BUILD/check-cpu
BUILD/check-cpu: Oops, could not find out what kind of cpu this machine is using.

jon@biollante:~/bk/mysql-5.1> cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 76
model name      : AMD Turion(tm) 64 Mobile Technology MK-36
stepping        : 2
cpu MHz         : 2000.000
cache size      : 512 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow up pni cx16
lahf_lm svm cr8_legacy
bogomips        : 4004.27
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

Doesn't prevent build, but the CPU is common enough that it ought to be recognised, no?
[29 May 2007 12:26] Daniel Fischer
Turion and Opteron should use athlon64 (same as k8).
[29 May 2007 12:30] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/27550

ChangeSet@1.2655, 2007-05-29 12:23:49+02:00, df@pippilotta.erinye.com +1 -0
  BUG#17707 check-cpu script doesn't include Turion
[30 May 2007 18:09] Daniel Fischer
Queued for inclusion in 5.0 and 5.1.

This will not be fixed in 4.1 because it is only S3.
[11 Jun 2007 13:39] Bugs System
Pushed into 5.1.20-beta
[11 Jun 2007 13:42] Bugs System
Pushed into 5.0.44
[11 Jun 2007 14:47] Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of
that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version,
including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html

Documented fix in 5.0.44 and 5.1.20 changelogs.

(Also verified on my own Turion machine.)