2001-10-24 02:26:49 +00:00
|
|
|
<HTML>
|
2002-03-07 17:55:34 +00:00
|
|
|
|
|
|
|
<HEAD>
|
|
|
|
<STYLE>
|
|
|
|
.text
|
|
|
|
{font-family : Verdana, Arial, Helvetica, sans-serif;
|
|
|
|
font-size : 14px;}
|
|
|
|
</STYLE>
|
|
|
|
</HEAD>
|
|
|
|
|
2001-10-24 02:26:49 +00:00
|
|
|
<BODY BGCOLOR=WHITE>
|
2002-03-07 17:55:34 +00:00
|
|
|
<FONT CLASS="text">
|
2001-10-24 02:55:08 +00:00
|
|
|
|
|
|
|
<P>
|
2002-03-12 12:36:00 +00:00
|
|
|
<B>Question:</B> What is GCC 2.96 ? I can't find it at the GNU site.
|
2001-10-24 02:55:08 +00:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<B>Answer:</B> Read the <A HREF="http://gcc.gnu.org/gcc-2.96.html">official answer from GNU GCC team.</A>
|
|
|
|
</P>
|
2001-10-24 02:26:49 +00:00
|
|
|
|
|
|
|
<P>
|
|
|
|
<B>Question:</B> What is the problem with GCC 2.96 ? And with 3.x ?
|
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<B>Answer:</B>
|
|
|
|
</P>
|
|
|
|
|
2002-02-05 22:01:49 +00:00
|
|
|
<P>Read in MySQL documentation :</P>
|
|
|
|
|
|
|
|
<P><I>
|
|
|
|
Compiler Advisory: Several of our users have reported random crashes and
|
|
|
|
table corruption with MySQL binaries compiled with gcc two-dot-nine-six on
|
|
|
|
the x86 Linux platform. Although we were unable to duplicate the problems
|
|
|
|
ourselves or understand their exact cause, we suspect with a great degree of
|
|
|
|
confidence that the problem was compiler related. Replacing the faulty binary
|
|
|
|
with our binary always eliminated the problem.
|
|
|
|
</I></P>
|
|
|
|
|
2001-10-24 02:26:49 +00:00
|
|
|
<P>
|
2002-03-12 12:36:00 +00:00
|
|
|
And for the people who periodically ask what the exact problems with
|
|
|
|
gcc 2.96 are, my answer: <I>We don't know exactly.</I>
|
2001-10-24 02:55:08 +00:00
|
|
|
There were various problems and new problems / bugs come up periodically.
|
2002-03-12 12:36:00 +00:00
|
|
|
It is <I>not a single bug/problem</I>. We just see various bug reports, mostly
|
2001-10-24 02:26:49 +00:00
|
|
|
gcc internal bugs, compiler syntax errors in source or bad code compiled. They
|
2002-03-12 12:36:00 +00:00
|
|
|
are all solved by using a different version of gcc. I understand that gcc 2.96
|
|
|
|
has different default optimization flags and they conflict with our inline
|
2001-10-24 02:26:49 +00:00
|
|
|
asm code, but we can't fix them, and we really don't want to fix them as they
|
|
|
|
work with other compilers or gcc versions, and the fix may cause speed loss.
|
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
2002-03-12 12:36:00 +00:00
|
|
|
I think that gcc 2.96 should be fixed to be option-compatible with other
|
|
|
|
releases, but Red Hat guys refused to do it. If someone is interested - ask
|
2001-10-24 02:26:49 +00:00
|
|
|
Eugene K., avifile author, he has a long mailing with them, because they had
|
|
|
|
the same problems with avifile. Finally he changed avifile source to
|
2002-03-12 12:36:00 +00:00
|
|
|
<I>work around</I> gcc 2.96 bugs...
|
|
|
|
We simply have no interest and time to do it.
|
2001-10-24 02:26:49 +00:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
Ah, and about the pipe-in-comment bug: it wasn't really our bug.
|
2002-03-12 12:36:00 +00:00
|
|
|
I've talked to one of the gcc maintainers, and he told me that gcc 2.96 and 3.x
|
|
|
|
support Intel asm syntax, and it caused the pipe bug. But it <I>is</I> a bug,
|
2001-11-14 22:29:55 +00:00
|
|
|
because gcc <I>silently</I>, without any warning, ignored the whole asm block!
|
2001-10-24 02:26:49 +00:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
2002-03-12 12:36:00 +00:00
|
|
|
Other gcc 3.x problems come from a broken libstdc++ or glibc header (std_*.h)
|
2001-10-24 02:26:49 +00:00
|
|
|
installation. They are not our fault. MPlayer compiles and works well with
|
2002-03-09 14:09:27 +00:00
|
|
|
gcc 2.95.3 (<B>MEncoder</B> won't work with 2.95.2 because it miscompiles
|
|
|
|
some MMX instructions). <B>2.96 and 3.0.x are broken</B>, but it depends on
|
|
|
|
many environment elements, including gcc 2.96 release number, enabled mplayer
|
|
|
|
features, etc. <I>If it works for you using gcc 2.96, it doesn't mean it will
|
|
|
|
work for everyone.</I>
|
2001-10-24 02:26:49 +00:00
|
|
|
</P>
|
|
|
|
|
2001-11-21 17:07:40 +00:00
|
|
|
<P><B>Answer 2:</B></P>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
Also read <A HREF="users_against_developers.html">this</A> text !!!</P>
|
|
|
|
|
2001-10-24 02:55:08 +00:00
|
|
|
<P>
|
2002-03-09 14:09:27 +00:00
|
|
|
<B>Question:</B> No! You are wrong! Everything works with gcc 2.96 <I>but</I> MPlayer !
|
2001-10-24 02:55:08 +00:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<B>Answer:</B>
|
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
No. You are wrong!
|
2002-03-12 12:36:00 +00:00
|
|
|
Several projects (mostly those which contain highly optimized inline asm code)
|
|
|
|
had problems with gcc 2.96, for example: avifile, MESA / DRI, Wine, ffmpeg,
|
|
|
|
lame, NuppelVideo, MySQL. But other projects already worked around gcc bugs
|
2002-03-09 14:09:27 +00:00
|
|
|
(changed code which triggered compiler bugs) so they work for now.
|
2001-10-24 02:55:08 +00:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
2002-03-09 14:09:27 +00:00
|
|
|
<B>Question:</B> No! You are wrong! Everything works with gcc 2.96 <I>including</I> MPlayer .
|
2001-10-24 02:55:08 +00:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<B>Answer:</B>
|
|
|
|
</P>
|
|
|
|
|
|
|
|
Good. Be happy. But you must know, it depends on many environment
|
|
|
|
elements, including gcc 2.96 release number, enabled mplayer features, etc.
|
|
|
|
<I>If it works for you using gcc 2.96, it doesn't mean it will work for everyone!</I>
|
|
|
|
It only means that you are lucky, until you find a problem. But don't forget the
|
2002-03-09 14:09:27 +00:00
|
|
|
<B>No.1 rule of gcc 2.96 users: NEVER REPORT BUGS OR PROBLEMS IF YOU ARE USING GCC 2.96</B> !
|
2001-10-24 02:55:08 +00:00
|
|
|
|
|
|
|
<P>
|
2002-03-12 12:36:00 +00:00
|
|
|
<B>Question:</B> OK. Understood. But I want to give it a try... how to compile with gcc 2.96?
|
2001-10-24 02:55:08 +00:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
2002-03-12 12:36:00 +00:00
|
|
|
<B>Answer:</B> Really? Are you sure? OK. You know... here it is: ./configure --disable-gcc-checking
|
2001-10-24 02:55:08 +00:00
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<B>Question:</B> No! I don't agree with you, because ...
|
|
|
|
</P>
|
|
|
|
|
|
|
|
<P>
|
2002-03-09 14:09:27 +00:00
|
|
|
<B>Answer:</B> It doesn't matter. Keep your comments to yourself. We're not interested in gcc 2.96 stories.
|
2001-10-24 02:55:08 +00:00
|
|
|
</P>
|
|
|
|
|
|
|
|
</FONT>
|
2001-10-24 02:26:49 +00:00
|
|
|
</BODY>
|
|
|
|
</HTML>
|