Sir, Thank you very much for your mail about patching GCC. I downloaded Patch from http://www.gnu.org/directory/patch.html site. (patch-2.5.4.tar.gz). I unpacked the same in my GNU work folder (gnu/gcc-3.2.2/gcc). But when I tried configuring GCC, it gives same message (You can try to patch GCC manually by typing a command like *** `patch -p1 < p/diffs/gcc-2.95.diff' and patching possible rejects *** by hand before you run `./configure' again.)
When I tried patch command it didnt work for me. How to install Patch command..? In the README file aslo nothing is given about patch. Is it necessary to install patch? If so what I have to do?
The following error occurs: [root@EXE-INDIA2 gcc]# patch -p1 < p/diffs/gcc-2.95.diff bash: patch: command not found
But when I try the same configure command under /gnu/gcc-3.2.2/gcc/patch-2.5.4, then it worked.Few lines of output as follows: [root@EXE-INDIA2 patch-2.5.4]# configure --enable-languages=pascal loading cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes
[root@EXE-INDIA2 patch-2.5.4]# make install /bin/sh ./mkinstalldirs /usr/local/bin /usr/local/man/man1 /usr/bin/install -c patch /usr/local/bin/`echo patch | sed 's,x,x,'` /usr/bin/install -c -m 644 ./patch.man /usr/local/man/man1/`echo patch | sed 's,x,x,'`.1 Is this correct? To my knowledge the above commands should work in the gnu work folder.. Sorry for disturbing you again ana again.
Thanks and regards, B.Gayathri
B.Gayathri wrote:
Sir, Thank you very much for your mail about patching GCC. I downloaded Patch from http://www.gnu.org/directory/patch.html site. (patch-2.5.4.tar.gz). I unpacked the same in my GNU work folder (gnu/gcc-3.2.2/gcc). But when I tried configuring GCC, it gives same message (You can try to patch GCC manually by typing a command like *** `patch -p1 < p/diffs/gcc-2.95.diff' and patching possible rejects *** by hand before you run `./configure' again.)
When I tried patch command it didnt work for me. How to install Patch command..? In the README file aslo nothing is given about patch. Is it necessary to install patch? If so what I have to do?
The following error occurs: [root@EXE-INDIA2 gcc]# patch -p1 < p/diffs/gcc-2.95.diff bash: patch: command not found
But when I try the same configure command under /gnu/gcc-3.2.2/gcc/patch-2.5.4, then it worked.
Well, it is not the same configure command. `configure' is a shell script that comes with the different packages, and it's different for each one.
You first have to install patch (configure; make; make install) and make sure it's found in your PATH, i.e. calling `patch' from any directory will find it. Then configure GPC again.
BTW, I noticed something else in your original mail:
: I downloaded the GNU latest version gpc-20030830 and followed the : installation instructions given in your web site. But when I configure the : GCC, it asks to do patching, as follows: : : *** ./configure detected GCC version 3.2.2. : *** GPC 2.1 requires one of the following versions of GCC sources to build: : *** : *** 2.8.1 : *** 2.95.1 : *** 2.95.2 : *** 2.95.3-5 : *** 2.95.3-6 : *** 2.95.3 : *** 2.95.4 : *** 2.95 : *** : *** (You can try to patch GCC manually by typing a command like : *** `patch -p1 < p/diffs/gcc-2.95.diff' and patching possible rejects : *** by hand before you run `./configure' again.)
That's strange since it should also list gcc-3.x versions. Are you sure you got gpc-20030830? What does the directory /gnu/gcc-3.2.2/gcc/p/diffs contain?
Frank
Sir, I have shown the contents under the path you asked for :
[root@EXE-INDIA2 diffs]# ls gcc-2.8.1.diff gcc-2.95.3-5.diff gcc-2.95.4.diff gcc-3.0.diff.matthias-not-working-yet README gcc-2.95.1.diff gcc-2.95.3-6.diff gcc-2.95.diff gcc-3.0.diff.russ-not-working-yet gcc-2.95.2.diff gcc-2.95.3.diff gcc-2.97.diff-not-working-yet mkdiff
I guess, I have gpc-20030830, because only in that folder the contents are available. The gpc-20030830 folder is available in /gnu/gpc/. The other folders are also available in the same directory(gpc-20020510 and i686-pc-linux-gnu) but have no contents. So I feel, I have the correct one.
[root@EXE-INDIA2 gpc-20030830]# ls p [root@EXE-INDIA2 gpc-20030830]# cd p [root@EXE-INDIA2 p]# ls AUTHORS declarations.c gbe.h gpcpp.c Make-lang.in parse.h rts units ChangeLog demos gpc.c gpcspec.c module.c parse.y script utils config-lang.in diffs gpc.h INSTALL NEWS predef.c statements.c version.h COPYING doc gpc-lex.c lang.c objects.c predef.h test COPYING.DEMO expressions.c gpc-lex.c.orig lang-options.h options.c p-tree.def typecheck.c COPYING.LIB FAQ gpc-options.h lang-specs.h parse.c README types.c
Thanks and regards, B.Gayathri
----- Original Message ----- From: "Frank Heckenbach" ih8mj@fjf.gnu.de To: gpc@gnu.de Sent: Thursday, January 08, 2004 9:13 PM Subject: Re: Thanks for your timely help!!
B.Gayathri wrote:
Sir, Thank you very much for your mail about patching GCC. I downloaded Patch from http://www.gnu.org/directory/patch.html site. (patch-2.5.4.tar.gz). I unpacked the same in my GNU work folder (gnu/gcc-3.2.2/gcc). But when I tried configuring GCC, it gives same message (You can try to patch GCC manually by typing a command like *** `patch -p1 < p/diffs/gcc-2.95.diff' and patching possible rejects *** by hand before you run `./configure' again.)
When I tried patch command it didnt work for me. How to install Patch command..? In the README file aslo nothing is given about patch. Is it necessary to install patch? If so what I have to do?
The following error occurs: [root@EXE-INDIA2 gcc]# patch -p1 < p/diffs/gcc-2.95.diff bash: patch: command not found
But when I try the same configure command under /gnu/gcc-3.2.2/gcc/patch-2.5.4, then it worked.
Well, it is not the same configure command. `configure' is a shell script that comes with the different packages, and it's different for each one.
You first have to install patch (configure; make; make install) and make sure it's found in your PATH, i.e. calling `patch' from any directory will find it. Then configure GPC again.
BTW, I noticed something else in your original mail:
: I downloaded the GNU latest version gpc-20030830 and followed the : installation instructions given in your web site. But when I configure
the
: GCC, it asks to do patching, as follows: : : *** ./configure detected GCC version 3.2.2. : *** GPC 2.1 requires one of the following versions of GCC sources to
build:
: *** : *** 2.8.1 : *** 2.95.1 : *** 2.95.2 : *** 2.95.3-5 : *** 2.95.3-6 : *** 2.95.3 : *** 2.95.4 : *** 2.95 : *** : *** (You can try to patch GCC manually by typing a command like : *** `patch -p1 < p/diffs/gcc-2.95.diff' and patching possible rejects : *** by hand before you run `./configure' again.)
That's strange since it should also list gcc-3.x versions. Are you sure you got gpc-20030830? What does the directory /gnu/gcc-3.2.2/gcc/p/diffs contain?
Frank
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88
1707
B.Gayathri wrote:
Sir, I have shown the contents under the path you asked for :
[root@EXE-INDIA2 diffs]# ls gcc-2.8.1.diff gcc-2.95.3-5.diff gcc-2.95.4.diff gcc-3.0.diff.matthias-not-working-yet README gcc-2.95.1.diff gcc-2.95.3-6.diff gcc-2.95.diff gcc-3.0.diff.russ-not-working-yet gcc-2.95.2.diff gcc-2.95.3.diff gcc-2.97.diff-not-working-yet mkdiff
I guess, I have gpc-20030830, because only in that folder the contents are available. The gpc-20030830 folder is available in /gnu/gpc/. The other folders are also available in the same directory(gpc-20020510 and i686-pc-linux-gnu) but have no contents. So I feel, I have the correct one.
Perhaps you did something wrong when extracting the archives. The contents above are from gpc-20020510 or a similar version, not for gpc-20030830 (which comes with several gcc-3* files, not "not-working-yet").
I suggest you restart from scratch, unpacking GCC and GPC sources etc.
Frank