GCC 2.96 compilation error

Hi,

I tried yesterday to compile an app by using my gcc whis is a 2.96. And
I got a message while configuring compilation which told me that gcc
2.96 is an awful RedHat version of gcc whih is full of bug. The
configure told me either to downgrade it or upgrade it up to the gcc
v3.0.

Then I wonder if SDL could really be affected and how far it could be.
Maybe some errors could come from that.

Is SDL tested with several gcc version or not ?

Bye
Lawouach

Hi,

I tried yesterday to compile an app by using my gcc whis is a 2.96. And
I got a message while configuring compilation which told me that gcc
2.96 is an awful RedHat version of gcc whih is full of bug. The
configure told me either to downgrade it or upgrade it up to the gcc
v3.0.

Then I wonder if SDL could really be affected and how far it could be.
Maybe some errors could come from that.

Is SDL tested with several gcc version or not ?

gcc 2.96 isn’t an official release version, it does not produce binary
compatible code with 2.95 or with 3.0. This will be a problem if you plan
to produce libraries. Also note that 2.96 is a development version (it is
a GNU version, not a redhat version though… redhat just happens to ship
with it), yes, it has bugs that you may encounter while developing
applications. Upgrade to 3.0 or to 2.95.

Jp CalderoneOn Wed, 3 Oct 2001, sylvain.hellegouarch at etud.univ-ubs.fr wrote:

Binaries from C code are fully compatible to 2.95/3.0. But C++ code is
broken. But gcc 3.0 also breaks C++ code.

But SDL is plain C and shouldnt be a problem. I also compiled SDL with
gcc 2.96 (Mandrake 8.0) and it worked out of the box.

What’s exactly the problem ?
Code in SDL or code in the application making gcc barf ?

AlexAm Mit, 2001-10-03 um 07.57 schrieb 1002110265:

On Wed, 3 Oct 2001, sylvain.hellegouarch at etud.univ-ubs.fr wrote:

Hi,

I tried yesterday to compile an app by using my gcc whis is a 2.96. And
I got a message while configuring compilation which told me that gcc
2.96 is an awful RedHat version of gcc whih is full of bug. The
configure told me either to downgrade it or upgrade it up to the gcc
v3.0.

Then I wonder if SDL could really be affected and how far it could be.
Maybe some errors could come from that.

Is SDL tested with several gcc version or not ?

gcc 2.96 isn’t an official release version, it does not produce binary
compatible code with 2.95 or with 3.0. This will be a problem if you plan
to produce libraries. Also note that 2.96 is a development version (it is
a GNU version, not a redhat version though… redhat just happens to ship
with it), yes, it has bugs that you may encounter while developing
applications. Upgrade to 3.0 or to 2.95.

Alexander Pipelka wrote:

Hi,

I tried yesterday to compile an app by using my gcc whis is a 2.96. And
I got a message while configuring compilation which told me that gcc
2.96 is an awful RedHat version of gcc whih is full of bug. The
configure told me either to downgrade it or upgrade it up to the gcc
v3.0.

Then I wonder if SDL could really be affected and how far it could be.
Maybe some errors could come from that.

Is SDL tested with several gcc version or not ?

gcc 2.96 isn’t an official release version, it does not produce binary
compatible code with 2.95 or with 3.0. This will be a problem if you plan
to produce libraries. Also note that 2.96 is a development version (it is
a GNU version, not a redhat version though… redhat just happens to ship
with it), yes, it has bugs that you may encounter while developing
applications. Upgrade to 3.0 or to 2.95.

Binaries from C code are fully compatible to 2.95/3.0. But C++ code is
broken. But gcc 3.0 also breaks C++ code.

But SDL is plain C and shouldnt be a problem. I also compiled SDL with
gcc 2.96 (Mandrake 8.0) and it worked out of the box.

What’s exactly the problem ?
Code in SDL or code in the application making gcc barf ?

Alex

The problem didn’t come with SDL stuff but the application i tested.
Anyway I just wondered if it was possible that gcc 2.96 could come with
problem.

Thanx for your answer
Bye
Lawouach> Am Mit, 2001-10-03 um 07.57 schrieb 1002110265:

On Wed, 3 Oct 2001, @Sylvain.Hellegouarch wrote:

Hi,

I tried yesterday to compile an app by using my gcc whis is a 2.96. And
I got a message while configuring compilation which told me that gcc
2.96 is an awful RedHat version of gcc whih is full of bug. The
configure told me either to downgrade it or upgrade it up to the gcc
v3.0.

SDL is tested by those folks who use it and post bug reports g So it’s
probably tested on -lots- of gcc versions…

and my experiences:

gcc 2.95 - crashes -frequently- on my machine with either 2.2 or sometimes
2.4 kernel. So I upgraded. (it only crashed compiling big apps like the
linux kernel or the like - not SDL. Must be to do with complexity as
SDL’s kept pretty clean on the per-module level :slight_smile: (and by frequently,
when compiling linux kernel it would segfault every 2-5 files)

gcc 2.96 - Finally got fedup with mplayer complaining. No app I compiled
broke with this in a -long- time. Not even ACE+TAO. And that’s a 2-day
5gig HD + 700mbRAM C++ compile. (and besides RPMS for gcc 3 under
Mandrake -finally- came out)

gcc 3.0.1 - just starting with this. Can’t convince it to make a
cross-compiler for gameboy advanced (to help my brother who’s working for
a company doing exactly this on a casual level :slight_smile: Works fine with SDL and
everything else I’ve tried (haven’t tried linux kernel yet)

I’m afraid while I understand the idea of gcc 2.96 as being buggy, it
hasn’t been a problem for me and it solved a bunch of problems with 2.95.

G’day, eh? :slight_smile:
- TeunisOn Wed, 3 Oct 2001, sylvain.hellegouarch at etud.univ-ubs.fr wrote:

Hi,

I tried yesterday to compile an app by using my gcc whis is a 2.96. And
I got a message while configuring compilation which told me that gcc
2.96 is an awful RedHat version of gcc whih is full of bug. The
configure told me either to downgrade it or upgrade it up to the gcc
v3.0.
I found the same warning compiling mplayer. They recommend use 2.95, not
2.96 or 3.0. But mplayer seems to work fine, even compiled with gcc 2.96.
I have used gcc 2.95 to compile my SDL apps and I haven’t found a problem
yet.On Wed, 3 Oct 2001, sylvain.hellegouarch at etud.univ-ubs.fr wrote:

Roger D. Vargas
ICQ: 117641572
Linux User: 180787

What i’ve heard is that GCC 2.95.x have problems with math
precision, GCC 2.96 have problems when compiling certain things in
the kernel (like sound modules), and that GCC 3.x is great. Upgrade =)–
Trick


Linux User #229006 * http://counter.li.org