LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-10-2005, 05:32 PM   #1
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Rep: Reputation: 30
HELP: downgrading FC4 to FC3 woes :S


Hmm. I did a clean install of FC4. Didn't like it that much because it couldn't compile icculus.org Duke3D linux port. I remember it compiled fine with FC3. So I decided to clean install FC3 again. But something strange happens. After a successful install, and a reboot, all it does is stay at GRUB2 loading... (or something like that). A bug? A bug when trying to override FC4 grub? How to fix? Do I use a rescue CD like Knoppix and try to fix grub from there? How do I get write access via Knoppix?


UPDATE EDITED:

I just installed FC3 with full Development Applications (gcc, etc.). Then I used apt/synaptic to update all my installed programs. That includes updating gcc, etc. to gcc-3.4.4-2.fc3 (which I think is the last version for fc3).

I compiled icculus Duke3D and it compiled superbly with hardly any warnings and no errors.

So basically FC4 contains gcc-4.x.x. Why is version 4 so different to version 3. And shouldn't version 4 be backwards compatible with version 3 gcc?

Last edited by kevingpo; 09-11-2005 at 10:21 AM.
 
Old 09-10-2005, 08:10 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
If it is a clean install, then you erased the data on the previous partitions. Chances are your install CDs for FC3 have a small flaw. If you really think it is something to do with overwriting FC4 things - then reformat the entire drive first.

Have you seen: http://www.icculus.org/duke3d/
This runs natively in linux now.

Note: some things will not compile in FC4 even though it was fine in FC3. This happens because the sourc code was written for an early version of gcc, which has multiply depreciated ... well... lots! To overcome this, FC4 shipps with a legacy gcc version (gcc32) which you should use instead. (There will usually be an option in the configure or the top make file which lets you select which compiler to use.)

FYI:
www.fedorafaq.org
www.mjmwired.org
 
Old 09-11-2005, 06:18 AM   #3
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Yes, that icculus Duke3D port is the one I tried compiling under FC4 but didn't work.

Please tell me more about gcc32. Do I just go through the Makefile replacing gcc with gcc32?
 
Old 09-11-2005, 07:59 AM   #4
whencat
Member
 
Registered: Aug 2003
Location: Pondicherry,India
Distribution: Fedora Core 3, RedHat 9.0, SUSE 8.1 Personal,
Posts: 49

Rep: Reputation: 15
gcc3.4.x ships with FC3.But FC4 has the newer gcc 4.x.x....

So while compiling programs whose source was written to compile with gcc 3.x.x try telling the program to use gcc 3.x.x.

./configure --help should very clearly tell the option you need to pass.
For this you need to install gcc3 somewhere you like [eg. /opt] and give the path while configuring the software before compiling.
 
Old 09-11-2005, 10:03 AM   #5
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by whencat
gcc3.4.x ships with FC3.But FC4 has the newer gcc 4.x.x....

So while compiling programs whose source was written to compile with gcc 3.x.x try telling the program to use gcc 3.x.x.

./configure --help should very clearly tell the option you need to pass.
For this you need to install gcc3 somewhere you like [eg. /opt] and give the path while configuring the software before compiling.
icculus doesn't come with configure scripts . All it comes with it is custom hand-made Makefiles. Is there not switches or options for gcc 4.x.x to compile to take into account of legacy stuff in gcc 3.x.x?
 
Old 09-11-2005, 10:21 AM   #6
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by kevingpo
icculus doesn't come with configure scripts . All it comes with it is custom hand-made Makefiles. Is there not switches or options for gcc 4.x.x to compile to take into account of legacy stuff in gcc 3.x.x?

Also, re-read the original top post thread (as it's been updated edited).
 
Old 09-12-2005, 03:56 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
The top level makefile in icculus DN-3D has a declaration section where the compiler version is set. (Not all nixes use the same compiler.) You have to edit this line to point to gcc32 in FC4.

If fact - configure scripts exist so the user dosn't have to edit the makefile - which used to be SOP for source installs.

gcc32 comes with the installation disks.

As to why gcc4 is not backwards compatable - this is because there is only so much backwards compatablising you can do without risking breaking the compiler. The 3 series was all backwards compatable to 3.0 ... like for years and years. Programming is different now.

Backwards compatability is provided by supplying an earlier version of gcc. Much more efficient... and it helps if you need to compile simple or legacy code.

When you tried to compile with gcc4, you received a lot of messages to the effect that a particular class or instruction has been superceded by another one. One could write a worm ot go through all the source code to make all (well most) of the needed changes. Developers will probably be doing this, and soon enough you won't be able to compile with earlier versions of gcc.

Last edited by Simon Bridge; 09-12-2005 at 03:57 AM.
 
  


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
Kernel 2.6.13.1 woes on FC4 w/ nvidia MooMooMilk Linux - General 6 10-05-2005 08:59 AM
HELP: FC3 vs FC4 woes :S kevingpo Fedora 9 09-10-2005 04:34 PM
Wordtrans Woes in FC4 tmr_leon Linux - Software 3 06-27-2005 03:41 AM
FC4 Install woes pestrada Fedora - Installation 0 06-26-2005 11:57 AM
downgrading gcc and other libraries on FC3 kernelnayyer Fedora 1 02-14-2005 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:25 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