ghc-toolchain-bin: Prelude.read: no parse
Summary
Whilst installing GHC 9.10.1 from binary distribution. the configure script asked me to report an issue. The relevant output is pasted below.
Steps to reproduce
Run configure && make install
in the directory obtained from https://downloads.haskell.org/ghc/9.10.1/ghc-9.10.1-x86_64-deb12-linux.tar.xz.
Expected behavior
No warning message produced.
Environment
- GHC version used: 9.10.1
Optional:
- Operating System: Debian 12
- System Architecture: x64
ghc-toolchain-bin: Prelude.read: no parse
configure: WARNING:
There are some differences between the toolchain configured by "configure" (default.target) and the toolchain configured by the "ghc-toolchain" program (default.target.ghc-toolchain).
0a1,40
> Target
> { tgtArchOs = ArchOS {archOS_arch = ArchX86_64, archOS_OS = OSLinux}
> , tgtVendor = Just "unknown"
> , tgtLocallyExecutable = True
> , tgtSupportsGnuNonexecStack = True
> , tgtSupportsSubsectionsViaSymbols = False
> , tgtSupportsIdentDirective = True
> , tgtWordSize = WS8
> , tgtEndianness = LittleEndian
> , tgtSymbolsHaveLeadingUnderscore = False
> , tgtLlvmTarget = "x86_64-unknown-linux"
> , tgtUnregisterised = False
> , tgtTablesNextToCode = True
> , tgtUseLibffiForAdjustors = False
> , tgtCCompiler = Cc {ccProgram = Program { prgPath = "/usr/bin/gcc" , prgFlags = [] }}
> , tgtCxxCompiler = Cxx {cxxProgram = Program { prgPath = "/usr/bin/g++" , prgFlags = [] }}
> , tgtCPreprocessor = Cpp {cppProgram = Program { prgPath = "/usr/bin/gcc" , prgFlags = ["-E"] }}
> , tgtHsCPreprocessor = HsCpp {hsCppProgram = Program { prgPath = "/usr/bin/gcc" , prgFlags = ["-E","-undef","-traditional"] }}
> , tgtCCompilerLink = CcLink
> { ccLinkProgram = Program { prgPath = "/usr/bin/gcc" , prgFlags = ["-fuse-ld=gold","-Wl,--no-as-needed"] }
> , ccLinkSupportsNoPie = True
> , ccLinkSupportsCompactUnwind = False
> , ccLinkSupportsFilelist = False
> , ccLinkSupportsSingleModule = False
> , ccLinkIsGnu = True
> }
>
> , tgtAr = Ar
> { arMkArchive = Program { prgPath = "/usr/bin/ar" , prgFlags = ["q"] }
> , arIsGnu = True
> , arSupportsAtFile = True
> , arSupportsDashL = False
> , arNeedsRanlib = False
> }
>
> , tgtRanlib = Just (Ranlib {ranlibProgram = Program { prgPath = "/usr/bin/ranlib" , prgFlags = [] }})
> , tgtNm = Nm {nmProgram = Program { prgPath = "/usr/bin/nm" , prgFlags = [] }}
> , tgtMergeObjs = Just (MergeObjs {mergeObjsProgram = Program { prgPath = "/usr/bin/ld.gold" , prgFlags = ["-r"] }, mergeObjsSupportsResponseFiles = True})
> , tgtWindres = Nothing
> }
Don't worry! This won't affect your ghc in any way.
However, in a near future, we will move to configuring toolchains with "ghc-toolchain" by default, so you might have discovered a future bug.
In light of it, if you've spotted this difference, please report a GHC bug at https://www.haskell.org/ghc/reportabug