Re: gcc 3.3 build failure
Ian Lynagh <[email protected]> Wed, 1 Oct 2003 13:57:33 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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