[nhc-bugs] Re: Error building hmake-3.00 in RH Linux with ghc-5.02.2
José Romildo Malaquias
romildo@uber.com.br
Mon, 21 Jan 2002 17:35:42 -0200
On Mon, Jan 21, 2002 at 06:44:34PM +0000, Malcolm Wallace wrote:
> > Compiling hmake-3.00 with ghc-5.02.2 in my RedHat Linux 7.2 box gives
> > me the following errors.
> >
> > $ ./configure --prefix=/usr --mandir=/usr/share/man/man1
> > --buildwith=ghc --buildopts=-O
> > [...]
> >
> > $ make 'OPT=-O2 -march=i386 -mcpu=i686'
> > [...]
> > sh /home/romildo/rpmbuild/BUILD/hmake-3.00/targets/ix86-Linux/hmake3.config
> > hmake-config: Warning: Config file not found:
> > '/home/romildo/rpmbuild/BUILD/hmake-3.00/lib/ix86-Linux/hmakerc'
> > hmake-config: Starting new config from scratch.
> > Fail: Can't find ghc includes at /imports
> > Fail: Can't find ghc includes at /imports
> > hmake-config: compiler not known:
> > 'ghc'
> > make[1]: *** [config] Error 2
>
> It looks like there is some trouble detecting the import directories
> for your installation of ghc. What version of ghc do you have?
> What is the full path to ghc's driver script? And does the driver
> script contain a line like this:
>
> libdir='/usr/local/lib/ghc-5.00.1'
I have ghc-5.02.2 installed from the RPM packages by
Manuel M. T. Chakravarty, available at
ftp://ftp.cse.unsw.edu.au/pub/users/chak/jibunmaki/i386/ghc-5.02.2-1.i386.rpm
I do not know exactly what is the ghc driver script, but none of
the files from the package has a line matching the regular
expression "libdir.*=", except the file /usr/bin/ghcprof, which
I believe is not being used.
There is a /usr/bin/ghc Bourne shell script:
#!/bin/sh
GHCBIN="/usr/lib/ghc-5.02.2/ghc-5.02.2";
TOPDIROPT="-B/usr/lib/ghc-5.02.2";
# Mini-driver for GHC
exec $GHCBIN $TOPDIROPT ${1+"$@"}
I hope this help diagnosing the problem.
Romildo
--
Prof. José Romildo Malaquias Departamento de Computação
http://iceb.ufop.br/~romildo Universidade Federal de Ouro Preto
romildo@iceb.ufop.br Brasil
romildo@uber.com.br