
#7103: Compiler panic, when loading wxc in GHCi -------------------------------------+------------------------------------- Reporter: Henk-Jan | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.12.1 Component: GHCi | Version: 7.4.2 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHCi crash | Unknown/Multiple Blocked By: 3658 | Test Case: Related Tickets: #9907, #10051 | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by darthdeus): I ran into the same thing while trying to get the `mysql` package working, where after many changes I was able to get the package to successfully compile on its own, but while linking with a larger application this error essentially killed the deployment, since there doesn't seem to be a way to work around it. Removing the idata$4 section with `--no-idata4` yielded the same error with idata$5, so we tried removing that with `--no-idata5`, but then ran into the same issue with idata$7. ghc.exe: warning: inet_ntoa from ws2_32 is linked instead of __imp_inet_ntoa ghc.exe: warning: getnameinfo from ws2_32 is linked instead of __imp_getnameinfo ghc.exe: warning: getaddrinfo from ws2_32 is linked instead of __imp_getaddrinfo ghc.exe: warning: freeaddrinfo from ws2_32 is linked instead of __imp_freeaddrinfo ghc.exe: warning: accept from ws2_32 is linked instead of __imp_accept ghc.exe: warning: WSACleanup from ws2_32 is linked instead of __imp_WSACleanup ghc.exe: warning: WSAStartup from ws2_32 is linked instead of __imp_WSAStartup ghc.exe: warning: WSACleanup from ws2_32 is linked instead of __imp_WSACleanup ghc.exe: Unknown PEi386 section name `.idata$7' (while processing: C:\Haskell\ert\.cabal-sandbox\x86_64-windows- 7\libmysql.a) cabal: Error: some packages failed to install: We also tried modifying dlltool to remove the idata$7 section as well (source https://sourceware.org/git/?p=binutils.git;a=blob;f=binutils/dlltool.c), but without any success. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/7103#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler