Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,273
    • Issues 4,273
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 413
    • Merge Requests 413
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #16780

Closed
Open
Opened Jun 08, 2019 by ofry@ofry

Make-based build fails on Windows with pre-existing MSYS2/MinGW toolchain

Summary

This is related to #15948 (closed)

Make-based build fails on Windows with pre-existing MSYS2/MinGW toolchain. So pacman MinGW package can't be created.

Steps to reproduce

  1. Install MSYS/MinGW toolchain
  2. Install packages base-devel msys2-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain
  3. Install dependencies from provided PKGBUILD through pacman
makedepends=("${MINGW_PACKAGE_PREFIX}-python3-sphinx"
             "${MINGW_PACKAGE_PREFIX}-llvm"
             'make'
             'perl')
optdepends=("${MINGW_PACKAGE_PREFIX}-llvm: use LLVM for an optimized backend")
  1. git clone https://github.com/msys2/MINGW-packages.git
  2. cd MINGW-packages/mingw-w64-ghc
  3. makepkg-mingw -sCLf --skippgpcheck

Result:

mingw-w64-ghc-8.6.5-1-x86_64-build.log

ghc-stage1.exe: could not detect mingw toolchain

Environment

  • GHC version used: 8.6.5 (still not fixed in 8.10.1 too)

Optional:

  • Operating System: Windows 8.1 Enterprise 64-bit
  • System Architecture:

P.S. This issue doesn't related to Happy and Alex issues anymore. See logs.

Edited Aug 06, 2020 by ofry
Assignee
Assign to
⊥
Milestone
⊥
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#16780