prasad svr wrote:
I am tring to install gpc-20041218 on solaris 10 intel platform. Iam unable to apply the patch gcc-3.3.3.diff , Iam getting an error like
<snip>
*** Detected GCC version 3.3.3. *** This version of GPC requires a patch to GCC to build with *** GCC version 3.3.3. *** This patch will now be applied. *** Press ENTER to continue, Ctrl-C to abort.
File to patch: /home/prasad/gcc-install/gcc-3.3.3/gcc/p/diffs/gcc-3.3.3.diff 1 out of 1 hunks failed: saving rejects to
<snip>
1 out of 1 hunks failed: saving rejects to /home/prasad/gcc-install/gcc-3.3.3/gcc/p/diffs/gcc-3.3.3.diff.rej
AT first glance _all_ patches failed. Looks like damaged files or broken patch program. What `patch -v' says? Are you able to patch _any_ file?
You may try GNU patch (this may be the fastest way to solve the problem). Or you can examine the files more carefully: the first part of each hunk after removing two leading characters from each line should be identical to the corresponding part of the source file -- if it is not the case then you have damaged files. Typical damage may be line endings, if some of your files went trough a Windows machine you may have non-Unix line endings in them.
It is also possible that your patch program does not support context diffs.