LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2010, 10:59 AM   #1
pibcrazy
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
Angry downgrading gcc to gcc-3 to use g77


So I have been given this code that is useful to my research. I have been reading forums upon forums, websites after websites, trying to get g77 to work and to get a gcc other than gcc-4 to run on my Ubuntu. The reason I have to use g77 compiler is because it is the only thing that works, crazy I know. I tried fort77, f77, gfortran and the code does not compile. My coworker uses g77 and it compiles beautifully. So I just got Ubuntu on my computer and trying to install gcc-3.2, even tried gcc-2.8.1. I follow the directions to the T and I think the problem lies in bootstrap. I type make bootstrap and I get errors back. So I have no clue what to do. Or is there a way I can get around this when I am using gcc to refer to the older version, without having to install an older version? Any information you can provide would be greatly appreciated.
 
Old 02-04-2010, 11:13 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 779

Rep: Reputation: 135Reputation: 135
what're errors in bootstrap.

you can disable bootstrap if you want to.
 
Old 02-05-2010, 01:01 PM   #3
pibcrazy
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Original Poster
Rep: Reputation: 0
error message

make[2]: Entering directory `/usr/src/gcc-3.2/gcc'
gcc -c -DIN_GCC -g -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:24:
./rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
./rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
./read-rtl.c: In function ‘fatal_with_file_and_line’:
./read-rtl.c:61: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ‘read_rtx’:
./read-rtl.c:662: error: lvalue required as increment operand
make[2]: *** [read-rtl.o] Error 1
make[2]: Leaving directory `/usr/src/gcc-3.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr/src/gcc-3.2/gcc'
make: *** [bootstrap] Error 2
 
Old 02-05-2010, 01:14 PM   #4
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 779

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by pibcrazy View Post
make[2]: Entering directory `/usr/src/gcc-3.2/gcc'
gcc -c -DIN_GCC -g -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:24:
./rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
./rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
./read-rtl.c: In function ‘fatal_with_file_and_line’:
./read-rtl.c:61: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ‘read_rtx’:
./read-rtl.c:662: error: lvalue required as increment operand
make[2]: *** [read-rtl.o] Error 1
make[2]: Leaving directory `/usr/src/gcc-3.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr/src/gcc-3.2/gcc'
make: *** [bootstrap] Error 2
hmmm i check out somethings, and let you know

i think gcc 4.3 can't compile it and we need older gcc to compile it.

only cc and foltran 77 would be enought to compile a foltran 77 compiler.
 
Old 02-05-2010, 01:21 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
It used to be : apt-get install g77 .
But in the latest three releases the g77 / gcc-3.4
packages are omitted.

The packages from Ubuntu 'Hardy-updates'
can be installed and work perfectly.
'g77' :
http://packages.ubuntu.com/hardy-updates/g77
i386 : http://de.archive.ubuntu.com/ubuntu/...untu6_i386.deb
> > g77_3.4.6-31ubuntu6_i386.deb

Dependencies :
g77-3.4, gcc-3.4, gcc-3.4-base, libg2c0-dev, libg2c0

Download the six packages, move them to a new empty
folder and install the packages with the command :
sudo dpkg -i *.deb
.....

You can have as many compilers installed at the same
time, as you want, as long as you use the ones build
for Ubuntu.
.....
.....

Do not expect gcc-3.2 to compile on a modern system.
.....
 
  


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
Compilation problem when downgrading from 64-bit gcc to 32-bit gcc huyhoang3673 Linux - Software 7 08-26-2009 11:31 AM
g77 installation on gcc 4.3 rafopar Linux - Software 6 02-21-2009 07:33 PM
Downgrading gcc kewlemer Linux - General 1 04-04-2005 10:50 AM
what happen on downgrading gcc vijaysh Debian 1 01-01-2005 01:12 PM
downgrading gcc, gentoo cheater1034 Linux - Software 4 08-07-2004 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:22 PM.

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
Open Source Consulting | Domain Registration