Re: build failure
Malcolm Wallace <[email protected]> Mon, 14 Jun 2004 13:47:34 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
> > -----
> > .file "DErrNo.hc"
> > .local startLabel
> > .comm startLabel,0,4
> > .globl C0_NHC_46DErrNo_46ERANGE
> > .data
> > .align 4
> > -----
Another thought: the gcc-3.3.3 manual mentions this flag:
-fno-common
In C, allocate even uninitialized global variables in the data
section of the object file, rather than generating them as common
blocks. This has the effect that if the same variable is declared
(without extern) in two different compilations, you will get an
error when you link them. The only reason this might be useful is
if you wish to verify that the program will work on other systems
which always work this way.
Does it make any difference when compiling with nhc98? To test,
add the flag to line 80 of script/nhc98.inst:
CPPAS="${CC} -x c -S -fno-common"
and re-run configure.
Regards,
Malcolm