
#8781: check if GNU nm is really needed and if so let configure detect gnm ----------------------------------------+----------------------------- Reporter: maeder | Owner: kgardas Type: feature request | Status: patch Priority: normal | Milestone: Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Solaris | Architecture: x86 Type of failure: Building GHC failed | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------------+----------------------------- Comment (by kgardas): No, it's not! Especially if we're doing all those exercises to make this piece of code better. The problem with {{{ x0 : _ : x2 : x3 : [] -> mkMapping x0 x3 }}} is that it matches {{{ tmp.c f 0 0 }}} line which is the last line in Solaris's nm -P tmp.o output. So you match Solaris case and pass it down to mkMapping where stripPrefix will produce Nothing and you ends with (Nothing, 0) pair being returned. IMHO not good. So if you'd like to make this piece of code nice, also please let's make it correct. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8781#comment:34 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler