Re: Errors compiling nhc98-1.0pre17 with ghc-4.06



About this list Date view Thread view Subject view Author view

José Romildo Malaquias (romildo@urano.iceb.ufop.br)
Fri, 17 Mar 2000 10:22:11 -0300


On Thu, Mar 16, 2000 at 06:09:31PM +0000, Malcolm Wallace wrote: > > Floats.hs:7: parse error on input `import' > > I have still not managed to install ghc-4.06 successfully, so I can't > yet give a definite answer why this doesn't work. > > However, my first guess is that GHC perhaps needs an option like > -fglasgow-exts to recognise the primitive FFI declarations. Try adding > that to the appropriate HMAKEFLAGS definition in src/compiler98/Makefile. Your sugestion did work for this problem (see attached patch). But now compilation stoped with another error: ================================================= ghc -fglasgow-exts -syslib lang -c -cpp -o /home/romildo/rpms/BUILD/nhc98-1.0pre17/targets/ix86-L inux/obj/compiler98/GcodeLowC.o GcodeLowC.hs GcodeLowC.hs:187: parse error on input `=' Compilation had errors make[1]: *** [/home/romildo/rpms/BUILD/nhc98-1.0pre17/lib/ix86-Linux/nhc98comp] Error 1 make[1]: Leaving directory `/home/romildo/rpms/BUILD/nhc98-1.0pre17/src/compiler98' make: *** [targets/ix86-Linux/compiler-ghc] Error 2 ================================================= Hints? Romildo -- Prof. José Romildo Malaquias <romildo@iceb.ufop.br> Departamento de Computação Universidade Federal de Ouro Preto Brasil

diff -ur nhc98-1.0pre17.orig/src/compiler98/Makefile nhc98-1.0pre17/src/compiler98/Makefile --- nhc98-1.0pre17.orig/src/compiler98/Makefile Tue Mar 14 08:40:43 2000 +++ nhc98-1.0pre17/src/compiler98/Makefile Wed Mar 15 14:48:29 2000 @@ -48,7 +48,7 @@ export HFLAGS endif ifeq "ghc" "${HC}" -HMAKEFLAGS=$(shell $(LOCAL)fixghc $(GHCSYM) +CTS -syslib lang -syslib misc -CTS) +HMAKEFLAGS=$(shell $(LOCAL)fixghc $(GHCSYM) +CTS -fglasgow-exts -syslib lang -CTS) $(TARGET): $(OBJDIR)/ghc_floats.o LINK=ghc_floats.o else -------------------------------------------------------------------- To unsubscribe, send a message containing the word `unsubscribe' to: nhc-users-request@cs.york.ac.uk --------------------------------------------------------------------


About this list Date view Thread view Subject view Author view