LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2005, 04:46 PM   #1
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
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.



Last edited by slantoflight; 08-31-2005 at 04:48 PM.
 
Old 08-31-2005, 05:31 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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

Last edited by ilikejam; 08-31-2005 at 05:33 PM.
 
Old 08-31-2005, 07:12 PM   #3
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283

Original Poster
Blog Entries: 3

Rep: Reputation: 35
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.
 
Old 08-31-2005, 07:21 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 4 x86_64 on a Shuttle XPC SN25P with an AMD 64 X2 (Dual core) gwiesenekker Linux - Hardware 4 12-06-2005 11:53 PM
compile( gcc-g77) fortran with fedora core 3 gambato79 Programming 1 05-06-2005 12:49 PM
i386 compile with fedora-core3 x86_64? markelo Programming 7 04-15-2005 11:59 AM
Fedora Core 3 X86_64 toasted from apt Clark Bent Linux - Laptop and Netbook 1 03-05-2005 07:35 PM
Fedora Core 3 x86_64 RPMs Chebyshev Fedora 0 11-09-2004 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration