On Tuesday 27 Nov 2001 04:11, Ady Wicaksono wrote: > gcc 2.96 has bugs that affect MySQL, what bug ?
A number of bugs, and they don't just affect MySQL - there is a number of packages that break when compiled using GCC-2.96. Some examples that I presonally ran into at some point are: mPlayer InterBase DBD driver There are more, I just can't remember right now. You will find that the kernel, for example, is compiled using kgcc under RedHat v7.X. kgcc is an older version of gcc (egcs, actually) that actually works. Try kgcc --version. > RedHat 7.1 and RedHat 7.2 comes with gcc 2.96 And 7.0. 7.2 Also ships with GCC-3.0, which is actually a production release compiler, unlike the 2.96 version, which was a pre-release development snapshot. RedHat have been flamed repeatedly since the release of RH7 over this. > so even we download the source code and recompile it .... > the bug will hit MySQL, is that right ? Sometimes. YMMV. Just download GCC-2.95.2.1 and the PGCC patches, and compile it yourself. Install it under /usr/local/pgcc, and prepend /usr/local/pgcc/bin to your path, and prepend /usr/local/pgcc/lib/<architecture> to your /etc/ld.so.conf file. That works great. It also has the added bonus that there are some extra optimizations available for the i586 and the i686 CPUs. You can also go silly on the optimizer and push it as far as -O6, and actually see a difference from -O3. DO NOT use special pentium optimizations if you are running on an AMD, as PGCC will produce pentium optimized code that won't run on non-intel CPUs. Hopefully we should all start using GCC v3 soon... Regards. Gordan --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php