Error compiling nhc98-3.06: ghc is not known

Hello. Just compiling hmake-3.06 in my Red Hat Linux 7.3 box with GHC 5.04, and found the following: ================================ $ ghc --version The Glorious Glasgow Haskell Compilation System, version 5.04 $ ./configure --prefix=/usr --mandir=/usr/share/man/man1 --buildwith=ghc --buildopts=-O [...] $ make 'OPT=-O2 -march=i386 -mcpu=i686' [...] cd src/interpreter; make HC=ghc install make[1]: Entering directory `/home/romildo/rpmbuild/BUILD/hmake-3.06/src/interpreter' mkdir -p /home/romildo/rpmbuild/BUILD/hmake-3.06/targets/ix86-Linux/obj/interpreter /home/romildo/rpmbuild/BUILD/hmake-3.06/script/hmake -ghc HInteractive -d/home/romildo/rpmbuild/BUILD/hmake-3.06/targets/ix86-Linux/obj/interpreter -O \ -i../hmake -package lang -package util -DUSE_READLINE=1 -lreadline -lncurses Fail: hmake: the compiler 'ghc' is not known. Stop - hmake dependency error. make[1]: *** [/home/romildo/rpmbuild/BUILD/hmake-3.06/lib/ix86-Linux/HInteractive] Error 1 make[1]: Leaving directory `/home/romildo/rpmbuild/BUILD/hmake-3.06/src/interpreter' make: *** [targets/ix86-Linux/hi-ghc] Error 2 error: Bad exit status from /home/romildo/rpmbuild/tmp/rpm-tmp.30745 (%build) Any clue? ================================ Romildo -- Prof. José Romildo Malaquias Departamento de Computação - Universidade Federal de Ouro Preto http://www.decom.ufop.br/prof/romildo/ romildo@iceb.ufop.br http://uber.com.br/romildo/ romildo@uber.com.br

Jose Romildo Malaquias
Fail: hmake: the compiler 'ghc' is not known.
What does the following command report? cd /home/romildo/rpmbuild/BUILD/hmake-3.06; script/hmake-config lib/ix86-Linux/hmakerc list If ghc is not on the list, then something probably went wrong with the script targets/ix86-Linux/hmake3.config - can you send the contents of that script as well? Regards, Malcolm

On Tue, Aug 13, 2002 at 11:23:59AM +0100, Malcolm Wallace wrote:
Jose Romildo Malaquias
writes: Fail: hmake: the compiler 'ghc' is not known.
What does the following command report?
cd /home/romildo/rpmbuild/BUILD/hmake-3.06; script/hmake-config lib/ix86-Linux/hmakerc list
$ cd /home/romildo/rpmbuild/BUILD/hmake-3.06 $ script/hmake-config lib/ix86-Linux/hmakerc list Config file is: lib/ix86-Linux/hmakerc Known compilers: nhc98 (v1.14) ghc-5.04 (5.04) ghc (5.04) /usr/bin/nhc98 (v1.14) /usr/bin/ghc-5.04 (5.04) /usr/bin/ghc (5.04) Default compiler: ghc $ ls -l /usr/bin/ghc* lrwxrwxrwx 1 root root 8 Jul 12 17:16 /usr/bin/ghc -> ghc-5.04* -rwxr-xr-x 1 root root 136 Jul 12 03:18 /usr/bin/ghc-5.04* lrwxrwxrwx 1 root root 12 Jul 12 17:16 /usr/bin/ghc-pkg -> ghc-pkg-5.04* -rwxr-xr-x 1 root root 165 Jul 12 03:18 /usr/bin/ghc-pkg-5.04* lrwxrwxrwx 1 root root 9 Jul 12 17:16 /usr/bin/ghci -> ghci-5.04* -rwxr-xr-x 1 root root 151 Jul 12 03:18 /usr/bin/ghci-5.04* -rwxr-xr-x 1 root root 6733 Jul 12 03:18 /usr/bin/ghcprof*
If ghc is not on the list, then something probably went wrong with the script targets/ix86-Linux/hmake3.config - can you send the contents of that script as well?
ghc is on the list (4 times), as well as nhc98 (2 times). The script is attached. ghc has been installed from ftp://ftp.cse.unsw.edu.au/pub/users/chak/jibunmaki/i386/ghc-5.04-1.i386.rpm nhc98 v1.14 and hmake-3.05 are also installed. Regards, Romildo -- Prof. José Romildo Malaquias Departamento de Computação - Universidade Federal de Ouro Preto http://www.decom.ufop.br/prof/romildo/ romildo@iceb.ufop.br http://uber.com.br/romildo/ romildo@uber.com.br

Jose Romildo Malaquias
Fail: hmake: the compiler 'ghc' is not known.
ghc is on the list (4 times), as well as nhc98 (2 times).
I can't see anything wrong with your setup, so it is very strange that hmake reports 'ghc' is not known. Do you have a file .hmakerc/ix86-Linux under your home directory? If so, try removing it and re-starting the build. If not, then I admit defeat! Regards, Malcolm

On Wed, Aug 14, 2002 at 06:13:42PM +0100, Malcolm Wallace wrote:
Jose Romildo Malaquias
writes: Fail: hmake: the compiler 'ghc' is not known.
ghc is on the list (4 times), as well as nhc98 (2 times).
I can't see anything wrong with your setup, so it is very strange that hmake reports 'ghc' is not known.
Do you have a file .hmakerc/ix86-Linux under your home directory? If so, try removing it and re-starting the build. If not, then I admit defeat!
Yes, I have a file .hmakerc/ix86-Linux that I do not know how it was created and that I have not paid attention before. It is attached. Removing it solved the problem and enable me to build RPM packages. Thanks. Romildo -- Prof. José Romildo Malaquias Departamento de Computação - Universidade Federal de Ouro Preto http://www.decom.ufop.br/prof/romildo/ romildo@iceb.ufop.br http://uber.com.br/romildo/ romildo@uber.com.br

Forgot the attachement. -- Prof. José Romildo Malaquias Departamento de Computação - Universidade Federal de Ouro Preto http://www.decom.ufop.br/prof/romildo/ romildo@iceb.ufop.br http://uber.com.br/romildo/ romildo@uber.com.br
participants (2)
-
Jose Romildo Malaquias
-
Malcolm Wallace