[GHC] #9614: ghc --print-(gcc|ld)-linker-flags broken

GHC ghc-devs at haskell.org
Mon Aug 17 10:06:32 UTC 2015


#9614: ghc --print-(gcc|ld)-linker-flags broken
-------------------------------------+-------------------------------------
        Reporter:  rwbarton          |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Compiler          |                 Version:  7.8.3
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:  9421
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by bgamari):

 Indeed this is a bit unfortunate that this has stood for so long otherwise
 I would suggest we simply revert the change. As it stands though it seems
 we have a few compiler releases in the wild with this change so it is
 more-or-less here to stay.

 If understand the problem, it seems like the best solution here is to
 teach Cabal to use `--print-*-flags` ASAP. If this fails, then fall back
 to looking at `--info`, first with the new field names, and finally the
 old. It's unfortunate that querying these flags has to be so involved, but
 that seems to be how things have developed.

 The other option would be to expose the output as `--info` as a stable
 interface (which arguably it should be). If we are going to do this we
 should formally document the fields produced by `--info` so that issues
 like this don't arise unexpectedly in the future. This could either be as
 some text in the user guide or a proper type. Thoughts?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9614#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list