[GHC] #8596: windows link failure due to excessively long gcc commad line "Unable to start C:\Program Files\Haskell + Platform\2013.2.0.0\mingw\bin/realgcc.exe (error code: 87)"

GHC ghc-devs at haskell.org
Thu Dec 5 21:32:35 UTC 2013


#8596: windows link failure due to excessively long gcc commad line "Unable to
start C:\Program Files\Haskell +
Platform\2013.2.0.0\mingw\bin/realgcc.exe (error code: 87)"
---------------------------------+---------------------------
        Reporter:  joeyhess      |            Owner:
            Type:  bug           |           Status:  new
        Priority:  normal        |        Milestone:
       Component:  Compiler      |          Version:  7.6.3
      Resolution:                |         Keywords:
Operating System:  Windows       |     Architecture:  x86
 Type of failure:  None/Unknown  |       Difficulty:  Unknown
       Test Case:                |       Blocked By:
        Blocking:                |  Related Tickets:
---------------------------------+---------------------------

Comment (by joeyhess):

 I have verified that I can use response files to link my program.
 Currently generating the file from ghc -v output:

 cabal build --ghc-options='-v -keep-tmp-files' > build.log 2>&1
 grep '"dist\\build\\git-annex\\git-annex.exe"' build.log | sed -e
 's/^"[^"]*" //' -e 's/\\/\//g' > gcc.opt
 gcc @gcc.opt

 Refold probably saved me weeks of refactoring into libraries.

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


More information about the ghc-tickets mailing list