Bug #36519 check-cpu fails with gcc 4.3.1
Submitted: 5 May 2008 21:39 Modified: 30 Sep 2008 7:31
Reporter: Tatiana Azundris Nuernberg Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:any OS:Any
Assigned to: Tatiana Azundris Nuernberg CPU Architecture:Any

[5 May 2008 21:39] Tatiana Azundris Nuernberg
Description:
Running BUILD/compile-pentium-debug-max in ~/mysql-6.0-bugteam ...
expr: syntax error

How to repeat:
run BUILD/whateverYourPlatform

gcc --version
gcc (SUSE Linux) 4.3.1 20080425 (prerelease) [gcc-4_3-branch revision 134659]

"^.*gcc" in

cc_verno=`echo $cc_ver | sed -e 's/^.*gcc/gcc/g; s/[^0-9. ]//g;        s/^ *//
g; s/ .*//g'`

matches all the way to the *second* occurrence of gcc in version string

version-string on apple is
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)

Suggested fix:
can't just "^.*?gcc" since ? is a GNU extension, so make it "^[^ ]*gcc"
[6 May 2008 0:40] 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/46374

ChangeSet@1.2621, 2008-05-06 02:39:47+02:00, tnurnberg@noir.wlan.koehntopp.de +1 -0
  Bug#36519: check-cpu fails with gcc 4.3.1
  
  sed-regex got confused when substring "gcc" occurred
  more than once in "gcc --version"
[30 Sep 2008 7:31] Tatiana Azundris Nuernberg
no longer seeing this issue; this ticket to be re-opened if bug shows again;
closing for now as to not waste review time : )

Please attach any updates here, not to Bug#37743