Jon Mountjoy wrote:
>
> Hello Everybody,
>
> [...] I thought I'd also share the following problems experienced
> while compiling ghc-2.02 on my Sparc running Solaris 2.5.1.
Here the Linux 2.0.27 success story.
> [1] It took a long time :-)
Just use it to install Hugs meanwhile. ;-))
> [2] [long cmd line problem deleted]
No problems here.
> [3] ['no member' error deleted]
And none here. This suggests a config problem for Solaris.
> [4] During installation, (gmake install), strip gets called on perl scripts.
> Doesn't cause an error of course, but may do on some systems. [...]
Perhaps one should use something like
file blah | grep "perl commands text" > /dev/null || strip blah
Same goes for shell scripts.
> [5] After installation the resulting ghc script does not work. It has about
> 4 bugs which stops perl with a syntax error. The first:
> "syntax error in file /home/jon/FunctionalLanguages/MyGHC-2.02/bin/ghc at line 4,
>next token "$libdir""
> is caused by the line
> $bindir='/home/jon/FunctionalLanguages/MyGHC-2.02/bin;'
> It should of course be:
> $bindir='/home/jon/FunctionalLanguages/MyGHC-2.02/bin';
This is wrong in other scripts, too, so change line 456 in
fptools/mk/target.mk from
echo $$"bindir='$(bindir);'" >> $$i.tmp ; \
to
echo $$"bindir='$(bindir)';" >> $$i.tmp ; \
> The other three occur around lines 1220, 1240, 1244 and are the result
> of spurious semicolons. eg: the semicolong after OK below: [...]
Didn't occur here. Perhaps I have got a more recent version?
> [6] After executing ghc script successfully, it fails with
> /home/jon/FunctionalLanguages/MyGHC-2.02/lib/hsc: No such file or directory
> It appears that hsc is installed in /MyGHC-2.02/libexec and
> the compiler expects it in /MyGHC-2.02/lib/
Alas, I don't see an easy fix for *that* one. The ghc driver script
doesn't mention the libexec Path anywhere, only the lib path. So here's
only my quick-and-dirty trick: Just before the 'make install' make a
symbolic link from lib to libexec. The relevant files are thereby
automagically installed in lib. %-]
> Anyway, after these bridges have been crossed, the hello world
> and nfib programs compile and run like the wind :-)
So do ours, but just to make sure that the weekend doesn't become
too boring, I'll try compiling on our HP-boxes next...
And a last point: IMHO it isn't a good idea that mkdependHS and hscpp
contain the absolute Path to gcc's cpp:
$RAWCPP="/soft/IFI/lang/gcc-2.7.2.1/iX86-unknown-linux/lib/gcc-lib/i586-unknown-linux/2.7.2.1/cpp
-traditional";
Migrating to another version of gcc (and thereby deleting the old one)
forces some minor (but nonetheless easily forgettable!) editing in ghc.
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne