[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 17:59:14 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:10 igloo]:
> Can you give some example commands showing how to create the warnings
please?
Sorry, it seems I forgot to add that these warnings appear only on FreeBSD
9.0 or later. It is because that there were some changes or updates in
the base system toolchain, which make the linker very sensitive about
unused flags.
So the best way to reproduce them is to get a working FreeBSD 9
installation (in a virtual machine, for example) and try to build the
vanilla GHC sources. Then one should see a lot of messages like this:
{{{
gcc: --hash-size=31: linker input file unused because linking not done
gcc: --reduce-memory-overheads: linker input file unused because linking
not done
}}}
(Such messages tripled the size of the log.) Perhaps this would be fine,
but since such flags are also recorded in the "settings" file, the
compilation of every Haskell source file will generate the same messages
on FreeBSD 9.0 or later.
Note that the builder clients will not yet generate warnings as they are
at 8.1, the oldest supported release currently (where the linker does not
support the requested features).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5240#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list