LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GCC 2.95.3 won't compile, Fedora Core 4 x86_64 (https://www.linuxquestions.org/questions/linux-software-2/gcc-2-95-3-wont-compile-fedora-core-4-x86_64-a-358939/)

slantoflight 08-31-2005 04:46 PM

GCC 2.95.3 won't compile, Fedora Core 4 x86_64
 
Having a slight problem here. I want to compile mplayer. Mplayer wants to be compiled using gcc 2.95.3. Fine. I goto the gcc website, download the source.
I did an 'everything' install of fedora core 4, so i definitely have a version of the gcc compiler installed. I read up on the gcc site, I CAN have multiple versions GCC installed. It recommends I have each version of gcc installed into its own folder, blah blah blah. Simple enough. I run these commands in the source code directory.

mkdir gbuild
cd gbuild

../configure --prefix=/usr/local/gcc-2.95.3

It tells me x86_64 is not recognized.

But wait, what if I.. (ala Quake3 fix)


linux32 ../configure --prefix=/usr/local/gcc-2.95.3

Everything goes fine or atleast appears to until I run

make bootstrap

then I get this

/tmp/cciAjLKP.s: Assembler messages:
/tmp/cciAjLKP.s:271: Error: suffix or operands invalid for `push'
/tmp/cciAjLKP.s:274: Error: suffix or operands invalid for `push'
/tmp/cciAjLKP.s:275: Error: suffix or operands invalid for `push'
/tmp/cciAjLKP.s:294: Error: suffix or operands invalid for `pop'
/tmp/cciAjLKP.s:295: Error: suffix or operands invalid for `pop'
/tmp/cciAjLKP.s:297: Error: suffix or operands invalid for `pop'
make[2]: *** [libgcc2.a] Error 1
make[2]: Leaving directory `/home/jnl/Desktop/linstuff/old_gcc/gcc-2.95.3/gbuild/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/home/jnl/Desktop/linstuff/old_gcc/gcc-2.95.3/gbuild/gcc'
make: *** [bootstrap] Error 2

My best guess is gcc 4.0. can't compile 2.95.3 and I might have to really on rpms. But I can't install 2.95.3 with gcc 4.0 using an rpm or if I can I don't know how. I really don't want to through the tedium of uninstalling gcc 4.0 if I can avoid it. And I don't want to compile Mplayer with gcc 4.0 because it warns me I'll have bugs. I don't to use the Mplayer rpm either(last time I tried that gmplayer refused to work no matter what I tried), besides I'm curious because atleast someone out there knows how to compile this and I don't.


:(

ilikejam 08-31-2005 05:31 PM

Hi.

If you did an 'everything' install, then you'll have the compat-gcc32 package installed, which contains GCC3.2. MPlayer compiles fine with this.

This being the case, in your MPlayer main directory do:
Code:

export CC=gcc32
export CXX=g++32
./configure --your --custom --configure --options
make
make install

Actually, having thought about it, doesn't MPlayer compile OK with GCC4 anyway? Did you try just doing ./configure; make; make install ?

Dave

slantoflight 08-31-2005 07:12 PM

well i guess i was a little bit concerned. I know I can do a --disable-gcc-checking. But theres this big message saying
compile with 2.95.3 or else! Its pretty scary sounding if you read it.

ilikejam 08-31-2005 07:21 PM

Fear not. I've been ignoring messages like that for years.

GCC 3.2 is absolutely fine for MPlayer (and GCC 4 compiles the latest MPlayer CVS version fine too, I don't know about the stable releases, though).

Try the normal procedure first. The most likely thing that will happen with GCC 4 is that MPlayer will refuse to compile. If that happens, do the 'export' lines from post #2, then configure and make MPlayer again. I've never needed the --disable-gcc-checking flag.

Dave


All times are GMT -5. The time now is 12:20 PM.