On Wed, 17 Apr 2002, Frank Heckenbach wrote:
Ernst-Ludwig Bohnen wrote:
- When trying the installation on Sun Solaris 7 and 8 I run into similar problems as you report. Then, after reinstalling some gnu-tools (make-3.79, sed-3.02, grep-2.5 and patch-2.5) install.gpc worked fine without problems. I can't exactly say which one of the tools brought the breakthrough. The week point of the script is checking the right prerequisites and, if necessary, give some advice what to do.
GNU make is definitely required. No way without it.
GNU sed (or another non-crippled sed, unlike Solaris's native sed) is required for some non-critical things (like extracting docdemos), but the basic build should work without it.
GNU grep and patch *should* not be required (of course, there may always be bugs, like the one in the diff, reported by Adam, which still worked under GNU patch, but such bugs should be fixed rather than requiring these tools).
So if you can track it down to a particular tool, and if it's not make (or sed, when there is an explicit error message saying that it wants a better sed), please report it, and I'll try to avoid the dependency.
Here some test results with SUN or GNU tools activated on SunOS 5.8 when installing gpc-20020410 based on gcc-2.95.2. 'Error 3' shows the 'last words' when trying to install on HP-UX 10.20 (all 4 GNU-tools activated). BTW is there a chance to get rid of the nasty line: "*** Press ENTER to continue, Ctrl-C to abort."?
Regards, Ernst-Ludwig
make sed grep patch 3.79 3.02 2.5 2.5 <--- GNU version ---------------------------- Test 1 GNU GNU GNU GNU OK, compiled 10k lines of units & programs Test 2 GNU GNU GNU SUN Error 1 Test 3 SUN GNU GNU GNU Error 2 Test 4 GNU SUN GNU GNU Warning 1, after <RET> successfull Test 5 GNU GNU SUN GNU Installation ends successfully ^----^---------^--- Really needed as GNU-version on SUN
Error 1 ------- *** *** /tmp/bohnen/install.gpc/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 /tmp/bohnen/install.gpc/gpc-build/gcc failed, exiting. INFO: ERROR, Returncode after /tmp/bohnen/install.gpc/gcc-2.95.2/configure --enable-languages=pascal --prefix=/afs/desy.de/user/b/bohnen/.gnu is 1
Error 2 ------- rm -f ../gpcpp gcc -DIN_GCC -DGPC -DSVR4 -g -O2 -DHAIFA -Wall -Wmissing-prototypes -o ../gpcpp \ gpcpp.o ../cexp.o ../mbchar.o ../version.o `if [ xobstack.o != x ]; then echo ../obstack.o; else true; fi` `case "gcc" in "cc") if [ xalloca.o != x ]; then echo ../alloca.o; else true; fi ;; esac` `if [ x != x ]; then echo ../; else true; fi` ../../libiberty/libiberty.a src=`cd /tmp/bohnen/install.gpc/gcc-2.95.2/gcc && pwd` && \ cd /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts && make -f /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/Makefile.in srcdir=. SCRIPTDIR="$src/p/script" SHELL="/bin/sh" CFLAGS="-g -O2" AR="ar" AR_FLAGS="rc" RANLIB="true" RANLIB_TEST="[ -f true ] || ( [ "sparc-sun-solaris2.8" = "sparc-sun-solaris2.8" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" RTSFLAGS="" DESTDIR="../.." generated-files make: Fatal error in reader: /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/Makefile.in, line 116: Unexpected end of line seen Current working directory /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts *** Error code 1 make: Fatal error: Command failed for target `/tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts/configure' Current working directory /tmp/bohnen/install.gpc/gpc-build/gcc *** Error code 1 make: Fatal error: Command failed for target `all-gcc' INFO: ERROR, Returncode after make is 1
Warning 1 --------- Sorry, I could not find a non-crippled version of `sed' (one that understands regular expressions, in particular `|'). If or when you have installed one, e.g., GNU sed, available from ftp://ftp.gnu.org/pub/gnu/sed/ please install it as `sed', `gsed', or point the environment variable `SED' to it, and re-run.
This script needs a good sed to extract the demo programs from the GPC Manual. You can continue now and skip the installation of these demos.
Press ENTER to continue without docdemos; ^C to abort.
Error 3 (HP-UX 10.20) --------------------- /usr/include/sys/unistd.h:535: warning: type of `a' defaults to `int' /usr/include/sys/unistd.h:535: warning: type of `c' defaults to `int' /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts/rts.c: At top level: /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts/rts.c:656: conflicting types for `usleep' /usr/include/sys/unistd.h:375: previous declaration of `usleep' /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts/rts.c: In function `_p_Sleep': /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts/rts.c:921: warning: implicit declaration of function `_sleep' make[2]: *** [rts.o] Error 1 make[2]: Leaving directory `/scratch/tmp/bohnen/install.gpc/gpc-build/gcc/p/rts' make[1]: *** [pascal.rts] Error 2 make[1]: Leaving directory `/scratch/tmp/bohnen/install.gpc/gpc-build/gcc' make: *** [all-gcc] Error 2 ERROR, Returncode after make is 2