[GHC] #16231: GHCi under powershell fails to find libgmp-10.dll when built with hadrian.

#16231: GHCi under powershell fails to find libgmp-10.dll when built with hadrian. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Keywords: | Operating System: Windows Architecture: | Type of failure: GHCi crash Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The reason seems to be that it's placed in bin, but windows looks for it under lib. Or at least it works if I copy the file over manually. GHCi works fine under msys however so only the windows shells seem to be affected. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16231 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16231: GHCi under powershell fails to find libgmp-10.dll when built with hadrian. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by AndreasK): To be more precise the file is under `.\_build\mingw\bin\libgmp-10.dll` but GHC seems to look for it under `.\_build\mingw\lib\`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16231#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16231: GHCi under powershell fails to find libgmp-10.dll when built with hadrian. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: high | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * priority: normal => high Comment: No, it's affecting all shells, the only reason it "works" in msys is because msys2 has it's own copy of `libgmp-10.dll` which it puts on the PATH. But this gmp is there for GCC's use not GHC, on Windows `gmp` is supposed to be statically linked using `libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-intree-gmp` which Make sets. TL;DR: Hadrian builds integer-gmp incorrectly. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16231#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16231: GHCi under powershell fails to find libgmp-10.dll when built with hadrian. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: high | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * cc: snowleopard, alpmesta (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16231#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16231: GHCi under powershell fails to find libgmp-10.dll when built with hadrian. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: patch Priority: high | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | https://gitlab.haskell.org/ghc/ghc/merge_requests/237 -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => patch * differential: => https://gitlab.haskell.org/ghc/ghc/merge_requests/237 Comment: I think that should fix it, but Hadrian dies locally for me. Will see when the CIs finish. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16231#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC