Adam Naumowicz wrote:
But still, I have a problem compiling gpc-20020410 (on top of gcc-core-2.95.2) on my Sparc/Solaris machine. While trying to apply a suitable patch there is an error:
*** ../../gcc-2.95.2/gcc/configure detected GCC version 2.95.2. *** GPC 2.1 requires a patch to GCC to build with version 2.95.2. *** This patch will now be applied. *** Press ENTER to continue, Ctrl-C to abort.
Malformed patch at line 95: patch: Line must begin with '+ ', ' ', or '! '. Configure in /export/home/adamn/install/gpc/build/gcc failed, exiting.
Previously I had no problems with this patch - maybe now it is not fully compatible with native solaris patch anymore ??
This sounds plausible. I've no experience with Solaris, so this is just a wild guess: line 95 of the patch does not indeed start with '+ ', ' ', or '! ' -- it is empty. Probably Solaris patch doesn't like empty lines in unidiffs, so you may try this as a workaround:
cd gpc-20020410/p/diffs mv gcc-2.95.diff orig.gcc-2.95.diff sed -e 's/^$/ /' orig.gcc-2.95.diff > gcc-2.95.diff
Emil Jerabek
Regards, Adam Naumowicz
WWW: http://math.uwb.edu.pl/~adamn/