[nhc-bugs] gcc 3.3 build failure

Ian Lynagh igloo at earth.li
Wed Oct 1 14:57:33 EDT 2003


On Sun, Sep 21, 2003 at 01:55:40PM +0100, Ian Lynagh wrote:
> On Fri, Sep 19, 2003 at 10:31:52AM +0100, Malcolm Wallace wrote:
> > Ian Lynagh <igloo at earth.li> writes:
> > 
> > > Also, your build system isn't very clear to me - what is the recommended
> > > way to use /usr/bin/gcc-2.95 as the C compiler?
> > 
> > The best way would be to set it up at configure time:
> > 
> >     CC=gcc-2.95 ./configure ...
> >     make basic
> 
> $ tar -zxf nhc98src-1.16.tar.gz 
> $ cd nhc98-1.16/
> $ CC=gcc-2.95 ./configure > ../configure.out
> cat: targets/ix86-Linux/ghcsym: No such file or directory
> $ make basic
> make: *** No rule to make target `basic-gcc', needed by `basic'.  Stop.
> $ 

I've done this for now which makes it work:

--- nhc98-1.16.orig/Makefile
+++ nhc98-1.16/Makefile
@@ -145,12 +145,14 @@

 ##### compiler build + install scripts

+COMPSUFFIX=$(if $(findstring gcc,$(BUILDCOMP)),$(CC),$(BUILDCOMP))
+
 default: all
-basic: basic-${BUILDCOMP}
-all:   all-${BUILDCOMP}
-compiler: compiler-${BUILDCOMP}
-greencard: greencard-${BUILDCOMP}
-hmake: hmake-${BUILDCOMP}
+basic: basic-${COMPSUFFIX}
+all:   all-${COMPSUFFIX}
+compiler: compiler-${COMPSUFFIX}
+greencard: greencard-${COMPSUFFIX}
+hmake: hmake-${COMPSUFFIX}
 help:
    @echo "Default target is:     basic + heapprofile + timeprofile"
    @echo "Main targets include:  basic heapprofile timeprofile"
@@ -176,10 +178,10 @@
 basic-$(CC):   runtime prelude-$(CC) pragma-$(CC) compiler-$(CC) \
         greencard-$(CC) hmake-$(CC) libraries-$(CC)

-all-$(BUILDCOMP): basic-$(BUILDCOMP) heapprofile timeprofile #hoodui
+all-$(COMPSUFFIX): basic-$(COMPSUFFIX) heapprofile timeprofile #hoodui

-heapprofile: compiler profruntime profprelude-$(BUILDCOMP) hp2graph
-timeprofile: compiler timeruntime timeprelude-$(BUILDCOMP)
+heapprofile: compiler profruntime profprelude-$(COMPSUFFIX) hp2graph
+timeprofile: compiler timeruntime timeprelude-$(COMPSUFFIX)

 profprelude-nhc: profprelude
 profprelude-ghc: profprelude



Thanks
Ian



More information about the Nhc-bugs mailing list