[GHC] #5240: help GNU ld to use less memory when linking libraries compiled with -split-objs.
GHC
cvs-ghc at haskell.org
Sun Aug 5 21:46:29 CEST 2012
#5240: help GNU ld to use less memory when linking libraries compiled with -split-
objs.
-------------------------------+--------------------------------------------
Reporter: int-e | Owner: igloo
Type: feature request | Status: infoneeded
Priority: high | Milestone: 7.4.1
Component: Compiler | Version: 7.0.3
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
-------------------------------+--------------------------------------------
Comment(by pgj):
Replying to [comment:12 igloo]:
> Does this happen if you run [..]?
No, it does not happen. But let me note that it is because the "settings"
file does not contain the "--hash-size=31" and "--reduce-memory-overheads"
flags for the linker.
When looking deeper into the cause, it turns out that when configuring the
vanilla ghc bindist (7.4.2, built from sources on FreeBSD/amd64 -CURRENT)
for installation, all those linker flag tests fail, because !LdCmd has no
value! (That is, the configure script gives different results for linker
flag tests when building the compiler and when installing it!)
However, when I use the "settings" file right from the directory where the
compiler was originally built and the information on linker flags is not
lost (the same happens when installing the corresponding port):
{{{
> ghc -c j.c
gcc: --hash-size=31: linker input file unused because linking not done
gcc: --reduce-memory-overheads: linker input file unused because linking
not done
gcc: --hash-size=31: linker input file unused because linking not done
gcc: --reduce-memory-overheads: linker input file unused because linking
not done
}}}
Is this intentional...?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5240#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list