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,252
    • Issues 4,252
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 397
    • Merge Requests 397
  • 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
  • #18845

Closed
Open
Opened Oct 14, 2020 by Andreas Klebinger@AndreasKDeveloper

Master fails at ./configure step on windows

Doing the usual ./boot ./configure I get the following error:

$ ./configure --enable-tarballs-autodownload --enable-large-address-space
configure: loading site script /mingw64/etc/config.site
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for GHC version date... inferred 9.1.0.20201014
checking for GHC Git commit id... inferred b5942602d0e5a3a7ab9e9a3b16557fc39c07ba59
checking for ghc... /e/ghc-8.10.2/bin/ghc
checking version of ghc... 8.10.2
GHC path canonicalised to: e:/ghc-8.10.2/bin/ghc
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking target system type... x86_64-w64-mingw32
Host platform inferred as: x86_64-unknown-mingw32
Target platform inferred as: x86_64-unknown-mingw32
GHC build  : x86_64-unknown-mingw32
GHC host   : x86_64-unknown-mingw32
GHC target : x86_64-unknown-mingw32
LLVM target: x86_64-unknown-windows
checking whether target supports a registerised ABI... yes
checking whether target supports tables next to code... yes
checking for path to top of build tree... E:/ghc_allocArea
configure: Checking for Windows toolchain tarballs...
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/MANIFEST
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/SHA256SUMS => ghc-tarballs/mingw-w64/x86_64/SHA256SUMS
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-crt-git-8.0.0.5905.066f1b3c-1-any.pkg.tar.zst => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-crt-git-8.0.0.5905.066f1b3c-1-any.pkg.tar.zst
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-headers-git-8.0.0.5905.066f1b3c-1-any.pkg.tar.zst => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-headers-git-8.0.0.5905.066f1b3c-1-any.pkg.tar.zst
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-winpthreads-git-8.0.0.5904.1278c953-1-any.pkg.tar.zst => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-winpthreads-git-8.0.0.5904.1278c953-1-any.pkg.tar.zst
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-libwinpthread-git-8.0.0.5904.1278c953-1-any.pkg.tar.zst => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-libwinpthread-git-8.0.0.5904.1278c953-1-any.pkg.tar.zst
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-zlib-1.2.11-7-any.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-zlib-1.2.11-7-any.pkg.tar.xz
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-isl-0.22.1-1-any.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-isl-0.22.1-1-any.pkg.tar.xz
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-mpfr-4.0.2-2-any.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-mpfr-4.0.2-2-any.pkg.tar.xz
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-gmp-6.2.0-1-any.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-gmp-6.2.0-1-any.pkg.tar.xz
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-zstd-1.4.5-1-any.pkg.tar.zst => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-zstd-1.4.5-1-any.pkg.tar.zst
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-binutils-2.34-2-phyx.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-binutils-2.34-2-phyx.pkg.tar.xz
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-libidn2-2.3.0-1-any.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-libidn2-2.3.0-1-any.pkg.tar.xz
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-gcc-10.2.0-3-phyx.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-gcc-10.2.0-3-phyx.pkg.tar.xz
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-mpc-1.1.0-1-any.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-mpc-1.1.0-1-any.pkg.tar.xz
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-windows-default-manifest-6.4-3-any.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-windows-default-manifest-6.4-3-any.pkg.tar.xz
Fetching https://downloads.haskell.org/ghc/mingw/0.3/x86_64/mingw-w64-x86_64-gcc-libs-10.2.0-3-phyx.pkg.tar.xz => ghc-tarballs/mingw-w64/x86_64/mingw-w64-x86_64-gcc-libs-10.2.0-3-phyx.pkg.tar.xz
configure: Extracting Windows toolchain from archives (may take a while)...
driver/gcc/gcc.c:11:10: fatal error: stdio.h: No such file or directory
   11 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
driver/utils/cwrapper.c:9:10: fatal error: stdio.h: No such file or directory
    9 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
driver/utils/getLocation.c:3:10: fatal error: stdio.h: No such file or directory
    3 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
configure: In-tree MingW-w64 tree created
checking for genlib... no
checking for -windres... no
checking for -dllwrap... no
checking for -objdump... E:/ghc_allocArea/inplace/mingw/bin/objdump.exe
checking whether the C compiler works... no
configure: error: in `/e/ghc_allocArea':
configure: error: C compiler cannot create executables
See `config.log' for more details

I've attached the full config.log as well:

config.log

I saw something about updating the bindist recently by @Phyx. But unsure if that's related.

Assignee
Assign to
9.2.1
Milestone
9.2.1
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#18845