Skip to content

can't build HEAD with make

Summary

Seems to be multiple problems preventing a make build (commit 02372be119bd1a4e7099d2c7d5bb3de096e99409).

Steps to reproduce

git clone --recursive git@gitlab.haskell.org:ghc/ghc.git
cd ghc
./boot&&./configure
make -j
  • first problem:
    • missing -XHaskell2010 around line 63 of utils/ghc-cabal/ghc.mk leading to
      libraries/binary/src/Data/Binary/Put.hs:103:1: error:
          Data.Binary.FloatCast: Can't be safely imported!
          The module itself isn't safe.
          |
      103 | import Data.Binary.FloatCast (floatToWord, doubleToWord)
          | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • second problem:
  In file included from libraries/text/simdutf/simdutf.cpp:4:
  libraries/text/simdutf/simdutf.h:44:2: error: simdutf requires a compiler compliant with the C++11 standard
  #error simdutf requires a compiler compliant with the C++11 standard
   ^
  1 error generated.

These results on macOS Monterey

❯ cc --version
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: x86_64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Edited by Shayne Fletcher
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information