<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I got this error recently when I would run `test` without having
      built an `exe` before.<br>
    </p>
    <div class="moz-cite-prefix">On 4/19/24 12:49, Simon Peyton Jones
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJKmMz9WdrBZvhzUprp_LfM=60sW1HBi+9RwcVrU4qaOzi-hig@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default" style="font-family:tahoma,sans-serif">Dear
          GHC-Devs</div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
        </div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif">Aargh! 
          Suddenly I can't run the testsuite on HEAD.  See below.</div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
        </div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif">I'm
          on Ubuntu, and have run 'apt update; apt upgrade', so I'm up
          to date.</div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
        </div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif">This
          is totally stalling me. Can anyone help?  Thanks!</div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
        </div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif">Simon</div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
        </div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif"><br>
        </div>
        <div class="gmail_default" style="font-family:tahoma,sans-serif">hadrian/build
          -j15 test  --skip=_build/stage0/** --skip=_build/stage1/**
           --docs=no-haddocks --only=T12461<br>
          Resolving dependencies...<br>
          Up to date<br>
          ]0;Starting... | Run Testsuite GetExtraDeps: none<br>
          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<br>
          ===> Command failed with error code: 1<br>
          /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<br>
            import fnmatch, glob, traceback, errno, sys, atexit, imp,
          stat<br>
          Traceback (most recent call last):<br>
            File "testsuite/driver/runtests.py", line 470, in
          <module><br>
              framework_fail(name, None, 'test not found')<br>
            File
          "/home/simonpj/code/HEAD-23/testsuite/driver/testlib.py", line
          1537, in framework_fail<br>
              directory = re.sub(r'^\.[/\\]', '', str(opts.testdir))<br>
            File
          "/home/simonpj/code/HEAD-23/testsuite/driver/testglobals.py",
          line 467, in testdir<br>
              raise Exception('testdir not initialized')<br>
          Exception: testdir not initialized<br>
          Timeout is 300<br>
          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<br>
          Run ways: normal, optasm, ghci, ghci-opt, threaded1,
          threaded2, dyn, hpc<br>
          Compile ways: normal, optasm, hpc<br>
          Allowing performance changes in: <br>
          Found 591 .T files...<br>
          Beginning test run at Fri Apr 19 11:47:08 2024 <br>
          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'}<br>
          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<br>
          ]0;Finished in 1.70s Command failed<br>
          Build failed.<br>
          make: *** [/home/simonpj/code/Makefile-spj:35: tests-only]
          Error 1<br>
          simonpj@LHR-WD-22561:~/code/HEAD-23$ </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ghc-devs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a>
</pre>
    </blockquote>
  </body>
</html>