Hi Folks!
I got the latest packages and tried to install on a BSD system my ISP just set up (4.5-RELEASE FreeBSD 4.5-RELEASE). It went pretty well. Following are the things I did (approximately) ending on an error message that I can't interpret. What's next?
wget http://www.gnu-pascal.de/current/gcc-core-2.95.2.tar.gz gunzip gcc-core-2.95.2.tar.gz tar xvf gcc-core-2.95.2.tar
wget http://www.gnu-pascal.de/current/gpc-20020410.tar.gz gunzip gpc-20020410.tar.gz tar xvf gpc-20020410.tar
cd gpc-20020410 mv p ../gcc-2.95.2/gcc mkdir gpc-build cd gpc-build/ /users/tds/gpc/gcc-2.95.2/configure --enable-languages=pascal
This seems to have worked fine.
make
********************************
(lots of compile messages)
xgpc: xgpc:: No such file or directory xgpc: :: No such file or directory xgpc: No: No such file or directory xgpc: such: No such file or directory xgpc: file: No such file or directory xgpc: or: No such file or directory xgpc: directory: No such file or directory xgpc: xgpc:: No such file or directory xgpc: No: No such file or directory xgpc: input: No such file or directory xgpc: files: No such file or directory *** Error code 1
Stop in /users/tds/gpc/gpc-build/gcc/p/rts. *** Error code 1
Stop in /users/tds/gpc/gpc-build/gcc. *** Error code 1
Stop in /users/tds/gpc/gpc-build.
********************************
Tom
Dr. Thomas D. Schneider National Cancer Institute Laboratory of Experimental and Computational Biology Frederick, Maryland 21702-1201 toms@ncifcrf.gov permanent email: toms@alum.mit.edu http://www.lecb.ncifcrf.gov/~toms/
On Sat, 13 Apr 2002 toms@ncifcrf.gov wrote:
Hi Folks!
I got the latest packages and tried to install on a BSD system my ISP just set up (4.5-RELEASE FreeBSD 4.5-RELEASE). It went pretty well. Following are the things I did (approximately) ending on an error message that I can't interpret. What's next?
wget http://www.gnu-pascal.de/current/gcc-core-2.95.2.tar.gz gunzip gcc-core-2.95.2.tar.gz tar xvf gcc-core-2.95.2.tar
wget http://www.gnu-pascal.de/current/gpc-20020410.tar.gz gunzip gpc-20020410.tar.gz tar xvf gpc-20020410.tar
cd gpc-20020410 mv p ../gcc-2.95.2/gcc mkdir gpc-build cd gpc-build/ /users/tds/gpc/gcc-2.95.2/configure --enable-languages=pascal
I did the same installation successfully on several Linux SuSe 7.x machines with two more parameters for configure:
--prefix=${HOME}/.gnu # or some other place to put the binary --host=$MACHTYPE # resolves on my Linux as i686-suse-linux
I put all that stuff into a script which works fine on SuSe. If you want you may download and try it out, type install.gpc -h for help:
http://www.desy.de/~bohnen/tools/install.gpc
Ernst-Ludwig
This seems to have worked fine.
make
(lots of compile messages)
xgpc: xgpc:: No such file or directory xgpc: :: No such file or directory xgpc: No: No such file or directory xgpc: such: No such file or directory xgpc: file: No such file or directory xgpc: or: No such file or directory xgpc: directory: No such file or directory xgpc: xgpc:: No such file or directory xgpc: No: No such file or directory xgpc: input: No such file or directory xgpc: files: No such file or directory *** Error code 1
Stop in /users/tds/gpc/gpc-build/gcc/p/rts. *** Error code 1
Stop in /users/tds/gpc/gpc-build/gcc. *** Error code 1
Stop in /users/tds/gpc/gpc-build.
Tom
Dr. Thomas D. Schneider National Cancer Institute Laboratory of Experimental and Computational Biology Frederick, Maryland 21702-1201 toms@ncifcrf.gov permanent email: toms@alum.mit.edu http://www.lecb.ncifcrf.gov/~toms/
Ernst:
Thanks for your help. A general installation script that works on all systems would be a big help.
I did the same installation successfully on several Linux SuSe 7.x machines with two more parameters for configure:
--prefix=${HOME}/.gnu # or some other place to put the binary --host=$MACHTYPE # resolves on my Linux as i686-suse-linux
I tried that:
(lots of messages that look ok) ... Configuration i386-pc-none not supported Configure in /users/tds/gpc/gpc-build/gcc failed, exiting.
% echo $MACHTYPE i386
After grabbing the tar, your script did this:
... 12550K .......... .......... .......... ... 100% @ 129.52 KB/s
13:53:35 (427.96 KB/s) - `gcc-2.95.2.tar.gz' saved [12885815]
Creating gcc-2.95.2 Checking permissions cd /tmp/tds/install.gpc/gpc-20020410 mv p /tmp/tds/install.gpc/gcc-2.95.2/gcc/ : mkdir /tmp/tds/install.gpc/gpc-build cd /tmp/tds/install.gpc/gpc-build /tmp/tds/install.gpc/gcc-2.95.2/configure --enable-languages=pascal --prefix=/us ers/tds/.gnu --host=i386 Configuration i386-pc-none not supported Configure in /tmp/tds/install.gpc/gpc-build/gcc failed, exiting. ERROR, Returncode after /tmp/tds/install.gpc/gcc-2.95.2/configure --enable-langu ages=pascal --prefix=/users/tds/.gnu --host=i386 is 1
Tom
On Sun, 14 Apr 2002, Tom Schneider wrote:
Ernst:
Thanks for your help. A general installation script that works on all systems would be a big help.
I did the same installation successfully on several Linux SuSe 7.x machines with two more parameters for configure:
--prefix=${HOME}/.gnu # or some other place to put the binary --host=$MACHTYPE # resolves on my Linux as i686-suse-linux
I tried that:
(lots of messages that look ok) ... Configuration i386-pc-none not supported Configure in /users/tds/gpc/gpc-build/gcc failed, exiting.
% echo $MACHTYPE i386
After grabbing the tar, your script did this:
... 12550K .......... .......... .......... ... 100% @ 129.52 KB/s
13:53:35 (427.96 KB/s) - `gcc-2.95.2.tar.gz' saved [12885815]
Creating gcc-2.95.2 Checking permissions cd /tmp/tds/install.gpc/gpc-20020410 mv p /tmp/tds/install.gpc/gcc-2.95.2/gcc/ : mkdir /tmp/tds/install.gpc/gpc-build cd /tmp/tds/install.gpc/gpc-build /tmp/tds/install.gpc/gcc-2.95.2/configure --enable-languages=pascal --prefix=/us ers/tds/.gnu --host=i386 Configuration i386-pc-none not supported Configure in /tmp/tds/install.gpc/gpc-build/gcc failed, exiting. ERROR, Returncode after /tmp/tds/install.gpc/gcc-2.95.2/configure --enable-langu ages=pascal --prefix=/users/tds/.gnu --host=i386 is 1
Hallo Tom,
I don't know whether it will help to solve your problem, but nevertheless let me tell about some new experiences with 'install.gpc'.
- I removed the MACHTYPE feature, and on SuSe 7.x systems installation works fine, as before.
- 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.
- ... and great success on HP-UX 10.20 systems. When trying installation the job never aborted nearer to the end than ever before %-))
You may download the modified version of install.gpc and install.gnu from
http://www.desy.de/~bohnen/tools/install.gpc and http://www.desy.de/~bohnen/tools/install.gnu
Before use get some help with the -h switch and when installing software select maximum verbosity with -V 2, examples:
install.gpc -V 2 # installs gpc install.gnu -V 2 -i make 3.79 # installs make version 3.79
Regards Ernst-Ludwig
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.
Frank
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
Ernst-Ludwig Bohnen wrote:
BTW is there a chance to get rid of the nasty line: "*** Press ENTER to continue, Ctrl-C to abort."?
Comment it out in config-lang.in. ;-) But seriously, do you want to get rid of the line in the output, or of the requirement to press enter? In the latter case, running `echo "" | .../configure ...' should help.
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
As I said, that's a bug. Once it's fixed (by adding the lost spaces), it should not require GNU patch.
Test 3 SUN GNU GNU GNU Error 2
Expected. One might discuss if it should print a clear error message to the effect that GNU make is required, but that's a choice to be made at top-level, i.e. in GCC, so if you'd like this, please contact the GCC developers.
Test 4 GNU SUN GNU GNU Warning 1, after <RET> successfull
Also expected (but not critical, so it's not "really needed" for the core functionality).
Test 5 GNU GNU SUN GNU Installation ends successfully ^----^---------^--- Really needed as GNU-version on SUN
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).
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'
This might be a "feature" of HP-UX's system headers. Maybe they don't like to be included in the order we do, or they want to have some other header included before. I've seen this in some other proprietary Unixes (and I don't understand it at all -- I mean how hard is it to include the required headers from the header itself, and to protect against multiple inclusion? But that's getting off-topic ... ;-). You might want to try moving the #include's in rts.c around or adding required ones to get it working (by trial and error, or by looking at other examples, or maybe by removing previous includes until you find the conflict). Preferably produce a minimal change to rts.c, to lessen the risk of breaking things this way on other systems.
/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'
Probably another detail about the headers. Could you send me everything related to "sleep" in the system headers (not the whole headers!), and in config.{log,cache} (created in the RTS build directory)?
Frank