[GHC] #14695: ghc --interactive error: "gcc: error: libgmp.so: No such file or directory"

GHC ghc-devs at haskell.org
Fri Jan 26 19:40:50 UTC 2018


#14695: ghc --interactive error: "gcc: error: libgmp.so: No such file or directory"
-------------------------------------+-------------------------------------
        Reporter:  osa1              |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D4330
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"cacba075d72473511f6924c6505952ff12a20316/ghc" cacba07/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="cacba075d72473511f6924c6505952ff12a20316"
 Linker: ignore empty paths in addEnvPaths

 Previously `splitEnv` worked like this:

     > splitEnv "foo:::bar::baz:"
     ["foo","","","bar","","baz",""]

 with this patch:

     > splitEnv working_dir "foo:::bar:baz:"
     ["foo",working_dir,working_dir"bar","baz",working_dir]

 This fixes #14695, where having a trailing `:` in the env variable
 caused ghci to pass empty `-B` parameter to `gcc`, which in turned
 caused the next parameter (`--print-file-name`) to be considered as the
 argument to `-B`. As a result ghci did not work.

 The `working_dir` argument is to have a similar behavior with POSIX:
 according to chapter 8.3 zero-length prefix means current working
 directory.

 Reviewers: hvr, bgamari, AndreasK, simonmar

 Reviewed By: bgamari, AndreasK, simonmar

 Subscribers: AndreasK, rwbarton, thomie, carter

 GHC Trac Issues: #14695

 Differential Revision: https://phabricator.haskell.org/D4330
 }}}

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


More information about the ghc-tickets mailing list