Skip to content

GitLab

  • Menu
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 4,864
    • Issues 4,864
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 452
    • Merge requests 452
  • 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 Compiler
  • GHCGHC
  • Issues
  • #18679
Closed
Open
Created Sep 12, 2020 by Moritz Angermann@angermanDeveloper

Hadrian `test` falls apart when LANG / LC_ALL are not set correctly.

When running

$ hadrian/build test

and the test produces non ascii characters, as in

Converter.hs:113:35: error:
    Ambiguous occurrence ‘yield’
    It could refer to
       either ‘GHC.Data.Stream.yield’,
              imported from ‘GHC.Data.Stream’ at Converter.hs:4:1-22
           or ‘Control.Concurrent.yield’,
              imported from ‘Control.Concurrent’ at Converter.hs:6:1-25
              (and originally defined in ‘GHC.Conc.Sync’)

hadrian will fail with:

=====> concprog001(threaded2) 1 of 1 [0, 0, 0]
cd "/run/user/1001/ghctest-be7ny599/test   spaces/testsuite/tests/concurrent/prog001/concprog001.run" &&  "/home/angerman/Projects/ghc/_build/stage1/bin/ghc" --make -o concprog001 Mult -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output  -O -threaded -eventlog -package ghc< 
Compile failed (exit code 1) errors were:
[1 of 6] Compiling Converter        ( Converter.hs, Converter.o )

Converter.hs:113:35: error:
Error when running Shake build system:
  at want, called at src/Main.hs:102:30 in main:Main
* Depends on: test
* Raised the exception:
fd:141: hGetLine: invalid argument (invalid byte sequence)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking