Hello,
I am using binutils-2.10,gcc-2.95.2 and gpc20010107 to build a GPc for sun-solaris-2.6. I did a configure with <gpc-src-dir>/configure --prefix=<objdir> --enable-languages=pascal --with-gnu-as --with-gnu-ld then gave make bootstrap It gives me an error fixinc.sh : cannot open file but the current directory is ofcourse <gpcsource direc>/gcc where fixinc is. Do you know what the error could be? Thank you. Kind Regards, Anu
frank@g-n-u.de wrote:
Mirsad Todorovac wrote:
I have to report a bug in your code which prevents your PASCAL compiler to be built unless -DEGCS -DEGCS92 and -DEGCS95 are all defined (using 2.95.3 back-end). This has not been set by ``configure'', so manual intervention was needed. I can't tell if defining -DEGCS97 would be better than not, but I was satisfied (as for now) with having a PASCAL running on the system!!! (alpha-dec-osf4.0b box, gcc-2.95.3 compiler suite, gmake, gsed)
Also, never in the installation instruction it isn't mentioned that GPC needs a smarter sed - this could be addressed by ``configure'' script too.
Well, I'm not so familiar with non-GNU sed's. Since you didn't tell us exactly fails with sed, I can only guess. Does the following help?
--- /home/gpc/src/p/config-lang.in.orig Mon May 7 03:54:43 2001 +++ /home/gpc/src/p/config-lang.in Sun May 27 00:58:49 2001 @@ -26,8 +26,8 @@ # stagestuff - files to add to $(STAGESTUFF) # diff_excludes - files to ignore when building diffs between two versions.
-version=`sed -ne '/version_string/s/.*"([^ "]*)[ "].*/\1/p' "$srcdir/version.c"` -mainversion=`echo $version | sed -e 's/.*"([0-9]*.[0-9]*.[0-9]*).*/\1/'` +version=`grep version_string "$srcdir/version.c" | sed -e 's/[^"]*"//;s/[ "].*//'` +mainversion="$version" if echo $version | grep '2.9|3.0' > /dev/null; then echo "#define EGCS" > gcc-version.h echo "#define EGCS92" >> gcc-version.h
(Peter, if you read this: If I'm not mistaken, mainversion is always equal to version because the regex for mainversion contained a `"' and version never contains any `"'. Since I don't know for which strange e?gc[cs] version numbering schemes this might be useful, I can't check it, either. So I'm just setting mainversion=version now. If that's not was meant, please correct it yourself.)
Also, very helpful would be if the building of PASCAL compiler wouldn't include "fixing" of C include files again, which takes anormous amount of time on Alpha/Digital-Unix box.
Building GPC always causes (most) of the C compiler to be built because GPC shares parts with it. The fixincludes thing is probably superfluous in this case, but I don't know if/how it can easily be changed. Perhaps someone else can help you there...
Maybe doing `touch stmp-fixinc' before the make helps, but that's untested.
Frank
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
-- S.Anuradha Generic Data Tools, Alcatel Chennai. Alcanet : 2-757-7123