"Peter" == Peter Gerwinski peter@gerwinski.de writes:
Peter> You can patch it with the same diff as 2.95.1. MM> MM> but there's no such diff in the gpc sources!
Peter> --> get current (alpha) distribution, gpc-19991030. Peter> (the next one is in preparation)
Okay, I got that one, I found the proper patch file in diffs/p applied and was able to "configure & make" successfully.
Next step "install" does not work according to the documentation in gpc/p/INSTALL
When everything compiles, you can verify what the `make -n pascal.install' command does, and if you are satisfied run it without the `-n' option to install the compiler `gpc1', front end `gpc', run time system `libgpc.a' to the same place where `gcc' was installed. This installation process does *not* overwrite existing copies of `libgcc.a' or `specs', should they exist.
You can also install GPC as part of the complete GNU compiler suite using "make install" as described in the GCC installation docs.
....% make pascal.install ------------------- make: *** No rule to make target `pascal.install'. Stop.
Now there's really no "pascal.install" target in the Makefile. The corresponding section in the Makefile is
INSTALL_MODULES = \ install-apache \ install-ash \ install-autoconf \ install-automake \ ......... (lots omitted) ........... install-tgas \ install-time \ install-uudecode \ install-wdiff \ install-zip \ $(EXTRA_TARGET_HOST_INSTALL_MODULES)
and $(EXTRA_TARGET_HOST_INSTALL_MODULES) is empty
>> # These can be overridden by config/mt-*. >> # The _TARGET_ is because they're specified in mt-foo. >> # The _HOST_ is because they're programs that run on the host. >> EXTRA_TARGET_HOST_ALL_MODULES = >> EXTRA_TARGET_HOST_INSTALL_MODULES = >> EXTRA_TARGET_HOST_CHECK_MODULES =
I've used a build directory different from source, and written ../gpc-gcc-src/gcc-2.95.2/configure which gave
Configuring for a i686-pc-linux-gnu host. Created "Makefile" in /usr/local/app/gcc-build using "mt-frag" Configuring libiberty... creating cache ../config.cache ................
What would have been the correct configure statement ? How do I (non-manually) install gpc now ?
BTW: Tried "make check" also which ran quite a few things and ended in errors (but not within gpc testing I think). Should I report this somewhere ?
------------------------
Peter> A new version of the FAQ is in preparation. Please search the Peter> list archives for it. MM> MM> no url?
Peter> http://www.gnu.de/archive/wilma.cgi/gpc. (also on homepage)
not quite. The above is a "Search" interface to the gpc mailing lists, and the homepages has a link to a FAQ; but that FAQ is more than three years old.
Thanks again
Hallo, Martin!
Now there's really no "pascal.install" target in the Makefile.
Then what about this?
./configure --enable-languages=pascal make make install
Configuring for a i686-pc-linux-gnu host. Created "Makefile" in /usr/local/app/gcc-build using "mt-frag" Configuring libiberty... creating cache ../config.cache ................
What would have been the correct configure statement ?
This looks okay. (Anyway, it's worth trying out the above.)
How do I (non-manually) install gpc now ?
There is to much stuff to install. I cannot recommend to try this manually.
BTW: Tried "make check" also which ran quite a few things and ended in errors (but not within gpc testing I think). Should I report this somewhere ?
There "should" be four (IIRC) known bugs in the GPC test suite (tests not ending up in "TEST foo.pas OK"). If there are significantly more failures, then something went wrong, and you should report it here.
Peter> http://www.gnu.de/archive/wilma.cgi/gpc. (also on homepage)
not quite. The above is a "Search" interface to the gpc mailing lists, and the homepages has a link to a FAQ; but that FAQ is more than three years old.
What I meant was to search the GPC mailing list for "FAQ". This will lead you to discussions about a new FAQ including some already usable proposals.
Hope this helps,
Peter
"Peter" == Peter Gerwinski peter@gerwinski.de writes:
Peter> Hallo, Martin!
>> Now there's really no "pascal.install" target in the Makefile.
Peter> Then what about this?
Peter> ./configure --enable-languages=pascal Peter> make Peter> make install
Yes, this worked.
So, currently, the
" --enable-languages=pascal "
is really necessary!
(and "make pascal.install" would still not work, nor would "make install-pascal" {{which would be more gcc-make-like}}) ---
The only thing that was needed additionally, namely the updating of the info directory file for gpc: I've edited it manually, adding (after gcc,g77) the line
* gpc: (gpc). The GNU Pascal Compiler.
>> Configuring for a i686-pc-linux-gnu host. >> Created "Makefile" in /usr/local/app/gcc-build using "mt-frag" >> Configuring libiberty... >> creating cache ../config.cache >> ................ >> >> What would have been the correct configure statement ?
Peter> This looks okay. (Anyway, it's worth trying out the above.)
>> How do I (non-manually) install gpc now ?
Peter> There is to much stuff to install. I cannot recommend to try Peter> this manually.
ok >> BTW: Tried "make check" also which ran quite a few things and ended in >> errors (but not within gpc testing I think). >> Should I report this somewhere ?
Peter> There "should" be four (IIRC) known bugs in the GPC test suite Peter> (tests not ending up in "TEST foo.pas OK"). If there are Peter> significantly more failures, then something went wrong, and you Peter> should report it here. (hmm, well maybe some other time.. it doesn't seem to test/check any pascal currently ...)
Peter> http://www.gnu.de/archive/wilma.cgi/gpc. (also on homepage) >> >> not quite. The above is a "Search" interface to the gpc mailing lists, >> and the homepages has a link to a FAQ; but that FAQ is more than three >> years old.
Peter> What I meant was to search the GPC mailing list for "FAQ". Peter> This will lead you to discussions about a new FAQ including some Peter> already usable proposals.
Peter> Hope this helps,
thank you, it did!
Martin Maechler maechler@stat.math.ethz.ch http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <><
On Fri, 7 Apr 2000, Martin Maechler wrote:
"Peter" == Peter Gerwinski peter@gerwinski.de writes:
Peter> Hallo, Martin! >> Now there's really no "pascal.install" target in the Makefile. Peter> Then what about this? Peter> ./configure --enable-languages=pascal Peter> make Peter> make install
Yes, this worked.
So, currently, the
" --enable-languages=pascal "
is really necessary!
If you don't supply this line, then gcc will build the front-ends and run-time libraries for C, Objective-C, Fortran, Java, C++ and Pascal. The --enable-languages line is simply provided to reduce the time taken to build the compiler because only C and Pascal will be built.
(and "make pascal.install" would still not work, nor would "make install-pascal" {{which would be more gcc-make-like}})
These lines are unnecessary since the installation work is done by `make install'. If you are installing gcc then you would still just type `make install'.
Nick.