[GHC] #13093: Runtime linker chokes on object files created by MSVC++

GHC ghc-devs at haskell.org
Wed Aug 16 20:12:23 UTC 2017


#13093: Runtime linker chokes on object files created by MSVC++
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  Phyx-
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Runtime System    |              Version:  8.0.1
  (Linker)                           |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  GHCi crash        |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #13103            |  Differential Rev(s):  Phab:D3026
       Wiki Page:                    |  Phab:D3027 Phab:D3082 Phab:D3028
-------------------------------------+-------------------------------------

Comment (by Phyx-):

 New linker is making some significant progress here as well

 {{{
 Tamar at Destiny MINGW64 /e/temp
 $ echo "main" | ~/ghc/inplace/bin/ghc-stage2.exe --interactive LLVM.hs
 $(llvm-config --libs --link-static) $(llvm-config --system-libs --link-
 static) -L/mingw64/lib/ -lstdc++ -lgcc
 GHCi, version 8.3.20170812: http://www.haskell.org/ghc/  :? for help
 [1 of 1] Compiling Main             ( LLVM.hs, interpreted )
 Ok, 1 module loaded.
 *Main> Access violation in generated code when reading ffffffffffffffff
 }}}

 The LLVM libraries require the new `big-obj` support and also require
 proper section alignment support which now works. The remaining problem is
 that it's C++ and requires proper support for Constructors and Destructors
 via `__DTOR_LIST__` and `__CTOR_LIST__`. However I lack some knowledge of
 how the C++ ABI and linking work so I'll need to read up before I can add
 this.

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


More information about the ghc-tickets mailing list