LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-28-2008, 10:49 PM   #1
asahlot
Member
 
Registered: Sep 2005
Location: india
Distribution: Fedora Core 2
Posts: 62

Rep: Reputation: 15
Error in compiling gcc-3.3.3 with gcc-4.3.2


Hello All

I am using Fedora Core10. I need to use gcc-3.3.3 while the gcc version which got installed with FC10 is gcc-4.3.2. So I am trying to compile and install gcc-3.3.3 using gcc-4.3.2. Below are the steps and error which I am getting:

1.cd gcc-3.3.3
2. ./config.guess
i686-pc-linux-gnu
3. ./configure --target=i686-pc-linux-gnu --prefix=/usr/local
4. make

And then soon I get the following error message:
-------------
gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./. -I./config -I./../include ./read-rtl.c -o read-rtl.o
In file included from ./read-rtl.c:25:
./rtl.h:132: warning: type of bit-field ‘code’ is a GCC extension
./rtl.h:135: warning: type of bit-field ‘mode’ is a GCC extension
./read-rtl.c: In function ‘fatal_with_file_and_line’:
./read-rtl.c:53: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ‘read_rtx’:
./read-rtl.c:653: error: lvalue required as increment operand
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory `/home/arvind/OperatingSystemEngineering/toolchain/gcc-3.3.3/gcc'
make: *** [all-gcc] Error 2
-------------

Could anybody please tell me why I am getting this error?
Are these software erroneous? they have syntax errors?

I would appreciate your help.
Thanks a lot.
 
Old 12-28-2008, 10:59 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

This link has your exact scenario:
http://mail-index.netbsd.org/netbsd-...1/22/0008.html
Quote:
It's a problem. Older versions of gcc use a construct which newer
versions of gcc won't compile. This makes it hard to bootstrap older
versions of gcc with newer versions. This is indeed an absurd
situation.
Perhaps the easiest solution is to simply download and use an older version of GCC to build this particular toolchain of yours?
 
Old 12-28-2008, 11:30 PM   #3
asahlot
Member
 
Registered: Sep 2005
Location: india
Distribution: Fedora Core 2
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks for your response!
Could you please give me some pointers to download rpm for older gcc so that I can build this version using them.
I tried downloading rpm from here:
http://rpm.pbone.net/index.php3/stat/2/simple/2
but while installing the rpm talks about dependencies.

Why its so bad and tough. Nothing works fine.

Thanks for your help
 
Old 12-29-2008, 12:23 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,602

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
for gcc3.4 install the legacy tools
Code:
su -
yum groupinstall "Legacy Software Development"
 
Old 12-29-2008, 12:49 AM   #5
asahlot
Member
 
Registered: Sep 2005
Location: india
Distribution: Fedora Core 2
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks John!
 
Old 02-08-2009, 01:35 AM   #6
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
I am compiling 3.3.1 with the latest GCC. I too am getting the same error. I did install the "Legacy Soft. Devel.," but still getting the same error.
 
Old 02-08-2009, 11:25 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 12,602

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
well the name of the legacy gcc is "compact-gcc-34 "
for the very old gcc 3.2 or ( why do you need 3.3.1 - aug-2003 ) build it .
read the readme and install file for the instructions
http://gcc.releasenotes.org/releases/gcc-3.3.1/
http://gcc.gnu.org/install/
http://gcc.gnu.org/install/prerequisites.html
http://gcc.gnu.org/install/configure.html
Quote:
from the 3.3.1 README
The directory INSTALL contains copies of the installation information
as HTML and plain text. The source of this information is
gcc/doc/install.texi. The installation information includes details
of what is included in the GCC sources and what files GCC installs.
did you read the *.html pages ?
deepumnit:
also why not just port the code for whatever program that needs the old gcc to use 4.3

Last edited by John VV; 02-08-2009 at 11:36 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
gcc compiling error deadhorus Linux From Scratch 8 12-09-2007 10:58 AM
How to selectively use GCC 3.4 -OR- GCC 4.1 in FC6 when compiling? rylan76 Fedora 2 11-21-2006 11:36 PM
Error When Compiling GCC fatsheep Linux From Scratch 3 10-14-2006 04:09 PM
Error compiling gcc 3.3.6 with 64bit gcc 4.0.3 cs-cam Linux - Software 0 04-22-2006 05:20 AM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration