
#11744: Latest Xcode update violates POSIX compliance of `nm -P` ---------------------------------+---------------------------------------- Reporter: hvr | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Comment (by chak): After some talk on the mailing list, there is a simple enough workaround. Just use `nm-classic`. Specifically, check whether `xcode-select -p`/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm-classic or `xcode-select -p`/usr/bin/nm-classic exists. If yes, use that instead of ’nm’; otherwise, use ’nm’ as usual. (You need to check for both, because the former is what comes with Xcode and the latter is what comes with the standalone command line tool package.) Printing decimal numbers instead of hex with the '-P' option still looks like an oversight, but I think that would need to be taken up with the LLVM maintainers, instead of trying to route through Apple (who are probably just going to point to 'nm-classic' anyway). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11744#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler