Bug #46383 BUILD/compile-amd64-max does not generate 64 bit binaries
Submitted: 25 Jul 2009 10:29 Modified: 12 Dec 2011 17:36
Reporter: Mikiya Okuno Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.36, 5.1.38-bzr OS:MacOS (Darwin myhost.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-)
Assigned to: CPU Architecture:Any

[25 Jul 2009 10:29] Mikiya Okuno
Description:
BUILD/compile-amd64-max generates 32 bit binaries instead of 64 bit ones. It happens on Mac OS X only. I guess check-cpu doesn't work correctly on Mac OS X.

How to repeat:
Compile MySQL using BUILD/compile-amd64-max.

Suggested fix:
no idea
[25 Jul 2009 16:11] Valeriy Kravchuk
Workaround is: don't use BUILD/* scripts, use your own ./configure command lines, and set CFLAGS and CXXFLAGS to include -m64.
[12 Dec 2011 17:36] Joerg Bruehe
1) There are problems with OS X which doesn't clearly identify
   whether the CPU is 32 or 64 bit, causing some hacks in the
   release build process, too. This here is just another symptom.

2) The "BUILD/compile-*" scripts are not maintained by anybody,
   no officially supported scripts, just remnants of somebody trying.

3) What Valeriy called a "workaround" is indeed the proper way.

4) With the switch from autotools to cmake in 5.5, the situation
   has changed anyways.

=> This will probably never be looked at and handled.
   So I set "Won't fix".