LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   need to uninstall gcc 2.96 then install newer? (https://www.linuxquestions.org/questions/linux-general-1/need-to-uninstall-gcc-2-96-then-install-newer-344016/)

ginda 07-17-2005 01:01 PM

need to uninstall gcc 2.96 then install newer?
 
need to compile mplayer for fedora core 4....it states that they dont support this version of gcc. How shall i go about doing this? how can i uninstall gcc 2.96 then install gcc latest

foo_bar_foo 07-17-2005 02:04 PM

you really can't
you can try to compile newest gcc4 in some safe place like --prefix=/opt/gcc4 though
but remember you will be compiling gcc4 with gcc2 so do "make bootstrap" not just "make"

gcc is not reverse compatable so you really don't want to uninstall your core compiler

seems like the best solution is to actually compile it on FC4 instead of your very old system
you got more outated stuff to deal with than just gcc there so even if you succeed with gcc4 the mplayer still won't work unless you copy libs i bet

ginda 07-17-2005 02:22 PM

Sorry i didnt read the message properley....heres what i get when i try to compile mplayer



[root@localhost MPlayer-1.0pre7]# ./configure --enable-gui
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.0.0, bad
Checking for gcc version ... 4.0.0, bad
Checking for gcc-3.4 version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... 4.0.0, bad

*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***

You are not using a supported compiler. We do not have the time to make sure
everything works with compilers other than the ones we use. Use either the
same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3.x version!

Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
mplayer and lame (which is used for mencoder). If you get compile errors,
first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
bugs!

GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !

*** For details please read DOCS/HTML/en/users-vs-dev.html ***


Error: Bad gcc version

Check "configure.log" if you do not understand why it failed.

btmiller 07-17-2005 03:16 PM

I'm really not sure why the Fedora people made gcc4 the compiler in FC4 -- it's still pretty new and there's some amount of stuff it doesn't work correctly with (mostly shoddily written programs that use nonstandard language features). I've run into this myself. Anuhow, I would suggest looking for a gcc3 package in FC4 )via yum or on your CDs) and if you can find one, try compiling a gcc 3 in /opt/gcc3 or some other out of the way place and setting the CC environment variable to point to /opt/gcc3/bin/gcc.


All times are GMT -5. The time now is 11:34 PM.