Need g77 for Ubuntu 8.10; to access g77 libraries

Asked by jim

In order to run a scientific application, I will install ATLAS BLAS and Lapack. I need a g77 compiler in order to access some of the interfaces. I have already installed the Intel 32-bit compiler, but need a g77 compiler.
Thanks,
-jim

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
jim
Solved:
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1

Hi,

Please try this procedure:

Open a terminal and then enter the following commands:

Step 1 - get the packages
=====================
# sudo apt-get build-dep gcc-3.4
# sudo apt-get install fakeroot
# apt-get source gcc-3.4

now cd into the newly extracted source/build tree

# cd gcc-3.4-*/debian

Step2 - Edit the build rules
=========================
there are 2 files that need to be edited

a) rules.conf
—————
search for the line:
“addons = cdev libs libg2c lib64g2c lib32g2c # hppa64 c++dev fdev libs \”

note that fdev is commented out , so change it to this

addons = cdev libs libg2c lib64g2c lib32g2c fdev # hppa64 c++dev libs \

b) rules.def - not sure if second is necessary but it doesn’t hurt
————–
- search for the line
“with_fdev := disabled for the gcc-3.4 build”

- under this enter the following lines
with_fortran := yes
with_fdev := yes

Step 3 - build
=========
# cd ..
# dpkg-buildpackage -rfakeroot -nc -b

Step 4
======
# cd ..

# dpkg -i –force-overwrite gcc-3.4*.deb libg2c*.deb cpp-3.4*.deb

Step 5
=====
# cd /usr/bin
#sudo ln -s g77-3.4 g77

Step 6
=====
start compiling using g77

Regards,

Mark

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2
Revision history for this message
jim (send2jop) said :
#3

Well, when I attempted the above, I got a lot of gibberish...
The last part I captured is below:

=====================
prewitt@ubuntu:~$ sudo apt-get build-dep gcc-3.4
[sudo] password for prewitt:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_intrepid_main_source_Sources - open (2 No such file or directory)
prewitt@ubuntu:~$ sudo apt-get install fakeroot
Reading package lists... Done
Building dependency tree
Reading state information... Done
fakeroot is already the newest version.
fakeroot set to manually installed.
The following packages were automatically installed and are no longer required:
  gcc-4.1-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 251 not upgraded.
prewitt@ubuntu:~$ sudo apt-get autoremove gcc-4.1-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  gcc-4.1-base
0 upgraded, 0 newly installed, 1 to remove and 251 not upgraded.
After this operation, 279kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 103410 files and directories currently installed.)
Removing gcc-4.1-base ...
prewitt@ubuntu:~$ sudo apt-get source gcc-3.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_intrepid_main_source_Sources - open (2 No such file or directory)
prewitt@ubuntu:~$
=====================
What now?

Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#4

Hi,

Please send output of following commands:

sudo aptitude update
sudo aptitude build-dep gcc-3.4

Regards,

Mark

Revision history for this message
peter (peter-neuweiler) said :
#5

g77 is in the Synaptic Package Manager included.
Peter

Revision history for this message
jim (send2jop) said :
#6

Not really:

If I enter "g77" into the SPM, I get two hits:

     ratfor

and

     f2c

Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#7

Hi Peter,

As far as I know, g77 is available in the Hardy (Ubuntu 8.04) repositories, but not in the Intrepid (Ubuntu 8.10) repositories.

Here is an alternative way to install g77 in Intrepid:

https://wiki.bnl.gov/dayabay/index.php?title=Offline_Software_Installation_on_Ubuntu_8.10%2C_Intrepid_Ibex#v3.4

Regards,

Mark

Revision history for this message
peter (peter-neuweiler) said :
#8

Hi Mark

I have an 8.04. So I could find it in the Synaprtic Package Manager. Thanks for the information and it's great that you haven an alternative way.
Peter

Revision history for this message
jim (send2jop) said :
#9

Mark,

The response to the first command is:

prewitt@ubuntu:~$ sudo aptitude update
[sudo] password for prewitt:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Ign file: apt-build Release.gpg
Ign file: apt-build/main Translation-en_US
Get:1 file: apt-build Release [89B]
Ign file: apt-build/main Packages
Get:2 http://archive.canonical.com intrepid Release.gpg [189B]
Ign http://archive.canonical.com intrepid/partner Translation-en_US
Get:3 http://archive.canonical.com intrepid Release [7007B]
Get:4 http://archive.canonical.com intrepid/partner Packages [2199B]
Get:5 http://archive.canonical.com intrepid/partner Sources [846B]
99% [Connecting to archive.ubuntu.com (91.189.88.31)] [Connecting to us.archive.ubuntu.com (91.189.88.31)]
99% [Connecting to archive.ubuntu.com (91.189.88.31)] [Connecting to us.archive.ubuntu.com (91.189.88.31)]
Hit http://us.archive.ubuntu.com intrepid Release.gpg
Get:6 http://archive.ubuntu.com intrepid Release.gpg [189B]
Ign http://us.archive.ubuntu.com intrepid/main Translation-en_US
Ign http://us.archive.ubuntu.com intrepid/restricted Translation-en_US
Ign http://us.archive.ubuntu.com intrepid/universe Translation-en_US
Ign http://us.archive.ubuntu.com intrepid/multiverse Translation-en_US
Get:7 http://us.archive.ubuntu.com intrepid-updates Release.gpg [189B]
Ign http://us.archive.ubuntu.com intrepid-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com intrepid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com intrepid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com intrepid-updates/multiverse Translation-en_US
Get:8 http://archive.ubuntu.com intrepid Release [65.9kB]
Hit http://us.archive.ubuntu.com intrepid Release
Get:9 http://us.archive.ubuntu.com intrepid-updates Release [51.2kB]
Hit http://us.archive.ubuntu.com intrepid/main Packages
Hit http://us.archive.ubuntu.com intrepid/restricted Packages
Hit http://us.archive.ubuntu.com intrepid/restricted Sources
Hit http://us.archive.ubuntu.com intrepid/main Sources
Hit http://us.archive.ubuntu.com intrepid/multiverse Sources
Hit http://us.archive.ubuntu.com intrepid/universe Sources
Hit http://us.archive.ubuntu.com intrepid/universe Packages
Hit http://us.archive.ubuntu.com intrepid/multiverse Packages
Get:10 http://archive.ubuntu.com intrepid/main Sources [505kB]
Get:11 http://us.archive.ubuntu.com intrepid-updates/main Packages [304kB]
Get:12 http://us.archive.ubuntu.com intrepid-updates/restricted Packages [8097B]
Get:13 http://us.archive.ubuntu.com intrepid-updates/restricted Sources [2474B]
Get:14 http://archive.ubuntu.com intrepid/restricted Sources [3113B]
Get:15 http://us.archive.ubuntu.com intrepid-updates/main Sources [96.7kB]
Get:16 http://us.archive.ubuntu.com intrepid-updates/multiverse Sources [4118B]
Get:17 http://us.archive.ubuntu.com intrepid-updates/universe Sources [18.6kB]
Get:18 http://us.archive.ubuntu.com intrepid-updates/universe Packages [75.0kB]
Get:19 http://us.archive.ubuntu.com intrepid-updates/multiverse Packages [10.9kB]
Fetched 1156kB in 2min5s (9211B/s)
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
E: Couldn't rebuild package cache
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

================

The response to the second command is:

prewitt@ubuntu:~$ sudo aptitude build-dep gcc-3.4
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
prewitt@ubuntu:~$

Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#10

Hi,

Another program (synaptic package manager?) is already using apt-get/aptitude. Please close all running programs, close all terminals, close Synaptic, etc....

Then open a new terminal and resend the output of the following commands:

sudo aptitude update
sudo aptitude build-dep gcc-3.4

Regards,

Mark

Revision history for this message
jim (send2jop) said :
#11

Mark,
Yet Synaptic was running, sorry about that.
Here is the results again:

prewitt@ubuntu:~$ sudo aptitude update
[sudo] password for prewitt:
Writing extended state information... Done
Ign file: apt-build Release.gpg
Ign file: apt-build/main Translation-en_US
Get:1 file: apt-build Release [89B]
Ign file: apt-build/main Packages
Hit http://archive.canonical.com intrepid Release.gpg
Ign http://archive.canonical.com intrepid/partner Translation-en_US
Hit http://archive.ubuntu.com intrepid Release.gpg
Hit http://us.archive.ubuntu.com intrepid Release.gpg
Ign http://us.archive.ubuntu.com intrepid/main Translation-en_US
Hit http://archive.ubuntu.com intrepid Release
Ign http://us.archive.ubuntu.com intrepid/restricted Translation-en_US
Ign http://us.archive.ubuntu.com intrepid/universe Translation-en_US
Ign http://us.archive.ubuntu.com intrepid/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com intrepid-updates Release.gpg
Ign http://us.archive.ubuntu.com intrepid-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com intrepid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com intrepid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com intrepid-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com intrepid Release
Hit http://us.archive.ubuntu.com intrepid-updates Release
Hit http://archive.ubuntu.com intrepid/main Sources
Hit http://us.archive.ubuntu.com intrepid/main Packages
Hit http://us.archive.ubuntu.com intrepid/restricted Packages
Hit http://us.archive.ubuntu.com intrepid/restricted Sources
Hit http://us.archive.ubuntu.com intrepid/main Sources
Hit http://us.archive.ubuntu.com intrepid/multiverse Sources
Hit http://archive.ubuntu.com intrepid/restricted Sources
Hit http://archive.canonical.com intrepid Release
Hit http://archive.canonical.com intrepid/partner Packages
Hit http://us.archive.ubuntu.com intrepid/universe Sources
Hit http://us.archive.ubuntu.com intrepid/universe Packages
Hit http://us.archive.ubuntu.com intrepid/multiverse Packages
Hit http://us.archive.ubuntu.com intrepid-updates/main Packages
Hit http://us.archive.ubuntu.com intrepid-updates/restricted Packages
Hit http://us.archive.ubuntu.com intrepid-updates/restricted Sources
Hit http://us.archive.ubuntu.com intrepid-updates/main Sources
Hit http://us.archive.ubuntu.com intrepid-updates/multiverse Sources
Hit http://archive.canonical.com intrepid/partner Sources
Hit http://us.archive.ubuntu.com intrepid-updates/universe Sources
Hit http://us.archive.ubuntu.com intrepid-updates/universe Packages
Hit http://us.archive.ubuntu.com intrepid-updates/multiverse Packages
Reading package lists... Done

prewitt@ubuntu:~$

prewitt@ubuntu:~$ sudo aptitude build-dep gcc-3.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages are BROKEN:
  libc6-i686
The following NEW packages will be installed:
  autoconf autoconf2.13 automake1.4 automake1.7 autotools-dev bison cpp-3.4{a} debhelper dejagnu expect{a} flex gawk
  gcc-3.4 gcc-3.4-base{a} gcc-4.3-multilib{a} gcc-multilib{a} gperf html2text{a} lib64gcc1 lib64gomp1{a} libc6-amd64{a}
  libc6-dev-amd64 libltdl7-dev{a} libmail-sendmail-perl{a} libsys-hostname-long-perl{a} libtool m4 po-debconf{a}
  realpath sharutils tcl8.4{a} texinfo zlib1g-dev
The following packages will be upgraded:
  libc6 libc6-dev
2 packages upgraded, 33 newly installed, 0 to remove and 249 not upgraded.
Need to get 27.0MB of archives. After unpacking 56.3MB will be used.
The following packages have unmet dependencies:
  libc6-i686: PreDepends: libc6 (= 2.8~20080505-0ubuntu7) but 2.8~20080505-0ubuntu9 is to be installed.
The following actions will resolve these dependencies:

Upgrade the following packages:
libc6-i686 [2.8~20080505-0ubuntu7 (intrepid, now) -> 2.8~20080505-0ubuntu9 (intrepid-updates)]

Score is 120

Accept this solution? [Y/n/q/?]

NOTE: I have not chosen either solution yet...

What should I choose?

Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#12

Hi,

Accept the solution, so press Y (Yes) and then <Enter>

After those packages are installed, then send us the output of the following commands:

sudo apt-get update
sudo apt-get source gcc-3.4

Regards,

Mark

Revision history for this message
Andy Ruddock (andy-ruddock) said :
#13

Is there a reason you can't use gfortran?

Revision history for this message
jim (send2jop) said :
#14

Andy,
My goal is to install ATLAS BLAS and Lapack and integrate them.
In the literature and makefiles I have seen "g77" is the one they recommend.
Do you know of anybody that has successfully installed and integrated those packages with "gfortran"?
I am open to alternatives, if they exist.
Thanks,
Jim

Revision history for this message
jim (send2jop) said :
#15

Mark,

prewitt@ubuntu:~$ sudo apt-get update
[sudo] password for prewitt:
Ign file: apt-build Release.gpg
Ign file: apt-build/main Translation-en_US
Get:1 file: apt-build Release [89B]
Ign file: apt-build/main Packages
Hit http://archive.canonical.com intrepid Release.gpg
Ign http://archive.canonical.com intrepid/partner Translation-en_US
Hit http://archive.ubuntu.com intrepid Release.gpg
Hit http://archive.canonical.com intrepid Release
Hit http://archive.ubuntu.com intrepid Release
Hit http://archive.canonical.com intrepid/partner Packages
Hit http://archive.ubuntu.com intrepid/main Sources
Hit http://archive.canonical.com intrepid/partner Sources
Hit http://archive.ubuntu.com intrepid/restricted Sources
Hit http://us.archive.ubuntu.com intrepid Release.gpg
Ign http://us.archive.ubuntu.com intrepid/main Translation-en_US
Ign http://us.archive.ubuntu.com intrepid/restricted Translation-en_US
Ign http://us.archive.ubuntu.com intrepid/universe Translation-en_US
Ign http://us.archive.ubuntu.com intrepid/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com intrepid-updates Release.gpg
Ign http://us.archive.ubuntu.com intrepid-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com intrepid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com intrepid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com intrepid-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com intrepid Release
Hit http://us.archive.ubuntu.com intrepid-updates Release
Hit http://us.archive.ubuntu.com intrepid/main Packages
Hit http://us.archive.ubuntu.com intrepid/restricted Packages
Hit http://us.archive.ubuntu.com intrepid/restricted Sources
Hit http://us.archive.ubuntu.com intrepid/main Sources
Hit http://us.archive.ubuntu.com intrepid/multiverse Sources
Hit http://us.archive.ubuntu.com intrepid/universe Sources
Hit http://us.archive.ubuntu.com intrepid/universe Packages
Hit http://us.archive.ubuntu.com intrepid/multiverse Packages
Hit http://us.archive.ubuntu.com intrepid-updates/main Packages
Hit http://us.archive.ubuntu.com intrepid-updates/restricted Packages
Hit http://us.archive.ubuntu.com intrepid-updates/restricted Sources
Hit http://us.archive.ubuntu.com intrepid-updates/main Sources
Hit http://us.archive.ubuntu.com intrepid-updates/multiverse Sources
Hit http://us.archive.ubuntu.com intrepid-updates/universe Sources
Hit http://us.archive.ubuntu.com intrepid-updates/universe Packages
Hit http://us.archive.ubuntu.com intrepid-updates/multiverse Packages
Reading package lists... Done
prewitt@ubuntu:~$ clear

prewitt@ubuntu:~$ sudo apt-get source gcc-3.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 31.2MB of source archives.
Get:1 http://us.archive.ubuntu.com intrepid/universe gcc-3.4 3.4.6-8ubuntu2 (dsc) [2123B]
Get:2 http://us.archive.ubuntu.com intrepid/universe gcc-3.4 3.4.6-8ubuntu2 (tar) [30.8MB]
5% [2 gcc-3.4 1715069/30.8MB 5%]
Get:3 http://us.archive.ubuntu.com intrepid/universe gcc-3.4 3.4.6-8ubuntu2 (tar) [30.8MB]
Get:4 http://us.archive.ubuntu.com intrepid/universe gcc-3.4 3.4.6-8ubuntu2 (tar) [30.8MB]
Get:5 http://us.archive.ubuntu.com intrepid/universe gcc-3.4 3.4.6-8ubuntu2 (tar) [30.8MB]
Get:6 http://us.archive.ubuntu.com intrepid/universe gcc-3.4 3.4.6-8ubuntu2 (tar) [30.8MB]
Get:7 http://us.archive.ubuntu.com intrepid/universe gcc-3.4 3.4.6-8ubuntu2 (tar) [30.8MB]
Get:8 http://us.archive.ubuntu.com intrepid/universe gcc-3.4 3.4.6-8ubuntu2 (diff) [399kB]
Fetched 4784kB in 25min17s (3152B/s)
gpg: WARNING: unsafe ownership on configuration file `/home/prewitt/.gnupg/gpg.conf'
gpg: Signature made Thu 23 Oct 2008 05:44:24 AM CDT using DSA key ID 0F932C9C
gpg: Can't check signature: public key not found
dpkg-source: extracting gcc-3.4 in gcc-3.4-3.4.6
dpkg-source: info: unpacking gcc-3.4_3.4.6.orig.tar.gz
dpkg-source: info: applying gcc-3.4_3.4.6-8ubuntu2.diff.gz
prewitt@ubuntu:~$

-Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#16

Hi,

OK, now cd into the newly extracted source/build tree:

# cd gcc-3.4-*/debian

Step 2 - Edit the build rules
=========================
there are 2 files that need to be edited

a) rules.conf
—————
search for the line:
“addons = cdev libs libg2c lib64g2c lib32g2c # hppa64 c++dev fdev libs \”

note that fdev is commented out , so change the line to this

addons = cdev libs libg2c lib64g2c lib32g2c fdev # hppa64 c++dev libs \

b) rules.def - not sure if second is necessary but it doesn’t hurt
————–
- search for the line
“with_fdev := disabled for the gcc-3.4 build”

- under this enter the following lines
with_fortran := yes
with_fdev := yes

Step 3 - build
=========
# cd ..
# sudo dpkg-buildpackage -rfakeroot -nc -b

Step 4
======
# cd ..

# sudo dpkg -i –force-overwrite gcc-3.4*.deb libg2c*.deb cpp-3.4*.deb

Step 5
=====
# cd /usr/bin
# sudo ln -s g77-3.4 g77

Step 6
=====
start compiling using g77

Regards,

Mark

Revision history for this message
jim (send2jop) said :
#17

Mark,

Down through 2nd part of Step 4

prewitt@ubuntu:~/gcc-3.4-3.4.6/debian$ sudo cp rules.conf rules.conf.Original
[sudo] password for prewitt:
prewitt@ubuntu:~/gcc-3.4-3.4.6/debian$ sudo vi rules.conf

prewitt@ubuntu:~/gcc-3.4-3.4.6/debian$ sudo cp rules.defs rules.defs.Original
prewitt@ubuntu:~/gcc-3.4-3.4.6/debian$ sudo vi rules.defs

prewitt@ubuntu:~/gcc-3.4-3.4.6/debian$ cd ..

debian gcc-3.4.6.tar.bz2 gpc-20060215.tar.bz2
prewitt@ubuntu:~/gcc-3.4-3.4.6$ pwd
/home/prewitt/gcc-3.4-3.4.6

debian gcc-3.4.6.tar.bz2 gpc-20060215.tar.bz2
prewitt@ubuntu:~/gcc-3.4-3.4.6$ sudo dpkg-buildpackage -rfakeroot -nc -b
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package gcc-3.4
dpkg-buildpackage: source version 3.4.6-8ubuntu2
dpkg-buildpackage: source changed by Matthias Klose <email address hidden>
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Unmet build dependencies: doxygen (>= 1.4.2) graphviz (>= 2.2) gsfonts-x11
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
prewitt@ubuntu:~/gcc-3.4-3.4.6$

prewitt@ubuntu:~/gcc-3.4-3.4.6$ cd ..

prewitt@ubuntu:~$ sudo dpkg -i –force-overwrite gcc-3.4*.deb libg2c*.deb cpp-3.4*.deb
dpkg: error processing –force-overwrite (--install):
 cannot access archive: No such file or directory
dpkg: error processing gcc-3.4*.deb (--install):
 cannot access archive: No such file or directory
dpkg: error processing libg2c*.deb (--install):
 cannot access archive: No such file or directory
dpkg: error processing cpp-3.4*.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 –force-overwrite
 gcc-3.4*.deb
 libg2c*.deb
 cpp-3.4*.deb
prewitt@ubuntu:~$

-Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#18

Hi,

Open a terminal and enter the following command:

sudo aptitude install doxygen graphviz gsfonts-x11

When it asks for Y/N to continue, press Y and <enter>

Then continue the procedure, starting with this command

sudo dpkg-buildpackage -rfakeroot -nc -b

because the dpkg-buildpackage operation failed, due to missing dependencies.

Sorry, but it is now very late and I need some sleep.

Hope someone else can take over,

Good luck,

Regards,

Mark

Revision history for this message
jim (send2jop) said :
#19

Mark,
Thank you so very much for your help and your valuable time.
Jim

Revision history for this message
jim (send2jop) said :
#20

Well...
It is a lot further along than it was...
I captured part of the output from the command:

sudo dpkg-buildpackage -rfaderoot -nc -b

...
...
...
Hunk #1 succeeded at 768 (offset 5 lines).
Hunk #2 succeeded at 5052 (offset 7 lines).
Hunk #3 succeeded at 5060 (offset 7 lines).
Hunk #4 succeeded at 11291 (offset 80 lines).
Hunk #5 succeeded at 11450 (offset 87 lines).
patching file gcc/doc/libgcc.texi
patching file gcc/doc/makefile.texi
patching file gcc/doc/passes.texi
patching file gcc/doc/standards.texi
patching file gcc/doc/trouble.texi
patching file gcc/f/Make-lang.in
Hunk #1 succeeded at 151 (offset -2 lines).
Hunk #2 succeeded at 165 (offset -2 lines).
Hunk #3 succeeded at 263 (offset -2 lines).
Hunk #4 succeeded at 279 (offset -2 lines).
patching file gcc/java/Make-lang.in
Hunk #1 succeeded at 159 (offset 1 line).
Hunk #2 succeeded at 236 (offset 1 line).
patching file gcc/java/gcj.texi
patching file gcc/treelang/Make-lang.in
patching file gcc/treelang/treelang.texi
patching file gcc/f/g77.texi
echo "rename-info-files patches applied." > stamps/02-patch-stamp-rename-info-files
if [ -x debian/patches/libstdc++-pic.dpatch ]; then true; else chmod +x debian/patches/libstdc++-pic.dpatch; fi
if [ -f stamps/02-patch-stamp-libstdc++-pic ]; then \
   echo "libstdc++-pic patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libstdc++-pic.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libstdc++-v3/src/Makefile.am
Hunk #1 succeeded at 210 with fuzz 2 (offset -14 lines).
patching file libstdc++-v3/src/Makefile.in
Hunk #1 succeeded at 592 (offset 7 lines).
Hunk #2 succeeded at 625 (offset 7 lines).
Hunk #3 succeeded at 710 (offset 2 lines).
echo "libstdc++-pic patches applied." > stamps/02-patch-stamp-libstdc++-pic
if [ -x debian/patches/libstdc++-doclink.dpatch ]; then true; else chmod +x debian/patches/libstdc++-doclink.dpatch; fi
if [ -f stamps/02-patch-stamp-libstdc++-doclink ]; then \
   echo "libstdc++-doclink patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libstdc++-doclink.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libstdc++-v3/docs/doxygen/mainpage.html
Hunk #2 succeeded at 75 (offset -3 lines).
echo "libstdc++-doclink patches applied." > stamps/02-patch-stamp-libstdc++-doclink
if [ -x debian/patches/libstdc++-doxygen-syntax.dpatch ]; then true; else chmod +x debian/patches/libstdc++-doxygen-syntax.dpatch; fi
if [ -f stamps/02-patch-stamp-libstdc++-doxygen-syntax ]; then \
   echo "libstdc++-doxygen-syntax patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libstdc++-doxygen-syntax.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libstdc++-v3/include/bits/basic_string.h
echo "libstdc++-doxygen-syntax patches applied." > stamps/02-patch-stamp-libstdc++-doxygen-syntax
if [ -x debian/patches/amd64-specs.dpatch ]; then true; else chmod +x debian/patches/amd64-specs.dpatch; fi
if [ -f stamps/02-patch-stamp-amd64-specs ]; then \
   echo "amd64-specs patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/amd64-specs.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/config/i386/x86-64.h
Hunk #1 succeeded at 49 with fuzz 2.
echo "amd64-specs patches applied." > stamps/02-patch-stamp-amd64-specs
if [ -x debian/patches/gccbug.dpatch ]; then true; else chmod +x debian/patches/gccbug.dpatch; fi
if [ -f stamps/02-patch-stamp-gccbug ]; then \
   echo "gccbug patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/gccbug.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/gccbug.in
echo "gccbug patches applied." > stamps/02-patch-stamp-gccbug
if [ -x debian/patches/gccbug-posix.dpatch ]; then true; else chmod +x debian/patches/gccbug-posix.dpatch; fi
if [ -f stamps/02-patch-stamp-gccbug-posix ]; then \
   echo "gccbug-posix patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/gccbug-posix.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/gccbug.in
echo "gccbug-posix patches applied." > stamps/02-patch-stamp-gccbug-posix
if [ -x debian/patches/hppa-toplevel.dpatch ]; then true; else chmod +x debian/patches/hppa-toplevel.dpatch; fi
if [ -f stamps/02-patch-stamp-hppa-toplevel ]; then \
   echo "hppa-toplevel patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/hppa-toplevel.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file configure.in
Hunk #1 succeeded at 489 (offset 7 lines).
patching file configure
Hunk #1 succeeded at 1250 (offset 7 lines).
echo "hppa-toplevel patches applied." > stamps/02-patch-stamp-hppa-toplevel
if [ -x debian/patches/hppa-libffi.dpatch ]; then true; else chmod +x debian/patches/hppa-libffi.dpatch; fi
if [ -f stamps/02-patch-stamp-hppa-libffi ]; then \
   echo "hppa-libffi patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/hppa-libffi.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libffi/Makefile.am
patching file libffi/Makefile.in
patching file libffi/configure.in
Hunk #1 succeeded at 87 (offset 2 lines).
Hunk #2 succeeded at 112 (offset 2 lines).
patching file libffi/src/pa/ffi.c
patching file libffi/src/pa/ffitarget.h
patching file libffi/src/pa/linux.S
patching file libffi/src/prep_cif.c
echo "hppa-libffi patches applied." > stamps/02-patch-stamp-hppa-libffi
if [ -x debian/patches/fastjar-update.dpatch ]; then true; else chmod +x debian/patches/fastjar-update.dpatch; fi
if [ -f stamps/02-patch-stamp-fastjar-update ]; then \
   echo "fastjar-update patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/fastjar-update.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file fastjar/Makefile.am
patching file fastjar/Makefile.in
patching file fastjar/compress.c
patching file fastjar/compress.h
patching file fastjar/fastjar.texi
patching file fastjar/jartool.c
patching file fastjar/jartool.h
patching file fastjar/shift.c
patching file fastjar/shift.h
patching file fastjar/zipfile.h
echo "fastjar-update patches applied." > stamps/02-patch-stamp-fastjar-update
if [ -x debian/patches/fastjar-version.dpatch ]; then true; else chmod +x debian/patches/fastjar-version.dpatch; fi
if [ -f stamps/02-patch-stamp-fastjar-version ]; then \
   echo "fastjar-version patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/fastjar-version.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file fastjar/configure.ac
patching file fastjar/configure
echo "fastjar-version patches applied." > stamps/02-patch-stamp-fastjar-version
if [ -x debian/patches/boehm-gc-nocheck.dpatch ]; then true; else chmod +x debian/patches/boehm-gc-nocheck.dpatch; fi
if [ -f stamps/02-patch-stamp-boehm-gc-nocheck ]; then \
   echo "boehm-gc-nocheck patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/boehm-gc-nocheck.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file boehm-gc/Makefile.in
Hunk #1 succeeded at 547 with fuzz 2 (offset -115 lines).
echo "boehm-gc-nocheck patches applied." > stamps/02-patch-stamp-boehm-gc-nocheck
if [ -x debian/patches/libltdl.dpatch ]; then true; else chmod +x debian/patches/libltdl.dpatch; fi
if [ -f stamps/02-patch-stamp-libltdl ]; then \
   echo "libltdl patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libltdl.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libjava/libltdl/acinclude.m4
patching file libjava/libltdl/config-h.in
patching file libjava/libltdl/configure
Hunk #1 succeeded at 19024 (offset -599 lines).
patching file libjava/libltdl/ltdl.c
echo "libltdl patches applied." > stamps/02-patch-stamp-libltdl
if [ -x debian/patches/m68k-update.dpatch ]; then true; else chmod +x debian/patches/m68k-update.dpatch; fi
if [ -f stamps/02-patch-stamp-m68k-update ]; then \
   echo "m68k-update patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/m68k-update.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/config/m68k/m68k.md
echo "m68k-update patches applied." > stamps/02-patch-stamp-m68k-update
if [ -x debian/patches/libf2c-mxunit.dpatch ]; then true; else chmod +x debian/patches/libf2c-mxunit.dpatch; fi
if [ -f stamps/02-patch-stamp-libf2c-mxunit ]; then \
   echo "libf2c-mxunit patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libf2c-mxunit.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libf2c/libI77/fio.h
echo "libf2c-mxunit patches applied." > stamps/02-patch-stamp-libf2c-mxunit
if [ -x debian/patches/arm-bigendian.dpatch ]; then true; else chmod +x debian/patches/arm-bigendian.dpatch; fi
if [ -f stamps/02-patch-stamp-arm-bigendian ]; then \
   echo "arm-bigendian patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/arm-bigendian.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/config/arm/linux-elf.h
patching file gcc/config.gcc
Hunk #1 succeeded at 678 (offset 12 lines).
echo "arm-bigendian patches applied." > stamps/02-patch-stamp-arm-bigendian
if [ -x debian/patches/tool-version-checks.dpatch ]; then true; else chmod +x debian/patches/tool-version-checks.dpatch; fi
if [ -f stamps/02-patch-stamp-tool-version-checks ]; then \
   echo "tool-version-checks patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/tool-version-checks.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/configure.ac
patching file Makefile.tpl
patching file Makefile.in
echo "tool-version-checks patches applied." > stamps/02-patch-stamp-tool-version-checks
if [ -x debian/patches/cpu-default-i486.dpatch ]; then true; else chmod +x debian/patches/cpu-default-i486.dpatch; fi
if [ -f stamps/02-patch-stamp-cpu-default-i486 ]; then \
   echo "cpu-default-i486 patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/cpu-default-i486.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/config/i386/i386.c
Hunk #1 succeeded at 1176 with fuzz 2 (offset -56 lines).
patching file gcc/config/i386/i386.h
echo "cpu-default-i486 patches applied." > stamps/02-patch-stamp-cpu-default-i486
if [ -x debian/patches/libffi-soversion.dpatch ]; then true; else chmod +x debian/patches/libffi-soversion.dpatch; fi
if [ -f stamps/02-patch-stamp-libffi-soversion ]; then \
   echo "libffi-soversion patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libffi-soversion.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libffi/Makefile.am
Hunk #1 succeeded at 181 (offset 6 lines).
patching file libffi/Makefile.in
Hunk #1 succeeded at 230 (offset 4 lines).
patching file libffi/libtool-version
echo "libffi-soversion patches applied." > stamps/02-patch-stamp-libffi-soversion
if [ -x debian/patches/libffi-mips.dpatch ]; then true; else chmod +x debian/patches/libffi-mips.dpatch; fi
if [ -f stamps/02-patch-stamp-libffi-mips ]; then \
   echo "libffi-mips patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libffi-mips.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libffi/src/mips/ffi.c
patching file libffi/src/mips/ffitarget.h
echo "libffi-mips patches applied." > stamps/02-patch-stamp-libffi-mips
if [ -x debian/patches/libjava-mips.dpatch ]; then true; else chmod +x debian/patches/libjava-mips.dpatch; fi
if [ -f stamps/02-patch-stamp-libjava-mips ]; then \
   echo "libjava-mips patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libjava-mips.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libjava/include/mips-signal.h
echo "libjava-mips patches applied." > stamps/02-patch-stamp-libjava-mips
if [ -x debian/patches/libstdc++-mips-atomic.dpatch ]; then true; else chmod +x debian/patches/libstdc++-mips-atomic.dpatch; fi
if [ -f stamps/02-patch-stamp-libstdc++-mips-atomic ]; then \
   echo "libstdc++-mips-atomic patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libstdc++-mips-atomic.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libstdc++-v3/config/cpu/mips/atomicity.h
echo "libstdc++-mips-atomic patches applied." > stamps/02-patch-stamp-libstdc++-mips-atomic
if [ -x debian/patches/biarch-include.dpatch ]; then true; else chmod +x debian/patches/biarch-include.dpatch; fi
if [ -f stamps/02-patch-stamp-biarch-include ]; then \
   echo "biarch-include patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/biarch-include.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/cppdefault.h
patching file gcc/c-incpath.c
patching file gcc/cppdefault.c
patching file gcc/Makefile.in
patching file libstdc++-v3/include/Makefile.am
patching file libstdc++-v3/include/Makefile.in
echo "biarch-include patches applied." > stamps/02-patch-stamp-biarch-include
if [ -x debian/patches/config-ml.dpatch ]; then true; else chmod +x debian/patches/config-ml.dpatch; fi
if [ -f stamps/02-patch-stamp-config-ml ]; then \
   echo "config-ml patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/config-ml.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file config-ml.in
Hunk #5 succeeded at 998 (offset -29 lines).
echo "config-ml patches applied." > stamps/02-patch-stamp-config-ml
if [ -x debian/patches/i386-biarch.dpatch ]; then true; else chmod +x debian/patches/i386-biarch.dpatch; fi
if [ -f stamps/02-patch-stamp-i386-biarch ]; then \
   echo "i386-biarch patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/i386-biarch.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/config/i386/biarch.h
patching file gcc/config/i386/linux.h
patching file gcc/config/i386/linux64.h
patching file gcc/config/i386/x86-64.h
patching file gcc/config.gcc
Hunk #1 succeeded at 1012 (offset 21 lines).
patching file libffi/Makefile.am
patching file libffi/Makefile.in
patching file libffi/src/x86/ffitarget.h
patching file libjava/configure.in
patching file libjava/include/i386-signal.h
patching file libjava/sysdep/i386/locks.h
patching file libtool.m4
configure.in:683: warning: Cannot check for file existence when cross compiling
echo "i386-biarch patches applied." > stamps/02-patch-stamp-i386-biarch
if [ -x debian/patches/libstdc++-disable-run-check.dpatch ]; then true; else chmod +x debian/patches/libstdc++-disable-run-check.dpatch; fi
if [ -f stamps/02-patch-stamp-libstdc++-disable-run-check ]; then \
   echo "libstdc++-disable-run-check patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/libstdc++-disable-run-check.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file libstdc++-v3/configure
patching file libiberty/configure
echo "libstdc++-disable-run-check patches applied." > stamps/02-patch-stamp-libstdc++-disable-run-check
if [ -x debian/patches/link-libs.dpatch ]; then true; else chmod +x debian/patches/link-libs.dpatch; fi
if [ -f stamps/02-patch-stamp-link-libs ]; then \
   echo "link-libs patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/link-libs.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/config/t-slibgcc-elf-ver
patching file libf2c/Makefile.in
patching file libffi/Makefile.am
Hunk #1 succeeded at 181 with fuzz 2 (offset 2 lines).
patching file libffi/Makefile.in
Hunk #1 succeeded at 230 with fuzz 2 (offset 7 lines).
patching file libjava/Makefile.in
Hunk #1 succeeded at 203 (offset 41 lines).
patching file libjava/Makefile.am
Hunk #1 succeeded at 91 (offset 24 lines).
patching file libobjc/Makefile.in
Hunk #1 succeeded at 257 (offset -7 lines).
patching file libstdc++-v3/src/Makefile.am
patching file libstdc++-v3/src/Makefile.in
echo "link-libs patches applied." > stamps/02-patch-stamp-link-libs
if [ -x debian/patches/reporting.dpatch ]; then true; else chmod +x debian/patches/reporting.dpatch; fi
if [ -f stamps/02-patch-stamp-reporting ]; then \
   echo "reporting patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/reporting.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file gcc/gccbug.in
Hunk #1 succeeded at 25 (offset 1 line).
patching file gcc/java/gjavah.c
Hunk #1 succeeded at 2291 (offset -29 lines).
patching file gcc/java/jcf-dump.c
Hunk #1 succeeded at 889 (offset -4 lines).
patching file gcc/java/jv-scan.c
Hunk #1 succeeded at 115 (offset -1 lines).
patching file gcc/gcov.c
Hunk #1 succeeded at 411 with fuzz 1 (offset 61 lines).
patching file gcc/version.h
patching file gcc/diagnostic.c
patching file gcc/gcc.c
Hunk #1 succeeded at 2839 (offset 10 lines).
Hunk #2 succeeded at 6262 (offset 10 lines).
Hunk #3 succeeded at 6467 (offset 10 lines).
echo "reporting patches applied." > stamps/02-patch-stamp-reporting
if [ -x debian/patches/gcc-version.dpatch ]; then true; else chmod +x debian/patches/gcc-version.dpatch; fi
if [ -f stamps/02-patch-stamp-gcc-version ]; then \
   echo "gcc-version patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/gcc-version.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
echo "gcc-version patches applied." > stamps/02-patch-stamp-gcc-version
if [ -x debian/patches/configure-deplibs_check_method.dpatch ]; then true; else chmod +x debian/patches/configure-deplibs_check_method.dpatch; fi
if [ -f stamps/02-patch-stamp-configure-deplibs_check_method ]; then \
   echo "configure-deplibs_check_method patches already applied."; exit 1; \
 fi
DEB_VERSION='3.4.6-8ubuntu2'; export DEB_VERSION; \
 debian/patches/configure-deplibs_check_method.dpatch -patch -d /home/prewitt/gcc-3.4-3.4.6/src
patching file boehm-gc/configure
patching file libf2c/configure
patching file libffi/configure
patching file libjava/libltdl/configure
patching file libjava/configure
patching file libobjc/configure
patching file zlib/configure
echo "configure-deplibs_check_method patches applied." > stamps/02-patch-stamp-configure-deplibs_check_method
echo -e "\nPatches that Ubuntu applied in this version:" > pxxx
for i in gcc-textdomain rename-info-files libstdc++-pic libstdc++-doclink libstdc++-doxygen-syntax amd64-specs gccbug gccbug-posix hppa-toplevel hppa-libffi fastjar-update fastjar-version boehm-gc-nocheck libltdl m68k-update libf2c-mxunit arm-bigendian tool-version-checks cpu-default-i486 libffi-soversion libffi-mips libjava-mips libstdc++-mips-atomic biarch-include config-ml i386-biarch libstdc++-disable-run-check link-libs reporting gcc-version configure-deplibs_check_method ; do \
   echo -e "\n$i:" >> pxxx; \
   sed -n 's/^# *DP: */ /p' debian/patches/$i.dpatch >> pxxx; \
 done
mv -f pxxx stamps/02-patch-stamp
mkdir -p stamps
/usr/bin/make -f debian/rules.conf control
sed: can't read /home/prewitt/gcc-3.4-3.4.6/src/gcc/p/version.h: No such file or directory
make[1]: Entering directory `/home/prewitt/gcc-3.4-3.4.6'
echo "addons: cdev libs libg2c lib64g2c lib32g2c fdev gfdldoc"; \
 m4 -DBINUTILSV=2.16.1-3 -DSRCNAME=gcc-3.4 -D__i486__ -DARCH=i386 -DDIST=Ubuntu -DG2C_CEV=1:3.3.4-4 -DLIBC_DEV_DEP="libc6-dev (>= 2.3.5-10)" -DLIBC_BIARCH_BUILD_DEP="libc6-dev-amd64 [i386], libc6-dev-sparc64 [sparc], libc6-dev-s390x [s390], libc6-dev-i386 [amd64], libc6-dev-powerpc [ppc64], libc6-dev-ppc64 [powerpc], lib32gcc1 [amd64 ppc64], lib64gcc1 [powerpc i386 sparc s390]," -DBINUTILS_BUILD_DEP="binutils (>= 2.16.1-3) | binutils-multiarch (>= 2.16.1-3)" -DLIBC_BUILD_DEP="libc6.1-dev (>= 2.3.5-10) [alpha ia64] | libc0.3-dev (>= 2.3.5-10) [hurd-i386] | libc0.1-dev (>= 2.3.5-10) [kfreebsd-i386] | libc6-dev (>= 2.3.5-10)" -DGNAT_BUILD_DEP="" -DJAVA_BUILD_DEP="" -DPASCAL_BUILD_DEP="" -DTP= -DTS= -DLS= -DPRI=optional \
   -DPV=-3.4 \
   -DGPC_PV=-2.1-3.4 \
   -DCXX_SO=6 \
   -DGCC_SO=1 \
   -DOBJC_SO=1 \
   -DG2C_SO=0 \
   -DGCJ_SO=5 \
   -DGNAT_SO=3.4 \
   -DGNAT_V=3.4 \
   -DFFI_SO=3 \
   -Denabled_languages="c f77 cdev libs libg2c lib64g2c lib32g2c fdev gfdldoc" \
   -Dada_no_archs="!arm !armeb !m32r !m68k !ppc64 !hurd-i386" \
   -Djava_no_archs="!mips !mipsel !m32r !hurd-i386 !kfreebsd-gnu" \
   -Dpascal_no_archs="" \
   -Dlibgc_no_archs="!avr" \
   -Dcheck_no_archs="!hppa !hurd-i386" \
   -Dlocale_no_archs="!m68k" \
   -Dbiarch32_archs="amd64 ppc64" \
   -Dbiarch64_archs="i386 powerpc sparc s390" \
  debian/control.m4 > debian/control.tmp2
addons: cdev libs libg2c lib64g2c lib32g2c fdev gfdldoc
uniq debian/control.tmp2 > debian/control.tmp
rm -f debian/control.tmp2
[ -e debian/control ] \
   && cmp -s debian/control debian/control.tmp \
   && rm -f debian/control.tmp && exit 0; \
   mv debian/control.tmp debian/control; touch stamps/03-control-stamp
rm -f debian/rules.parameters.tmp
( \
  echo '# configuration parameters taken from upstream source files'; \
  echo 'VER := 3.4.6'; \
  echo 'BASE_VERSION := 3.4'; \
  echo 'SOURCE_VERSION := 3.4.6-8ubuntu2'; \
  echo 'DEB_VERSION := 3.4.6-8ubuntu2'; \
  echo 'DEB_VERSION_NOREL := 3.4.6'; \
  echo 'DEB_EVERSION := 1:3.4.6-8ubuntu2'; \
  echo 'GPC_BASE_VERSION := 2.1'; \
  echo 'DEB_GPC_VERSION := 3.4.6-8ubuntu2'; \
  echo 'DEB_SOVERSION := 3.4.4'; \
  echo 'DEB_SOEVERSION := 1:3.4.4'; \
  echo 'DEB_LIBGCC_SOVERSION := 1:3.4.4'; \
  echo 'DEB_LIBGCC_VERSION := 1:3.4.6-8ubuntu2'; \
  echo 'DEB_STDCXX_SOVERSION := 3.4.4'; \
  echo 'DEB_FFI_SOVERSION := 3.4.4'; \
  echo 'DEB_F2C_SOVERSION := 1:3.4.4-5'; \
  echo 'GCC_SONAME := 1'; \
  echo 'CXX_SONAME := 6'; \
  echo 'F77_SONAME := 0'; \
  echo 'OBJC_SONAME := 1'; \
  echo 'GCJ_SONAME := 5'; \
  echo 'GNAT_VERSION := 3.4'; \
  echo 'GNAT_SONAME := 3.4'; \
  echo 'FFI_SONAME := 3'; \
  echo 'LIBC_DEP := '; \
 ) > debian/rules.parameters.tmp
[ -e debian/rules.parameters ] \
   && cmp -s debian/rules.parameters debian/rules.parameters.tmp \
   && rm -f debian/rules.parameters.tmp && exit 0; \
   mv debian/rules.parameters.tmp debian/rules.parameters; \
   touch stamps/03-control-stamp
rm -f debian/substvars.local.tmp
( \
  echo 'gcc:Version=3.4.6-8ubuntu2'; \
  echo 'gcc:SoftVersion=3.4.6'; \
  echo 'gcc:EpochVersion=1:3.4.6-8ubuntu2'; \
  echo 'gpc:Version=3.4.6-8ubuntu2'; \
  echo 'binutils:Version=2.16.1-3'; \
  echo 'dep:libgcc=libgcc1 (>= 1:3.4.6-8ubuntu2)'; \
  echo 'dep:libgccbiarch=lib64gcc1 (>= 1:3.4.6-8ubuntu2)'; \
  echo 'dep:libcdev=libc6-dev (>= 2.3.5-10)'; \
  echo 'dep:libcbiarch=libc6-amd64 (>= 2.3.5-10)'; \
  echo 'dep:libcbiarchdev=libc6-dev-amd64'; \
  echo 'dep:libunwinddev='; \
  echo 'dep:libcxxbiarch=lib64stdc++6'; \
  echo 'dep:libgnat='; \
 ) > debian/substvars.local.tmp
[ -e debian/substvars.local ] \
   && cmp -s debian/substvars.local debian/substvars.local.tmp \
   && rm -f debian/substvars.local.tmp && exit 0; \
   mv debian/substvars.local.tmp debian/substvars.local; \
   touch stamps/03-control-stamp
for f in debian/*-BV*; do \
   f2=$(echo $f | sed 's/BV/3.4/;s/PV/2.1/'); \
   sed -e 's/@BV@/3.4/g' \
       -e 's/@PV@/2.1/g' \
       -e 's/@GFDL@//g' \
     $f > $f2; \
   touch -r $f $f2; \
 done
make[1]: Leaving directory `/home/prewitt/gcc-3.4-3.4.6'
/usr/bin/make -f debian/rules2 stamps/04-configure-stamp
make[1]: Entering directory `/home/prewitt/gcc-3.4-3.4.6'
dh_testdir
: # give information about the build process
-------------------------- Build process variables --------------------------
Package source: gcc-3.4
Version: 3.4.6
Base Debian version:
Configured with: -v
  --enable-languages=c
  --prefix=/usr
  --libexecdir=/usr/lib
  --with-gxx-include-dir=/usr/include/c++/3.4
  --enable-shared
  --with-system-zlib
  --enable-nls
  --without-included-gettext
  --program-suffix=-3.4
  --enable-__cxa_atexit
  --with-tune=pentium4
  i486-linux-gnu

Using shell /bin/bash -e
Architecture: i386 (GNU: i486-linux-gnu)
CPPFLAGS:
CFLAGS: -g -O2
LDFLAGS:
BOOT_CFLAGS: -O2
DEBIAN_BUILDARCH:
Install prefix: /usr
Will build the biarch compilers (32/64, defaulting to 32bit)
Will not build the C++ compiler: disabled for the gcc-3.4 build
Will not build the ObjC compiler: disabled for the gcc-3.4 build
Will not build the Fortran77 compiler: yes
Will not build the Java compiler: disabled for the gcc-3.4 build
Will not build the Pascal compiler: disabled for the gcc-3.4 build
Will not build the Ada compiler: disabled for the gcc-3.4 build
Will not build the Treelang compiler: disabled for the gcc-3.4 build
Will not build the FFI library: disabled for the gcc-3.4 build
Will run the testsuite.
/bin/bash: -c: line 0: syntax error near unexpected token `)'
make[1]: *** [stamps/04-configure-stamp] Error 2
make[1]: Leaving directory `/home/prewitt/gcc-3.4-3.4.6'
make: *** [stamps/04-configure-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
prewitt@ubuntu:~/gcc-3.4-3.4.6$

I have to leave for the day.
Will not have internet access until tomorrow.
Thanks again for all the help.
-Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#21

Hi,

That last error is a known bug: See https://bugs.launchpad.net/ubuntu/+source/gcc-3.4/+bug/286413

"There is a bug when trying to compile gcc-3.4 on 32-bit installs (compiles fine on 64-bit, but not on 32-bit machines). Possible explanation:

Script debian/runcheck.sh assumes /bin/sh to be bash, which might not be the case.
The script is called in debian/rules.defs (lines 625 .. 631):

ifeq ($(biarch32),yes)
  with_32bit_check := $(shell CC="gcc -m32" sh debian/runcheck.sh)
endif

ifeq ($(biarch),yes)
  with_64bit_check := $(shell CC="gcc -m64" sh debian/runcheck.sh)
endif

If one changes 'sh' to 'bash' on those lines, everything works again.
Better solution is, of course, to fix debian/runcheck.sh to not depend on /bin/sh implementation."

After fixing debian/rules.defs, rerun step 3:

Step 3 - build
=========
# cd ..
# dpkg-buildpackage -rfakeroot -nc -b

Regards,

Mark

Revision history for this message
jim (send2jop) said :
#22

Mark,
I finished step 3.
The test had a problem or two.
From the head of test-summary:
=================
Results for 3.4.6 (Ubuntu 3.4.6-8ubuntu2) gcc testsuite on i486-pc-linux-gnu
LAST_UPDATED: Obtained from SVN: tags/gcc_3_4_6_release revision 111785

Native configuration is i486-pc-linux-gnu

                === gcc tests ===

Running target unix
FAIL: gcc.c-torture/execute/va-arg-25.c execution, -Os

                === gcc Summary ===

# of expected passes 25378
# of unexpected failures 1
# of expected failures 70
# of untested testcases 7
# of unsupported tests 211
/home/prewitt/gcc-3.4-3.4.6/build/gcc/xgcc version 3.4.6 (Ubuntu 3.4.6-8ubuntu2)
...
...
...
I don't know how significant the unexpected failure is, but I proceeded to step 4.
=================

However, when I attempted step 4:
cd ..
prewitt@ubuntu:~$ sudo dpkg -i -force-overwrite gcc-3.4*.deb libg2c*.deb cpp-3.4*.deb
[sudo] password for prewitt:
dpkg: conflicting actions -f (--field) and -i (--install)

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
prewitt@ubuntu:~$

Much closer...

Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#23

Hi,

You made a typo there:

it should be

sudo dpkg <DASH>i <DASH><DASH>force<DASH>overwrite gcc-3.4*.deb libg2c*.deb cpp-3.4*.deb

where you must replace <DASH> with a - symbol.

So one dash in front of the i and two dashes in front of the force-overwrite option. The help function explains this as well.

Regards,

Mark

Revision history for this message
jim (send2jop) said :
#24

Mark,

prewitt@ubuntu:~$ sudo dpkg -i --force-overwrite gcc-3.4*.deb libg2c*.deb cpp-3.4*.deb
[sudo] password for prewitt:
(Reading database ... 105602 files and directories currently installed.)
Preparing to replace gcc-3.4 3.4.6-8ubuntu2 (using gcc-3.4_3.4.6-8ubuntu2_i386.deb) ...
Unpacking replacement gcc-3.4 ...
Preparing to replace gcc-3.4-base 3.4.6-8ubuntu2 (using gcc-3.4-base_3.4.6-8ubuntu2_i386.deb) ...
Unpacking replacement gcc-3.4-base ...
Selecting previously deselected package gcc-3.4-doc.
Unpacking gcc-3.4-doc (from gcc-3.4-doc_3.4.6-8ubuntu2_all.deb) ...
dpkg: error processing libg2c*.deb (--install):
 cannot access archive: No such file or directory
Preparing to replace cpp-3.4 3.4.6-8ubuntu2 (using cpp-3.4_3.4.6-8ubuntu2_i386.deb) ...
Unpacking replacement cpp-3.4 ...
Selecting previously deselected package cpp-3.4-doc.
Unpacking cpp-3.4-doc (from cpp-3.4-doc_3.4.6-8ubuntu2_all.deb) ...
Setting up gcc-3.4-base (3.4.6-8ubuntu2) ...
Setting up gcc-3.4-doc (3.4.6-8ubuntu2) ...

Setting up cpp-3.4 (3.4.6-8ubuntu2) ...
Setting up cpp-3.4-doc (3.4.6-8ubuntu2) ...

Processing triggers for man-db ...
Setting up gcc-3.4 (3.4.6-8ubuntu2) ...
Processing triggers for doc-base ...
Processing 4 added doc-base file(s)...
Registering documents with scrollkeeper...
Errors were encountered while processing:
 libg2c*.deb
prewitt@ubuntu:~$

On the outside chance, I looked at /usr/bin and saw no g77* files.

-Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#25

Hi,

Unfortunately, the previous compilation does not seem to have helped. At least you learned more about the command line in Linux ;-)

Please try this procedure instead:

https://wiki.bnl.gov/dayabay/index.php?title=Offline_Software_Installation_on_Ubuntu_8.10%2C_Intrepid_Ibex#v3.4

Remember to put "sudo" in front of each apt-get or aptitude command that you encounter in that link.

Regards,

Mark

Revision history for this message
jim (send2jop) said :
#26

Hi Mark,
Yes, when you have problems is when you learn things you didn't know before.
I will try the other procedure as you suggest.
It will be sometime tomorrow, Wednesday, before I will be able to report on the results.
This is not an easy problem and I appreciate your continuing to work with me to resolve it.
Thanks again,
-Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#27

Hi Jim,

Is your issue solved?

Regards,

Mark

Revision history for this message
jim (send2jop) said :
#28

Mark,
Sorry I have been so long responding.
I am trying to install the 3rd party without g77.
I could not wait any longer.
I may get back to this one day.
Do you want me to leave this open, or mark it solved?
Jim

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#29

Hi,

No problem, if you don't have time to try the latest suggestion, it is better that you set it to solved.

Regards,

Mark

Revision history for this message
Andy Ruddock (andy-ruddock) said :
#30

I'm not sure how backwards compatible gfortran is, but did you try creating a g77 symlink to gfortran?

Revision history for this message
jim (send2jop) said :
#31

Thanks guys...
I will go with setting it "as solved" until I get to try out the things ya'll suggested.

Thanks...I'll be back...

Jim