Need g77 for Ubuntu 8.10; to access g77 libraries
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:
Related bugs
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#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
|
#2 |
Hi,
I got the procedure from
http://
Regards,
Mark
Revision history for this message
|
#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/
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/
prewitt@ubuntu:~$
=======
What now?
Jim
Revision history for this message
|
#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
|
#5 |
g77 is in the Synaptic Package Manager included.
Peter
Revision history for this message
|
#6 |
Not really:
If I enter "g77" into the SPM, I get two hits:
ratfor
and
f2c
Jim
Revision history for this message
|
#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:
Regards,
Mark
Revision history for this message
|
#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
|
#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://
Ign http://
Get:3 http://
Get:4 http://
Get:5 http://
99% [Connecting to archive.ubuntu.com (91.189.88.31)] [Connecting to us.archive.
99% [Connecting to archive.ubuntu.com (91.189.88.31)] [Connecting to us.archive.
Hit http://
Get:6 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:7 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:8 http://
Hit http://
Get:9 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
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
|
#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
|
#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://
Ign http://
Hit http://
Hit http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
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-
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-
The following actions will resolve these dependencies:
Upgrade the following packages:
libc6-i686 [2.8~20080505-
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
|
#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
|
#13 |
Is there a reason you can't use gfortran?
Revision history for this message
|
#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
|
#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://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
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://
Get:2 http://
5% [2 gcc-3.4 1715069/30.8MB 5%]
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Fetched 4784kB in 25min17s (3152B/s)
gpg: WARNING: unsafe ownership on configuration file `/home/
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_
dpkg-source: info: applying gcc-3.4_
prewitt@ubuntu:~$
-Jim
Revision history for this message
|
#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
|
#17 |
Mark,
Down through 2nd part of Step 4
prewitt@
[sudo] password for prewitt:
prewitt@
prewitt@
prewitt@
prewitt@
debian gcc-3.4.6.tar.bz2 gpc-20060215.
prewitt@
/home/prewitt/
debian gcc-3.4.6.tar.bz2 gpc-20060215.
prewitt@
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-
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-checkbuild
dpkg-buildpackage: warning: Build dependencies/
dpkg-buildpackage: warning: (Use -d flag to override.)
prewitt@
prewitt@
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
|
#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
|
#19 |
Mark,
Thank you so very much for your help and your valuable time.
Jim
Revision history for this message
|
#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/
patching file gcc/doc/passes.texi
patching file gcc/doc/
patching file gcc/doc/
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/
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/
patching file gcc/treelang/
patching file gcc/f/g77.texi
echo "rename-info-files patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "libstdc++-pic patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file libstdc+
Hunk #1 succeeded at 210 with fuzz 2 (offset -14 lines).
patching file libstdc+
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/
if [ -x debian/
if [ -f stamps/
echo "libstdc++-doclink patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file libstdc+
Hunk #2 succeeded at 75 (offset -3 lines).
echo "libstdc++-doclink patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "libstdc+
fi
DEB_VERSION=
debian/
patching file libstdc+
echo "libstdc+
if [ -x debian/
if [ -f stamps/
echo "amd64-specs patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file gcc/config/
Hunk #1 succeeded at 49 with fuzz 2.
echo "amd64-specs patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "gccbug patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file gcc/gccbug.in
echo "gccbug patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "gccbug-posix patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file gcc/gccbug.in
echo "gccbug-posix patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "hppa-toplevel patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
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/
if [ -x debian/
if [ -f stamps/
echo "hppa-libffi patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
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/
patching file libffi/
patching file libffi/
echo "hppa-libffi patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "fastjar-update patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file fastjar/Makefile.am
patching file fastjar/Makefile.in
patching file fastjar/compress.c
patching file fastjar/compress.h
patching file fastjar/
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/
if [ -x debian/
if [ -f stamps/
echo "fastjar-version patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file fastjar/
patching file fastjar/configure
echo "fastjar-version patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "boehm-gc-nocheck patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file boehm-gc/
Hunk #1 succeeded at 547 with fuzz 2 (offset -115 lines).
echo "boehm-gc-nocheck patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "libltdl patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file libjava/
patching file libjava/
patching file libjava/
Hunk #1 succeeded at 19024 (offset -599 lines).
patching file libjava/
echo "libltdl patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "m68k-update patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file gcc/config/
echo "m68k-update patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "libf2c-mxunit patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file libf2c/libI77/fio.h
echo "libf2c-mxunit patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "arm-bigendian patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file gcc/config/
patching file gcc/config.gcc
Hunk #1 succeeded at 678 (offset 12 lines).
echo "arm-bigendian patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "tool-version-
fi
DEB_VERSION=
debian/
patching file gcc/configure.ac
patching file Makefile.tpl
patching file Makefile.in
echo "tool-version-
if [ -x debian/
if [ -f stamps/
echo "cpu-default-i486 patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file gcc/config/
Hunk #1 succeeded at 1176 with fuzz 2 (offset -56 lines).
patching file gcc/config/
echo "cpu-default-i486 patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "libffi-soversion patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
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/
echo "libffi-soversion patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "libffi-mips patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file libffi/
patching file libffi/
echo "libffi-mips patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "libjava-mips patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file libjava/
echo "libjava-mips patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "libstdc+
fi
DEB_VERSION=
debian/
patching file libstdc+
echo "libstdc+
if [ -x debian/
if [ -f stamps/
echo "biarch-include patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file gcc/cppdefault.h
patching file gcc/c-incpath.c
patching file gcc/cppdefault.c
patching file gcc/Makefile.in
patching file libstdc+
patching file libstdc+
echo "biarch-include patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "config-ml patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file config-ml.in
Hunk #5 succeeded at 998 (offset -29 lines).
echo "config-ml patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "i386-biarch patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file gcc/config/
patching file gcc/config/
patching file gcc/config/
patching file gcc/config/
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/
patching file libjava/
patching file libjava/
patching file libjava/
patching file libtool.m4
configure.in:683: warning: Cannot check for file existence when cross compiling
echo "i386-biarch patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "libstdc+
fi
DEB_VERSION=
debian/
patching file libstdc+
patching file libiberty/configure
echo "libstdc+
if [ -x debian/
if [ -f stamps/
echo "link-libs patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
patching file gcc/config/
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+
patching file libstdc+
echo "link-libs patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "reporting patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
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/
if [ -x debian/
if [ -f stamps/
echo "gcc-version patches already applied."; exit 1; \
fi
DEB_VERSION=
debian/
echo "gcc-version patches applied." > stamps/
if [ -x debian/
if [ -f stamps/
echo "configure-
fi
DEB_VERSION=
debian/
patching file boehm-gc/configure
patching file libf2c/configure
patching file libffi/configure
patching file libjava/
patching file libjava/configure
patching file libobjc/configure
patching file zlib/configure
echo "configure-
echo -e "\nPatches that Ubuntu applied in this version:" > pxxx
for i in gcc-textdomain rename-info-files libstdc++-pic libstdc++-doclink libstdc+
echo -e "\n$i:" >> pxxx; \
sed -n 's/^# *DP: */ /p' debian/
done
mv -f pxxx stamps/
mkdir -p stamps
/usr/bin/make -f debian/rules.conf control
sed: can't read /home/prewitt/
make[1]: Entering directory `/home/
echo "addons: cdev libs libg2c lib64g2c lib32g2c fdev gfdldoc"; \
m4 -DBINUTILSV=
-DPV=-3.4 \
-DGPC_
-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_
-Dada_
-Djava_
-Dpascal_
-Dlibgc_
-Dcheck_
-Dlocale_
-Dbiarch32_
-Dbiarch64_
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/
rm -f debian/
( \
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_
echo 'DEB_LIBGCC_VERSION := 1:3.4.6-8ubuntu2'; \
echo 'DEB_STDCXX_
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/
[ -e debian/
&& cmp -s debian/
&& rm -f debian/
mv debian/
touch stamps/
rm -f debian/
( \
echo 'gcc:Version=
echo 'gcc:SoftVersio
echo 'gcc:EpochVersi
echo 'gpc:Version=
echo 'binutils:
echo 'dep:libgcc=libgcc1 (>= 1:3.4.6-8ubuntu2)'; \
echo 'dep:libgccbiar
echo 'dep:libcdev=
echo 'dep:libcbiarch
echo 'dep:libcbiarch
echo 'dep:libunwindd
echo 'dep:libcxxbiar
echo 'dep:libgnat='; \
) > debian/
[ -e debian/
&& cmp -s debian/
&& rm -f debian/
mv debian/
touch stamps/
for f in debian/*-BV*; do \
f2=$(echo $f | sed 's/BV/3.
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/
/usr/bin/make -f debian/rules2 stamps/
make[1]: Entering directory `/home/
dh_testdir
: # give information about the build process
-------
Package source: gcc-3.4
Version: 3.4.6
Base Debian version:
Configured with: -v
--enable-
--prefix=/usr
--libexecdir=
--with-
--enable-shared
--with-
--enable-nls
--without-
--program-
--enable-
--with-
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/
make[1]: Leaving directory `/home/
make: *** [stamps/
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
prewitt@
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
|
#21 |
Hi,
That last error is a known bug: See https:/
"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
|
#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_
Native configuration is i486-pc-linux-gnu
=== gcc tests ===
Running target unix
FAIL: gcc.c-torture/
=== gcc Summary ===
# of expected passes 25378
# of unexpected failures 1
# of expected failures 70
# of untested testcases 7
# of unsupported tests 211
/home/prewitt/
...
...
...
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
|
#23 |
Hi,
You made a typo there:
it should be
sudo dpkg <DASH>i <DASH><
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
|
#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_
Unpacking replacement gcc-3.4 ...
Preparing to replace gcc-3.4-base 3.4.6-8ubuntu2 (using gcc-3.4-
Unpacking replacement gcc-3.4-base ...
Selecting previously deselected package gcc-3.4-doc.
Unpacking gcc-3.4-doc (from gcc-3.4-
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_
Unpacking replacement cpp-3.4 ...
Selecting previously deselected package cpp-3.4-doc.
Unpacking cpp-3.4-doc (from cpp-3.4-
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
|
#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:
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
|
#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
|
#27 |
Hi Jim,
Is your issue solved?
Regards,
Mark
Revision history for this message
|
#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
|
#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
|
#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
|
#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