
#9257: CC_CLANG_BACKEND not reconfigured during bindist install -------------------------------------+------------------------------------- Reporter: | Owner: MtnViewMark | Status: new Type: bug | Milestone: Priority: normal | Version: 7.8.2 Component: Build | Keywords: clang System | Architecture: Unknown/Multiple Resolution: | Difficulty: Moderate (less Operating System: MacOS X | than a day) Type of failure: Installing | Blocked By: GHC failed | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by ezyang): Here is a workaround to solve this problem, especially if you're trying to bootstrap GHC from an old buggy bindist but your GCC is the wrong version. Create a file named gcc with the following contents: {{{ #!/usr/bin/python import sys import os os.execv("/usr/bin/gcc", ["/usr/bin/gcc"] + [i for i in sys.argv[1:] if i != "-Wno-invalid-pp-token" and i != "-Wno-unicode"]) }}} Replace both instances of `/usr/bin/gcc` if your GCC is in an unusual place. Chmod it executable. Now, when configuring your bindist, pass the configure flag `--with-gcc=/path/to/your/gcc`. This will strip out the warning flags and make things work. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9257#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler