Bug #27526 BUILD/check_cpu misbehaving on Debian testing
Submitted: 29 Mar 2007 15:03 Modified: 19 Feb 2009 19:10
Reporter: Hartmut Holzgraefe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0bk, 5.1bk OS:Any
Assigned to:
Triage: D3 (Medium)

[29 Mar 2007 15:03] Hartmut Holzgraefe
Description:
on current Debian testing (AMD64) BUILD/check-cpu fails with

  expr: syntax error
  BUILD/check-cpu: line 189: test: : integer expression expected

so breaking all BUILD/compile-... scripts

problem is caused by the compiler version string:

  gcc.real (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

check-cpu is not clever enough to parse "gcc.real" instead of the usual "gcc"

How to repeat:
try BUILD/check-cpu or BUILD/compile-...  on latest debian testing

Suggested fix:
make check-cpu more clever, e.g. check for "(GCC)" instead of "gcc" in the version number extraction pattern

the gcc / gcc.real in the version string is the file name of the binary which can change, the "(GCC)" string seems to be constant though
[29 Mar 2007 15:06] 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/23318

ChangeSet@1.2421, 2007-03-29 17:10:07+02:00, hartmut@mysql.com +1 -0
  more clever gcc version checking (Bug #27526)
[18 Aug 2008 17:29] 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/51874

2668 Chad MILLER	2008-08-18
      Bug#27526: BUILD/check_cpu misbehaving on Debian testing
      
      more clever gcc version checking.
[18 Aug 2008 17:38] Chad MILLER
Queued to 5.0, 5.1, 6.0 -bugteam.
[18 Aug 2008 17:39] 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/51878

2668 Chad MILLER	2008-08-18
      Bug#27526: BUILD/check_cpu misbehaving on Debian testing
      
      more clever gcc version checking.
[21 Aug 2008 18:10] Bugs System
Pushed into 5.1.28  (revid:chad@mysql.com-20080818172846-6h1xy34jlnew5n3i) (version source revid:sergefp@mysql.com-20080819132519-eimtstp3bx89ya9d) (pib:3)
[25 Aug 2008 20:06] Paul Dubois
Noted in 5.1.28 changelog.

The BUILD/check-cpu build script failed if gcc had a different name
(such as gcc.real on Debian).

Setting report to NDI pending push of fix to 5.0.x, 6.0.x.
[12 Sep 2008 1:44] 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/53909

2682 He Zhenxing	2008-09-12 [merge]
      Auto merge
      Update plugin.h.pp for WL#4398
[13 Sep 2008 23:22] Bugs System
Pushed into 6.0.7-alpha  (revid:chad@mysql.com-20080818172846-6h1xy34jlnew5n3i) (version source revid:john.embretsen@sun.com-20080808091208-ht48kyzsk7rim74g) (pib:3)
[16 Sep 2008 4:29] Paul Dubois
Noted in 6.0.7 changelog.

Setting report to NDI pending push into 5.0.x.
[30 Sep 2008 13:26] 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/54774

2667 He Zhenxing	2008-09-29 [merge]
      Auto Merge
[19 Feb 2009 19:10] Paul Dubois
Noted in 5.0.70 changelog.