Hadrian woes: "ghc: unrecognised flag: -no-user-" when testing
rae@build01|20:11:58 ~/ghc/ghc-homo> hadrian/build test --flavour=devel2+werror --docs=none test --only=T14815
Up to date
| Run Testsuite GetExtraDeps: none
| Run Testsuite RunTest: none => none
/nix/store/qy5z9gcld7dljm4i5hj3z8a9l6p37y81-python3-3.8.8/bin/python3 testsuite/driver/runtests.py --rootdir=testsuite/tests --rootdir=libraries/binary/tests --rootdir=libraries/exceptions/tests --rootdir=libraries/ghc-heap/tests --rootdir=libraries/hpc/tests --rootdir=libraries/template-haskell/tests --rootdir=libraries/text/tests --rootdir=libraries/array/tests --rootdir=libraries/base/tests --rootdir=libraries/bytestring/tests --rootdir=libraries/deepseq/tests --rootdir=libraries/directory/tests --rootdir=libraries/exceptions/tests --rootdir=libraries/filepath/tests --rootdir=libraries/ghc-compact/tests --rootdir=libraries/ghc-prim/tests --rootdir=libraries/haskeline/tests --rootdir=libraries/pretty/tests --rootdir=libraries/process/tests --rootdir=libraries/stm/tests --rootdir=libraries/unix/tests --top /home/rae/ghc/ghc-homo/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 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="_build/stage1/lib/package.conf.d/package.cache"' -e 'config.libdir="_build/stage1/lib"' -e config.have_interp=True -e config.unregisterised=False -e 'ghc_compiler_always_flags='\'' -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'\''' -e ghc_with_dynamic_rts=False -e ghc_with_threaded_rts=True -e config.have_vanilla=True -e config.have_dynamic=False -e config.have_profiling=False -e config.have_fast_bignum=True -e ghc_with_smp=True -e config.ghc_dynamic=False -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/rae/ghc/ghc-homo/_build/testsuite/timeout/install-inplace/bin/timeout"' --config stats_files_dir=_build/stage1/haddock-timing-files --threads=1 --config-file=testsuite/config/ghc --only=T14815 -e config.speed=1 --summary-file=testsuite_summary.txt --verbose=2 --config 'compiler="/home/rae/ghc/ghc-homo/_build/stage1/bin/ghc"' --config 'ghc_pkg="/home/rae/ghc/ghc-homo/_build/stage1/bin/ghc-pkg"' --config haddock= --config 'hp2ps="/home/rae/ghc/ghc-homo/_build/stage1/bin/hp2ps"' --config 'hpc="/home/rae/ghc/ghc-homo/_build/stage1/bin/hpc"' -e config.in_tree_compiler=True
Failed to find `llc` command; skipping LLVM ways...
Timeout is 300
Known ways: prof, normal_h, prof_hc_hb, prof_hb, prof_hd, prof_hy, prof_hr, sanity, threaded1_ls, threaded2_hT, debug_numa, llvm, debugllvm, profllvm, profoptllvm, profthreadedllvm, debug, ghci-ext, ghci-ext-prof, ext-interp, nonmoving, nonmoving_thr, nonmoving_thr_ghc, compacting_gc
Run ways: normal, hpc, optasm, ghci, threaded1, threaded2
Compile ways: normal, hpc, optasm
Allowing performance changes in: T9872b, T9872d, TcPlugin_RewritePerf
Found 531 .T files...
Beginning test run at Tue Feb 8 20:12:06 2022
Detected CPU features: {'sse2', 'skinit', 'fxsr', 'ht', 'nopl', 'sse', 'cpuid', 'osvw', 'misalignsse', 'nonstop_tsc', 'vmmcall', 'xsave', 'lbrv', 'bpext', 'lahf_lm', 'tce', 'apic', 'flags', 'flushbyasid', 'sme', 'rdtscp', 'popcnt', 'monitor', 'perfctr_core', 'cmov', 'rdseed', 'pausefilter', 'svm', 'rdrand', 'sse4_1', 'rep_good', 'nrip_save', 'bmi1', 'pge', 'f16c', 'smca', 'constant_tsc', 'amd_dcm', 'pse36', 'xsaveopt', 'arat', 'sep', 'fma', 'clflush', 'mmx', 'pse', 'abm', 'tsc_scale', 'cx8', 'adx', 'xsaves', 'de', 'overflow_recov', 'xsaveerptr', 'mwaitx', 'hw_pstate', 'vgif', 'lm', 'perfctr_llc', 'xgetbv1', 'pdpe1gb', 'ssbd', 'aperfmperf', 'decodeassists', 'xsavec', 'mca', 'fsgsbase', 'nx', 'cmp_legacy', 'mmxext', 'irperf', 'pclmulqdq', 'smap', 'pat', 'vmcb_clean', 'syscall', 'fpu', 'tsc', 'extapic', 'movbe', 'aes', 'ibpb', 'perfctr_nb', 'clzero', 'avx2', 'pae', 'mce', 'avx', 'wdt', 'extd_apicid', 'pfthreshold', 'svm_lock', 'npt', 'sse3', 'cr8_legacy', 'cpb', 'topoext', 'msr', 'v_vmsave_vmload', 'fxsr_opt', 'sev', 'clflushopt', 'succor', 'cx16', '3dnowprefetch', 'smep', ':', 'sse4_2', 'mtrr', 'avic', 'ssse3', 'sha_ni', 'vme', 'sse4a', 'bmi2'}
Found CPU features: sse2 skinit fxsr ht nopl sse cpuid osvw misalignsse nonstop_tsc vmmcall xsave lbrv bpext lahf_lm tce apic flags flushbyasid sme rdtscp popcnt monitor perfctr_core cmov rdseed pausefilter svm rdrand sse4_1 rep_good nrip_save bmi1 pge f16c smca constant_tsc amd_dcm pse36 xsaveopt arat sep fma clflush mmx pse abm tsc_scale cx8 adx xsaves de overflow_recov xsaveerptr mwaitx hw_pstate vgif lm perfctr_llc xgetbv1 pdpe1gb ssbd aperfmperf decodeassists xsavec mca fsgsbase nx cmp_legacy mmxext irperf pclmulqdq smap pat vmcb_clean syscall fpu tsc extapic movbe aes ibpb perfctr_nb clzero avx2 pae mce avx wdt extd_apicid pfthreshold svm_lock npt sse3 cr8_legacy cpb topoext msr v_vmsave_vmload fxsr_opt sev clflushopt succor cx16 3dnowprefetch smep : sse4_2 mtrr avic ssse3 sha_ni vme sse4a bmi2
True
=====> 1 of 1 [0, 0, 0]
Wrong exit code for T14815()(expected 0 , actual 2 )
Stderr ( T14815 ):
ghc: unrecognised flag: -no-user-
Usage: For basic information, try the `--help' option.
make: *** [Makefile:25: T14815] Error 1
*** unexpected failure for T14815(normal)
Performance Metrics (test environment: local):
None collected.
Unexpected results from:
TEST="T14815"
SUMMARY for test run started at Tue Feb 8 20:12:06 2022
0:00:00.601406 spent to go through
1 total tests, which gave rise to
9 test cases, of which
5 were skipped
0 had missing libraries
0 expected passes
0 expected failures
0 caused framework failures
0 caused framework warnings
0 unexpected passes
1 unexpected failures
0 unexpected stat failures
0 fragile tests
Unexpected failures:
/run/user/1000/ghctest-1v74kk23/test spaces/testsuite/tests/deSugar/should_compile/T14815.run T14815 [bad exit code (2)] (normal)
user error (tests failed)
Build failed.
rae@build01|20:12:06 ~/ghc/ghc-homo>
Many, many (but not all) other tests failed similarly.
This is on NixOS. Recent runs of make
for the testsuite were successful (though not with this exact tree). :(