11-Nov-99 13:16 you wrote:
Hi All
There are binaries of GPC 1999/01/18 for Solaris 7 x86 in pkgadd format to download on:
http://math.uwb.edu.pl/download/solaris7/x86/gpc-2.0-19990118-Solaris7-x86.p...
Some changes to installation instruction and Makefile should be made in order to built GPC under Solaris (both Sparc and x86).
First of all Solaris patch utility requires the name of a file to be patched. So it is not possible to patch GCC sources. I patched GCC under Linux, then moved patched sources to Solaris box. There is a GNU patch wchich probably do the job, I haven't try it yet. I suggest to put a Solaris note in the installation instruction and warn that Solaris patch tool will not work.
Next problem I faced was "if ! [ ... ]" in Makefile. Does it work under Linux?
Yes, it does. It's bash extension. Thare are was "command || command" as well as "command && command" syntax supported is B-shell for a long time. Bash supports "! command" form as well.
What would it mean "if ! [ -f file-a ] || [ -f file-b ]"?
if ! [ -f file-a ] || [ -f file-b ] ; then echo "Yes" else echo "No" fi
"No" will be printed if and only if there are exist file-a and not exist file-b :-) What are you expecting ?
Is it negation of the first test issue or whole alternative?
It's negation of one command...
It's not correct and should be changed to "if [ ! ... ]".
It IS correct but should be changed to "if [ ! ... ]" for better portability, of course...
Build process itself went flawlesly. After make pascal.install some files are not installed at all. Make is not able to find install.sh for the following targets: pascal.install-units pascal.install-demos pascal.install-info I have no idea how to fix it but I belive you know.
Please do apply those fixes and make some guys out the Linux community happier. If all that have been already fixed in some newer alpha release I apologize for wasting your precious time.
Thanks for patience, best regards
PS. Is there anybody who needs GPC working under Sparc Solaris?