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