[commit: ghc] master: Recommend more reliable recourse for broken nm (a0e1051)

git at git.haskell.org git at git.haskell.org
Thu Apr 28 08:12:01 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a0e10510c64182c7126ff426127ea8fd78c07d00/ghc

>---------------------------------------------------------------

commit a0e10510c64182c7126ff426127ea8fd78c07d00
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Thu Apr 28 10:11:13 2016 +0200

    Recommend more reliable recourse for broken nm
    
    xcrun --find seems like the appropriate choice here. Thanks to Brandon
    Allbery for suggesting this.


>---------------------------------------------------------------

a0e10510c64182c7126ff426127ea8fd78c07d00
 docs/users_guide/8.0.1-notes.rst | 3 +--
 utils/deriveConstants/Main.hs    | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/docs/users_guide/8.0.1-notes.rst b/docs/users_guide/8.0.1-notes.rst
index 4db68d2..5b10a32 100644
--- a/docs/users_guide/8.0.1-notes.rst
+++ b/docs/users_guide/8.0.1-notes.rst
@@ -24,8 +24,7 @@ performance improvements over the 7.10 branch.
     system to use the ``nm-classic`` command instead of Apple's new ``nm``
     implementation as the latter breaks POSIX compliance (see
     :ghc-ticket:`11744`). This can be done by passing something like
-    ``--with-nm=/Library/Developer/CommandLineTools/usr/bin/nm-classic`` to
-    ``configure``.
+    ``--with-nm=$(xcrun --find nm-classic)`` to ``configure``.
 
 Highlights
 ----------
diff --git a/utils/deriveConstants/Main.hs b/utils/deriveConstants/Main.hs
index 6a050d3..6cd48d4 100644
--- a/utils/deriveConstants/Main.hs
+++ b/utils/deriveConstants/Main.hs
@@ -693,7 +693,7 @@ getWanted verbose os tmpdir gccProgram gccFlags nmProgram mobjdumpProgram
              Just 0x292 -> die $ "broken 'nm' detected, see https://ghc.haskell.org/ticket/11744.\n"
                               ++ "\n"
                               ++ "Workaround: You may want to pass\n"
-                              ++ "    --with-nm=$(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm-classic\n"
+                              ++ "    --with-nm=$(xcrun --find nm-classic\n"
                               ++ "to 'configure'.\n"
              Just x     -> die ("unexpected value round-tripped for CONTROL_GROUP_CONST_291: " ++ show x)
 



More information about the ghc-commits mailing list