Problems compiling NHC98 for NetBSD/ix86

Philipp Lucas <[email protected]> Wed, 3 Mar 2004 08:39:47 +0100 (CET)
Newsgroups gmane.comp.lang.haskell.nhc.bugs
Message-ID <[email protected]>
Hi,

I have a problem building NHC98 (1.16 with the GCC-3.3 patch) on NetBSD.

Line 294 of the Makefile reads:
	$(TARGDIR)/$(MACHINE)/compiler-$(CC): $(COMPILERC)
Unfortunately, the $(COMPILERC) file are not generated:

gmake: *** Keine Regel vorhanden, um das Target »src/compiler98/*.hc«,
  benötigt von »targets/ix86-NetBSD/compiler-gcc«, zu erstellen.  Schluss.
[No rule to create src/compiler98/*.hc.]
And indeed, from line 199 on there are several rules to create hc files
for nhc, hbc and ghc, but not for gcc.

I tried to just go to src/compiler98 and run, analogously to the other
rules,
	gmake HC=gcc install
but this also fails:

/RW/users/phlucal/i/nhc98-1.16/script/hmake:
/RW/users/phlucal/i/nhc98-1.16/lib/ix86-NetBSD/MkProg: not found
Stop - hmake dependency error.

make fromC in this directory also fails because of the missing hc files.


So, before I continue to just try things and see what happens: Has anyone
succeeded in compiling nhc98 with gcc for NetBSD? What should I do?

-- 
Philipp Lucas
[email protected]