Skip to content

ghc 9.0.1 testsuite fails on alpine linux

Summary

I'm trying to update ghc to 9.0.1 for the alpine 3.15 release but there are a handful tests that fails.

Steps to reproduce

On alpine edge, build ghc 9.0.1 as:

./configure \                                                                                                                                                                                                                    
  --prefix=/usr \                                                                                                         
  --disable-ld-override
make
make fasttest SKIP_PERF_TESTS=YES THREADS=$(nproc)                                                                                           

The result I got:

Unexpected results from:
TEST="T10458 T11649 T14999 T5681 T7571 T8131b encoding004 ghcilink002"

SUMMARY for test run started at Mon Oct 18 19:20:27 2021 
0:08:02.357151 spent to go through
    7716 total tests, which gave rise to
   44025 test cases, of which
   32742 were skipped

      32 had missing libraries
    7529 expected passes
     106 expected failures

       0 caused framework failures
       0 caused framework warnings
       0 unexpected passes
       8 unexpected failures
       0 unexpected stat failures
      19 fragile tests

Unexpected failures:
   libraries/base/tests/IO/encoding004.run  encoding004 [bad exit code (1)] (normal)
   ghci/linking/ghcilink002.run             ghcilink002 [bad stderr] (normal)
   ghci/linking/dyn/T10458.run              T10458 [bad stderr] (ghci)
   llvm/should_compile/T11649.run           T11649 [stderr mismatch] (optllvm)
   codeGen/should_compile/T14999.run        T14999 [bad stdout] (normal)
   llvm/should_compile/T5681.run            T5681 [stderr mismatch] (optllvm)
   llvm/should_compile/T7571.run            T7571 [stderr mismatch] (optllvm)
   llvm/should_compile/T8131b.run           T8131b [stderr mismatch] (optllvm)

Fragile test passes:
   codeGen/should_run/cgrun057.run       cgrun057 [fragile] (profasm)
   libraries/base/tests/CPUTime001.run   CPUTime001 [fragile] (normal)
   profiling/should_run/heapprof001.run  heapprof001 [fragile] (prof)
   profiling/should_run/heapprof001.run  heapprof001 [fragile] (prof_hb)
   profiling/should_run/heapprof001.run  heapprof001 [fragile] (prof_hc_hb)
   profiling/should_run/heapprof001.run  heapprof001 [fragile] (prof_hd)
   profiling/should_run/heapprof001.run  heapprof001 [fragile] (prof_hr)
   profiling/should_run/heapprof001.run  heapprof001 [fragile] (prof_hy)
   profiling/should_run/heapprof001.run  heapprof001 [fragile] (profasm)
   profiling/should_run/T15897.run       T15897 [fragile] (profasm)
   profiling/should_run/T15897.run       T15897 [fragile] (profasm)
   ghci/should_run/T3171.run             T3171 [fragile] (normal)
   profiling/should_run/T5559.run        T5559 [fragile] (ghci-ext-prof)
   profiling/should_run/T5559.run        T5559 [fragile] (prof)
   profiling/should_run/T5559.run        T5559 [fragile] (profasm)
   concurrent/should_run/T5611.run       T5611 [fragile] (normal)
   concurrent/should_run/T5611a.run      T5611a [fragile] (normal)

Fragile test failures:
   runghc/T-signals-child.run  T-signals-child [fragile] (threaded1)
   ghci/linking/T11531.run     T11531 [fragile] (normal)

make[2]: *** [../mk/test.mk:352: test] Error 1
make[2]: Leaving directory '/home/ncopa/aports/community/ghc/src/ghc-9.0.1/testsuite/tests'
make[1]: *** [../mk/test.mk:368: fast] Error 2
make[1]: Leaving directory '/home/ncopa/aports/community/ghc/src/ghc-9.0.1/testsuite/tests'
make: *** [Makefile:220: fasttest] Error 2

Expected behavior

I would expect the tests to pass (except T10458 encoding004 ghcilink002 )

Environment

  • GHC version used:

The Glorious Glasgow Haskell Compilation System, version 8.8.4

Optional:

  • Operating System: Alpine Linux edge
  • System Architecture: x86_64
Edited by Zubin
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information