Crashing in testsuite driver

Torsten Schmits ghc-devs at schmits.me
Fri Apr 19 11:09:19 UTC 2024


I got this error recently when I would run `test` without having built 
an `exe` before.

On 4/19/24 12:49, Simon Peyton Jones wrote:
> Dear GHC-Devs
>
> Aargh! Suddenly I can't run the testsuite on HEAD.  See below.
>
> I'm on Ubuntu, and have run 'apt update; apt upgrade', so I'm up to date.
>
> This is totally stalling me. Can anyone help?  Thanks!
>
> Simon
>
>
> hadrian/build -j15 test  --skip=_build/stage0/** 
> --skip=_build/stage1/**  --docs=no-haddocks --only=T12461
> Resolving dependencies...
> Up to date
> ]0;Starting... | Run Testsuite GetExtraDeps: none
> Command line: /usr/bin/python3 -Wdefault testsuite/driver/runtests.py 
> --rootdir=testsuite/tests --rootdir=libraries/binary/tests 
> --rootdir=libraries/bytestring/tests 
> --rootdir=libraries/directory/tests 
> --rootdir=libraries/exceptions/tests 
> --rootdir=libraries/filepath/tests --rootdir=libraries/ghc-heap/tests 
> --rootdir=libraries/os-string/tests --rootdir=libraries/text/tests 
> --rootdir=libraries/array/tests --rootdir=libraries/base/tests 
> --rootdir=libraries/deepseq/tests --rootdir=libraries/exceptions/tests 
> --rootdir=libraries/ghc-compact/tests 
> --rootdir=libraries/ghc-prim/tests --rootdir=libraries/haskeline/tests 
> --rootdir=libraries/pretty/tests 
> --rootdir=libraries/template-haskell/tests 
> --rootdir=libraries/stm/tests --rootdir=libraries/unix/tests --top 
> /home/simonpj/code/HEAD-23/testsuite -e windows=False -e darwin=False 
> -e config.local=False -e config.cleanup=True -e config.accept=False -e 
> config.accept_platform=False -e config.accept_os=False -e 
> 'config.exeext='\'''\''' -e config.compiler_debugged=False -e 
> config.debug_rts=False -e ghc_with_native_codegen=True -e 
> config.have_ncg=True -e config.have_llvm=False -e 
> config.compiler_profiled=False -e config.have_RTS_linker=True -e 
> 'config.package_conf_cache_file="/home/simonpj/code/HEAD-23/_build/stage1/lib/package.conf.d/package.cache"' 
> -e 'config.libdir="/home/simonpj/code/HEAD-23/_build/stage1/lib"' -e 
> config.have_interp=True -e config.unregisterised=False -e 
> config.tables_next_to_code=True -e 'ghc_compiler_always_flags='\'' 
> -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db 
> -fno-dump-with-ways -fprint-error-index-links=never -rtsopts 
> -fno-warn-missed-specialisations -fshow-warning-groups 
> -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat 
> -dno-debug-output'\''' -e ghc_with_dynamic_rts=True -e 
> config.ghc_with_threaded_rts=True -e config.have_fast_bignum=True -e 
> target_with_smp=True -e config.ghc_dynamic=True -e 
> config.leading_underscore=False -e 'config.wordsize="64"' -e 
> 'config.os="linux"' -e 'config.arch="x86_64"' -e 
> 'config.platform="x86_64-unknown-linux"' -e config.stage=2 --config 
> gs=gs --config 
> 'timeout_prog="/home/simonpj/code/HEAD-23/_build/testsuite/timeout/install-inplace/bin/timeout"' 
> --config stats_files_dir=_build/stage1/haddock-timing-files 
> --threads=15 --config-file=testsuite/config/ghc --only=T12461 -e 
> config.speed=1 --summary-file=testsuite_summary.txt --verbose=2 
> --config 'compiler="/home/simonpj/code/HEAD-23/_build/stage1/bin/ghc"' 
> --config 
> 'ghc_pkg="/home/simonpj/code/HEAD-23/_build/stage1/bin/ghc-pkg"' 
> --config haddock= --config 
> 'hp2ps="/home/simonpj/code/HEAD-23/_build/stage1/bin/hp2ps"' --config 
> 'hpc="/home/simonpj/code/HEAD-23/_build/stage1/bin/hpc"' -e 
> config.in_tree_compiler=True --only-report-hadrian-deps 
> /tmp/extra-file-60780399662884-22612-0
> ===> Command failed with error code: 1
> /usr/lib/python3/dist-packages/apport/report.py:13: 
> DeprecationWarning: the imp module is deprecated in favour of 
> importlib; see the module's documentation for alternative uses
>   import fnmatch, glob, traceback, errno, sys, atexit, imp, stat
> Traceback (most recent call last):
>   File "testsuite/driver/runtests.py", line 470, in <module>
>     framework_fail(name, None, 'test not found')
>   File "/home/simonpj/code/HEAD-23/testsuite/driver/testlib.py", line 
> 1537, in framework_fail
>     directory = re.sub(r'^\.[/\\]', '', str(opts.testdir))
>   File "/home/simonpj/code/HEAD-23/testsuite/driver/testglobals.py", 
> line 467, in testdir
>     raise Exception('testdir not initialized')
> Exception: testdir not initialized
> Timeout is 300
> Known ways: hpc, prof, normal_h, prof_hc_hb, prof_hb, prof_hd, 
> prof_hy, prof_hr, sanity, threaded1_ls, threaded2_hT, 
> threaded2_sanity, debug_numa, llvm, debugllvm, profllvm, profoptllvm, 
> profthreadedllvm, debug, ghci-ext, ghci-ext-prof, ext-interp, 
> nonmoving, nonmoving_thr, nonmoving_thr_sanity, nonmoving_thr_ghc, 
> compacting_gc
> Run ways: normal, optasm, ghci, ghci-opt, threaded1, threaded2, dyn, hpc
> Compile ways: normal, optasm, hpc
> Allowing performance changes in:
> Found 591 .T files...
> Beginning test run at Fri Apr 19 11:47:08 2024
> Detected CPU features:  {'flags', 'fma', 'mmx', 'smap', 'sse4_2', 
> 'abm', 'sep', 'tsc_reliable', 'syscall', 'ssbd', 'hypervisor', 
> 'rdtscp', 'sse4_1', 'ssse3', 'extd_apicid', 'ibpb', 'avx', 'sse', 
> 'constant_tsc', 'cpuid', 'avx2', 'fxsr_opt', 'rdrand', 'nonstop_tsc', 
> 'cmov', 'osvw', 'rep_good', 'misalignsse', 'pat', 'ht', 'mmxext', 
> 'mca', 'lahf_lm', 'pae', 'fsgsbase', 'f16c', 'pclmulqdq', 'clwb', 
> 'mtrr', 'popcnt', 'aes', 'topoext', 'sse4a', 'vme', 'clflush', 
> 'cr8_legacy', 'de', 'xsaveerptr', 'fxsr', 'cx16', 'arat', 'movbe', 
> 'sse3', 'nx', 'apic', '3dnowprefetch', 'rdseed', 'sha_ni', 'msr', 
> 'lm', 'pge', 'mce', 'sse2', 'xsave', 'bmi2', 'clzero', 'vmmcall', 
> 'cmp_legacy', 'tsc', 'clflushopt', 'umip', ':', 'fpu', 'virt_ssbd', 
> 'bmi1', 'xsavec', 'pdpe1gb', 'stibp', 'xgetbv1', 'pse36', 'nopl', 
> 'adx', 'cx8', 'pse', 'smep', 'xsaveopt', 'rdpid'}
> Found CPU features: flags fma mmx smap sse4_2 abm sep tsc_reliable 
> syscall ssbd hypervisor rdtscp sse4_1 ssse3 extd_apicid ibpb avx sse 
> constant_tsc cpuid avx2 fxsr_opt rdrand nonstop_tsc cmov osvw rep_good 
> misalignsse pat ht mmxext mca lahf_lm pae fsgsbase f16c pclmulqdq clwb 
> mtrr popcnt aes topoext sse4a vme clflush cr8_legacy de xsaveerptr 
> fxsr cx16 arat movbe sse3 nx apic 3dnowprefetch rdseed sha_ni msr lm 
> pge mce sse2 xsave bmi2 clzero vmmcall cmp_legacy tsc clflushopt umip 
> : fpu virt_ssbd bmi1 xsavec pdpe1gb stibp xgetbv1 pse36 nopl adx cx8 
> pse smep xsaveopt rdpid
> ]0;Finished in 1.70s Command failed
> Build failed.
> make: *** [/home/simonpj/code/Makefile-spj:35: tests-only] Error 1
> simonpj at LHR-WD-22561:~/code/HEAD-23$
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20240419/fbd06d5f/attachment.html>


More information about the ghc-devs mailing list