[GHC] #9524: GHC uses wrong linker when cross compiling

GHC ghc-devs at haskell.org
Fri Aug 29 20:41:29 UTC 2014


#9524: GHC uses wrong linker when cross compiling
-------------------------------------+-------------------------------------
       Reporter:  Kritzefitz         |                   Owner:
           Type:  bug                |                  Status:  new
       Priority:  normal             |               Milestone:
      Component:  Compiler (FFI)     |                 Version:  7.8.3
       Keywords:                     |        Operating System:
   Architecture:  Unknown/Multiple   |  Unknown/Multiple
     Difficulty:  Unknown            |         Type of failure:  Building
     Blocked By:                     |  GHC failed
Related Tickets:                     |               Test Case:
                                     |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------
 Greetings,

 I tried to compile a cross compiler for x86_64-w64-mingw32.
 Most of GHC compiles fine. However, after a while there's an error that ld
 can't find a reference to "GetModuleFileNameW". I tried compiling a dummy
 C program with that symbol and it compiles fine.
 My guess is that GHC is using the wrong linker during cross-compiling,
 whereas GCC uses the right one. But I may be totally wrong, so please
 don't rely on that judgement.
 The log of the make run is attached.

 Regards
 Sven

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


More information about the ghc-tickets mailing list