Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,261
    • Issues 5,261
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 568
    • Merge requests 568
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #20757
Closed
Open
Issue created Nov 28, 2021 by Jakob Brünker@JakobBruenkerDeveloper

GHC.SysTools.BaseDir.findToolDir "/" on Windows results in infinite loop

Summary

Calling GHC.SysTools.BaseDir.findToolDir "/" on Windows results in

*** Exception: ghc-9.2.1.exe: could not detect mingw toolchain in the following paths:

when run in GHCi, followed by GHCi hanging, and in <<loop>> when compiled.

This bit me when I still had initSettings "/" for testing purposes but forgot about it - the non-terminating error-message wasn't very helpful in reminding me.

Expected behavior

Something along the lines of

*** Exception: ghc-9.2.1.exe: could not detect mingw toolchain in the following paths: ["/mingw", "/../mingw", "/../../mingw", "/../../../mingw"]

Environment

  • GHC version used: 9.2.1
  • Operating System: Windows 10
  • System Architecture: x86_64
Edited Nov 28, 2021 by Jakob Brünker
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking