Bug #30356 | gcc-compile fails if used with option "-mcpu=970" or "-mcpu=G5" | ||
---|---|---|---|
Submitted: | 10 Aug 2007 11:38 | Modified: | 18 Dec 2008 9:56 |
Reporter: | D. Giffeler | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.0.45, 5.1.22-rc | OS: | MacOS (10.4.10 Server) |
Assigned to: | Guilhem Bichot | CPU Architecture: | Any |
Tags: | G5, gcc, mcpu, ppc970 |
[10 Aug 2007 11:38]
D. Giffeler
[10 Aug 2007 12:37]
Sveta Smirnova
Thank you for the report. I can not repeat described behaviour in myself environment. Please indicate which processor do you have.
[10 Aug 2007 12:51]
D. Giffeler
Hardware Overview: Machine Name: Xserve G5 Machine Model: RackMac3,1 CPU Type: PowerPC G5 (3.0) Number Of CPUs: 1 CPU Speed: 2 GHz L2 Cache (per CPU): 512 KB Memory: 2 GB Bus Speed: 1 GHz Boot ROM Version: 5.1.7f2
[11 Aug 2007 15:35]
D. Giffeler
By the way: I had no problems compiling other sources like PHP 5.2.3 with the gcc-option -mcpu=G5.
[12 Aug 2007 16:55]
Davi Arnaut
Some old headers of Apple's gcc may define the bool type when altivec is disabled (#define bool bool), causing include/my_global.h to not define bool. IMHO, we should always undef bool (so it won't collide with my_bool) and replace all occurrences of bool with my_bool in mysys files.
[27 Aug 2007 20:41]
Sveta Smirnova
Thank you for the report. Verified as described.
[28 Oct 2007 13:52]
Valeriy Kravchuk
Bug #31367 was marked as a duplicate of this one. It has a contributed idea about possible fix.
[26 Feb 2008 17:59]
Guilhem Bichot
Coincidence, this was fixed by me in the Maria tree and the 5.1-build tree: ChangeSet@1.2532, 2008-02-19 18:45:11+01:00, guilhem@gbichot4.local +5 -0 fixes for build failures due to my yesterday's changeset forbidding bool in C.
[18 Dec 2008 9:56]
Guilhem Bichot
fixed in 5.1 since a few months: revno: 2531 revision-id: sp1r-guilhem@gbichot4.local-20080218223657-33278 parent: sp1r-tsmith@ramayana.hindu.god-20080218192531-43561 parent: sp1r-guilhem@gbichot4.local-20080218222939-48852 committer: guilhem@gbichot4.local timestamp: Mon 2008-02-18 23:36:57 +0100 message: Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-5.1-build into gbichot4.local:/home/mysql_src/mysql-5.1-build-gca ------------------------------------------------------------ revno: 2512.11.1 revision-id: sp1r-guilhem@gbichot4.local-20080218222939-48852 parent: sp1r-mkindahl@dl145h.mysql.com-20080205123157-59005 committer: guilhem@gbichot4.local timestamp: Mon 2008-02-18 23:29:39 +0100 message: Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name> value" error even though the value was correct): a C function in my_getopt.c was taking bool* in parameter and was called from C++ sql_plugin.cc, but on some Mac OS X sizeof(bool) is 1 in C and 4 in C++, giving funny mismatches. Fixed, all other occurences of bool in C are removed, future ones are blocked by a "C-bool-catcher" in my_global.h (use my_bool). and merged into 6.0 a few months ago too.