[GHC] #1883: GHC can't find library using "short" name

GHC ghc-devs at haskell.org
Sun Sep 27 10:12:17 UTC 2015


#1883: GHC can't find library using "short" name
-------------------------------------+-------------------------------------
        Reporter:  m4dc4p            |                Owner:  Phyx-
            Type:  bug               |               Status:  new
        Priority:  lowest            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  6.6.1
      Resolution:                    |             Keywords:  link library
                                     |  windows
Operating System:  Windows           |         Architecture:  x86
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:  3658              |             Blocking:
 Related Tickets:  #2283 #3242       |  Differential Rev(s):
  #1883 #7097                        |
-------------------------------------+-------------------------------------
Changes (by Phyx-):

 * owner:   => Phyx-


Comment:

 Assigning this to myself as this will be fixed once the fix for the test
 in #9907 or Phab:D1244 is pushed.

 The reason this still doesn't work is that the code that Simon added won't
 be called in a few cases. This code was added in `Linker.c` which is
 called from `Linker.hs`. `Linker.hs` itself tries to find the library by
 just appending ".dll" to the name.

 Eventually none of the methods will be able to find the DLL and we then
 the code assumes the `Linker.c` can find it, so it passes the short name
 to the `addDLL` function. Eventually `addDLL` tries `lib%s.DLL` but this
 will most of the time fail since `LoadLibrary` won't be able to find it
 because the `extra-lib-dirs` paths are never used by it.

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


More information about the ghc-tickets mailing list