bredelings / BAli-Phy

Bayesian co-estimation of phylogenies and multiple alignments via MCMC
http://www.bali-phy.org/
GNU General Public License v2.0
46 stars 17 forks source link

test failures in 4.0-beta14 and 4.0-beta15 #21

Open douglasgscofield opened 1 week ago

douglasgscofield commented 1 week ago

I'm seeing some test failures when building from source in 4.0-beta14 and 4.0-beta15. No errors building 4.0-beta13 from source. Same build system for all:

4.0-beta14

Meson output is

rackham5: /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14 $ meson setup build --prefix=$PREFIX --buildtype=release
The Meson build system
Version: 1.1.0
Source dir: /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14
Build dir: /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build
Build type: native build
Project name: bali-phy
Project version: 4.0-beta14
C compiler for the host machine: gcc (gcc 12.3.0 "gcc (GCC) 12.3.0")
C linker for the host machine: gcc ld.bfd 2.27-44
C++ compiler for the host machine: g++ (gcc 12.3.0 "g++ (GCC) 12.3.0")
C++ linker for the host machine: g++ ld.bfd 2.27-44
Host machine cpu family: x86_64
Host machine cpu: x86_64
Has header "sys/resource.h" : YES
Has header "fenv.h" : YES
Checking for function "log2" : YES
Checking for function "feenableexcept" : YES
Configuring config.h using configuration
Compiler for C++ supports arguments -Wno-sign-compare: YES
Compiler for C++ supports arguments -Wno-maybe-uninitialized: YES
Compiler for C++ supports arguments -Woverloaded-virtual: YES
Compiler for C++ supports arguments -Wstrict-aliasing: YES
Compiler for C++ supports arguments -Wno-unknown-pragmas: YES
Compiler for C++ supports arguments -fdiagnostics-show-template-tree: YES
Compiler for C++ supports arguments -funroll-loops: YES
Compiler for C++ supports arguments -fno-math-errno: YES
Compiler for C++ supports arguments -fno-signed-zeros: YES
Run-time dependency threads found: YES
Found pkg-config: /usr/bin/pkg-config (0.27.1)
Run-time dependency cairo found: YES 1.17.4
Run-time dependency Boost (found: chrono, json, program_options, random, system) found: YES 1.83.0 (/sw/libs/boost/1.83.0-gcc12.3.0/rackham)
Run-time dependency eigen3 found: YES 3.3.4
Found CMake: /sw/build/cmake/3.26.3/rackham/bin/cmake (3.26.3)
Run-time dependency fmt found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency fmt
Building fallback subproject with default_library=static
Downloading fmt source from https://github.com/fmtlib/fmt/archive/9.1.0.tar.gz
Downloading: 100%|█████████████████████████████████| 837901/837901 [00:00<00:00, 34515586.33bytes/s]
Downloading fmt patch from https://wrapdb.mesonbuild.com/v2/fmt_9.1.0-2/get_patch
Downloading: 100%|██████████████████████████████████████| 1431/1431 [00:00<00:00, 1230937.04bytes/s]

Executing subproject fmt

fmt| Project name: fmt
fmt| Project version: 9.1.0
fmt| C++ compiler for the host machine: g++ (gcc 12.3.0 "g++ (GCC) 12.3.0")
fmt| C++ linker for the host machine: g++ ld.bfd 2.27-44
fmt| Build targets in project: 1
fmt| Subproject fmt finished.

Dependency fmt found: YES 9.1.0 (overridden)
Library dl found: YES
Has header "range/v3/view/take.hpp" : NO
Run-time dependency cereal found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency cereal
Downloading cereal source from https://github.com/USCiLab/cereal/archive/v1.3.2.tar.gz
Downloading file of unknown size.
Downloading cereal patch from https://wrapdb.mesonbuild.com/v2/cereal_1.3.2-1/get_patch
Downloading: 100%|███████████████████████████████████████| 1144/1144 [00:00<00:00, 987911.01bytes/s]

Executing subproject cereal

cereal| Project name: cereal
cereal| Project version: 1.3.2
cereal| C++ compiler for the host machine: g++ (gcc 12.3.0 "g++ (GCC) 12.3.0")
cereal| C++ linker for the host machine: g++ ld.bfd 2.27-44
cereal| Build targets in project: 1
cereal| Subproject cereal finished.

Dependency cereal from subproject subprojects/cereal-1.3.2 found: YES 1.3.2
Library m found: YES
Program pandoc found: YES (/sw/apps/pandoc/3.1.3/rackham/bin/pandoc)
Program /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/tests/run-tests.py found: YES (/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/tests/run-tests.py)
Build targets in project: 129

bali-phy 4.0-beta14

  Architecture
    arch        : x86_64
    host        : linux

  Directories
    prefix      : /sw/bioinfo/bali-phy/4.0-beta15/rackham

  Configuration
    optimization: 3
    debug       : False
    assertions  : disabled

  Libraries
    range v3    : internal
    cairo       : system

  Subprojects
    cereal      : YES
    fmt         : YES

  User defined options
    buildtype   : release
    prefix      : /sw/bioinfo/bali-phy/4.0-beta15/rackham

Found ninja-1.10.0.git.kitware.jobserver-1 at /sw/build/ninja/1.10.0/rackham/bin/ninja

The failing tests are

47/52 subsample --help                        OK                0.04s
48/52 bali-phy 48 +A 3                        FAIL              5.76s   exit status 1
>>> MALLOC_PERTURB_=242 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/bali-phy/bali-phy /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/../examples/5S-rRNA/48-muscle.fasta --iter=3 --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:

Work:
  start: Fri Nov 22 18:20:37 2024
    end: Fri Nov 22 18:20:43 2024
  total (elapsed) time: 5s (5.721s)
  total (CPU) time: 4s (4.930s)
stderr:
Created directory "48-muscle-1" for output files.
bali-phy: Error! In module 'Probability.Distribution.Bernoulli':
Can't add alias 'Probability.Random.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Probability.Distribution.Bernoulli' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

49/52 bali-phy 5d test                        FAIL             15.76s   exit status 1
>>> MALLOC_PERTURB_=53 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/bali-phy/bali-phy /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/../examples/5S-rRNA/5d-muscle.fasta --test --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:

Work:
  start: Fri Nov 22 18:20:37 2024
    end: Fri Nov 22 18:20:53 2024
  total (elapsed) time: 15s (15.705s)
  total (CPU) time: 14s (14.710s)
stderr:
bali-phy: Error! In module 'IModel':
Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'IModel' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

50/52 bali-phy 5d -A 200                      FAIL             16.75s   exit status 1
>>> MALLOC_PERTURB_=151 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/bali-phy/bali-phy /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/../examples/5S-rRNA/5d-muscle.fasta --iter=200 --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14 -Inone
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:

Work:
  start: Fri Nov 22 18:20:37 2024
    end: Fri Nov 22 18:20:54 2024
  total (elapsed) time: 16s (16.712s)
  total (CPU) time: 15s (15.760s)
stderr:
Created directory "5d-muscle-1" for output files.
bali-phy: Error! In module 'Main':
Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

51/52 bali-phy 5d +A 50                       FAIL             17.72s   exit status 1
>>> MALLOC_PERTURB_=174 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/bali-phy/bali-phy /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/../examples/5S-rRNA/5d-muscle.fasta --iter=50 --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:
T:topology ~ uniform on tree topologies
T:lengths ~ iidMap(branches(tree), gamma(0.5, /(2, num_branches(tree))))

Partition P1:
    file = /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/../examples/5S-rRNA/5d-muscle.fasta
    alphabet = DNA
    subst = tn93 (S1)
    indel = rs07 (I1)
    scale ~ gamma(0.5, 2) (Scale1)

Substitution model S1 priors:
    tn93:kappaPur ~ log_normal(log(2), 0.25)
    tn93:kappaPyr ~ log_normal(log(2), 0.25)
    tn93:pi ~ symmetric_dirichlet_on(letters(@a), 1)

Insertion/deletion model I1 priors:
    rs07:rate ~ log_laplace(-4, 0.707)
    rs07:mean_length ~ shifted_exponential(10, 1)

Run info written to "5d-muscle-2/C1.run.json"

Beginning MCMC computations.
   - Sampled numerical parameters logged to "5d-muscle-2/C1.log" as TSV
   - Sampled trees logged to "5d-muscle-2/C1.trees"
   - Sampled alignments logged to "5d-muscle-2/C1.P<partition>.fastas"

BAli-Phy does NOT detect how many iterations is sufficient:
   You need to monitor convergence and kill it when done.
   Maximum number of iterations set to 50.

You can examine 'C1.log' using BAli-Phy tool statreport (command-line) or the BEAST program Tracer (graphical).
See the manual at http://www.bali-phy.org/README.xhtml for further information.
stderr:
Created directory "5d-muscle-2" for output files.
bali-phy: Error! Can't translate undefined identifier 'Data.Either.dEqEither_21723' in expression!
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

52/52 bali-phy testsuite                      FAIL             89.30s   exit status 1
>>> MALLOC_PERTURB_=239 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/tests/run-tests.py /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/bali-phy/bali-phy --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Listing only the last 100 lines from a long log.

Running bali-phy test: parse/14  ... FAIL! ['exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: parse/13  ... FAIL! ['exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: parse/12  ... FAIL! ['exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: parse/11  ... FAIL! ['exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: parse/10  ... FAIL! ['exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: mcmc/with-imodel  ... FAIL! ['exit']
     Created directory "ignore-1" for output files.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: mcmc/two-sequences/1  ... FAIL! ['exit']
     Created directory "ignore-1" for output files.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: mcmc/two-partitions  ... FAIL! ['exit']
     Created directory "ignore-1" for output files.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: mcmc/one-sequence/1  ... FAIL! ['exit']
     Created directory "ignore-1" for output files.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: mcmc/no-imodel  ... FAIL! ['exit']
     Created directory "ignore-1" for output files.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: mcmc/fixed-scale  ... FAIL! ['exit']
     Created directory "ignore-1" for output files.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: mcmc/48-sequences/1  ... FAIL! ['exit']
     Created directory "ignore-1" for output files.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Probability.dmdist_name_61127' -> 'Probability.Dist.dmdist_name_61127' in module 'Main' because 'Probability.Dist.dmdist_name_61127' is neither declared nor imported.

Running bali-phy test: haskell/parse/1  ... ok
Running bali-phy test: haskell/math/RealFloat  ... FAIL! ['output', 'exit']
     bali-phy: Error! Can't translate undefined identifier 'Compiler.RealFloat.FloatingFromRealFloat_20429' in expression!

Running bali-phy test: haskell/Types/TypeFamilies/4  ... ok
Running bali-phy test: haskell/Types/TypeFamilies/3  ... ok
Running bali-phy test: haskell/Types/TypeFamilies/2  ... ok
Running bali-phy test: haskell/Types/TypeFamilies/1  ... ok
Running bali-phy test: haskell/Types/GADT/4  ... ok
Running bali-phy test: haskell/Types/GADT/3  ... ok
Running bali-phy test: haskell/Types/GADT/2  ... ok
Running bali-phy test: haskell/Types/GADT/1  ... ok
Running bali-phy test: haskell/Types/9  ... ok
Running bali-phy test: haskell/Types/8  ... ok
Running bali-phy test: haskell/Types/7  ... ok
Running bali-phy test: haskell/Types/6  ... ok
Running bali-phy test: haskell/Types/5  ... ok
Running bali-phy test: haskell/Types/4  ... ok
Running bali-phy test: haskell/Types/3  ... ok
Running bali-phy test: haskell/Types/2  ... ok
Running bali-phy test: haskell/Types/11  ... ok
Running bali-phy test: haskell/Types/10  ... ok
Running bali-phy test: haskell/Types/1  ... ok
Running bali-phy test: haskell/Ord/3  ... ok
Running bali-phy test: haskell/Ord/2  ... ok
Running bali-phy test: haskell/Ord/1  ... ok
Running bali-phy test: haskell/IO/3  ... ok
Running bali-phy test: haskell/IO/1  ... ok
Running bali-phy test: haskell/Data/Map  ... ok
Running bali-phy test: haskell/Data/IntSet  ... ok
Running bali-phy test: haskell/Data/IntMap  ... ok
Running bali-phy test: IO/errors/Triplets/AUTGC  ... ok
Running bali-phy test: IO/errors/Triplets/2  ... ok
Running bali-phy test: IO/errors/Triplets/1  ... ok
Running bali-phy test: IO/errors/DNA-RNA/3  ... ok
Running bali-phy test: IO/errors/DNA-RNA/2  ... ok
Running bali-phy test: IO/errors/DNA-RNA/1  ... ok
Running bali-phy test: IO/errors/Codons/stop/2  ... ok
Running bali-phy test: IO/errors/Codons/stop/1  ... ok
Running bali-phy test: IO/errors/Codons/AUTGC  ... ok
Running bali-phy test: IO/errors/Codons/3  ... ok
Running bali-phy test: IO/errors/Codons/2  ... ok
Running bali-phy test: IO/errors/Codons/1  ... ok
FAIL! (101 unexpected failures, 2 expected failures, 155 tests total)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Summary of Failures:

48/52 bali-phy 48 +A 3                FAIL              5.76s   exit status 1
49/52 bali-phy 5d test                FAIL             15.76s   exit status 1
50/52 bali-phy 5d -A 200              FAIL             16.75s   exit status 1
51/52 bali-phy 5d +A 50               FAIL             17.72s   exit status 1
52/52 bali-phy testsuite              FAIL             89.30s   exit status 1

Ok:                 47
Expected Fail:      0
Fail:               5
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Full log written to /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta14/build/meson-logs/testlog.txt
FAILED: meson-internal__test
/sw/build/meson/1.1.0/rackham/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.

4.0-beta15

Meson output is

rackham5: /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15 $ meson setup build --prefix=$PREFIX --buildtype=release
The Meson build system
Version: 1.1.0
Source dir: /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15
Build dir: /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build
Build type: native build
Project name: bali-phy
Project version: 4.0-beta15
C compiler for the host machine: gcc (gcc 12.3.0 "gcc (GCC) 12.3.0")
C linker for the host machine: gcc ld.bfd 2.27-44
C++ compiler for the host machine: g++ (gcc 12.3.0 "g++ (GCC) 12.3.0")
C++ linker for the host machine: g++ ld.bfd 2.27-44
Host machine cpu family: x86_64
Host machine cpu: x86_64
Has header "sys/resource.h" : YES
Has header "fenv.h" : YES
Checking for function "log2" : YES
Checking for function "feenableexcept" : YES
Configuring config.h using configuration
Compiler for C++ supports arguments -Wno-sign-compare: YES
Compiler for C++ supports arguments -Wno-maybe-uninitialized: YES
Compiler for C++ supports arguments -Woverloaded-virtual: YES
Compiler for C++ supports arguments -Wstrict-aliasing: YES
Compiler for C++ supports arguments -Wno-unknown-pragmas: YES
Compiler for C++ supports arguments -fdiagnostics-show-template-tree: YES
Compiler for C++ supports arguments -funroll-loops: YES
Compiler for C++ supports arguments -fno-math-errno: YES
Compiler for C++ supports arguments -fno-signed-zeros: YES
Run-time dependency threads found: YES
Found pkg-config: /usr/bin/pkg-config (0.27.1)
Run-time dependency cairo found: YES 1.17.4
Run-time dependency Boost (found: chrono, json, program_options, random, system) found: YES 1.83.0 (/sw/libs/boost/1.83.0-gcc12.3.0/rackham)
Run-time dependency eigen3 found: YES 3.3.4
Found CMake: /sw/build/cmake/3.26.3/rackham/bin/cmake (3.26.3)
Run-time dependency fmt found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency fmt
Building fallback subproject with default_library=static
Downloading fmt source from https://github.com/fmtlib/fmt/archive/10.2.0.tar.gz
Downloading: 100%|█████████████████████████████████| 854581/854581 [00:00<00:00, 43185731.23bytes/s]
Downloading fmt patch from https://wrapdb.mesonbuild.com/v2/fmt_10.2.0-2/get_patch
Downloading: 100%|██████████████████████████████████████| 1455/1455 [00:00<00:00, 1018136.86bytes/s]

Executing subproject fmt

fmt| Project name: fmt
fmt| Project version: 10.2.0
fmt| C++ compiler for the host machine: g++ (gcc 12.3.0 "g++ (GCC) 12.3.0")
fmt| C++ linker for the host machine: g++ ld.bfd 2.27-44
fmt| Build targets in project: 1
fmt| Subproject fmt finished.

Dependency fmt found: YES 10.2.0 (overridden)
Library dl found: YES
Has header "range/v3/view/take.hpp" : NO
Run-time dependency cereal found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency cereal
Downloading cereal source from https://github.com/USCiLab/cereal/archive/v1.3.2.tar.gz
Downloading: 100%|█████████████████████████████████| 385903/385903 [00:00<00:00, 18752180.92bytes/s]
Downloading cereal patch from https://wrapdb.mesonbuild.com/v2/cereal_1.3.2-1/get_patch
Downloading: 100%|███████████████████████████████████████| 1144/1144 [00:00<00:00, 805757.14bytes/s]

Executing subproject cereal

cereal| Project name: cereal
cereal| Project version: 1.3.2
cereal| C++ compiler for the host machine: g++ (gcc 12.3.0 "g++ (GCC) 12.3.0")
cereal| C++ linker for the host machine: g++ ld.bfd 2.27-44
cereal| Build targets in project: 1
cereal| Subproject cereal finished.

Dependency cereal from subproject subprojects/cereal-1.3.2 found: YES 1.3.2
Library m found: YES
Program pandoc found: YES (/sw/apps/pandoc/3.1.3/rackham/bin/pandoc)
Program /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/tests/run-tests.py found: YES (/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/tests/run-tests.py)
Build targets in project: 129

bali-phy 4.0-beta15

  Architecture
    arch        : x86_64
    host        : linux

  Directories
    prefix      : /sw/bioinfo/bali-phy/4.0-beta15/rackham

  Configuration
    optimization: 3
    debug       : False
    assertions  : disabled

  Libraries
    range v3    : internal
    cairo       : system

  Subprojects
    cereal      : YES
    fmt         : YES

  User defined options
    buildtype   : release
    prefix      : /sw/bioinfo/bali-phy/4.0-beta15/rackham

Found ninja-1.10.0.git.kitware.jobserver-1 at /sw/build/ninja/1.10.0/rackham/bin/ninja

and the failing tests are

45/52 tree-reroot --help                      OK                0.05s
46/52 path-graph --help                       OK                0.04s
47/52 subsample --help                        OK                0.04s
48/52 bali-phy 5d test                        FAIL              1.15s   exit status 1
>>> MALLOC_PERTURB_=43 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/bali-phy/bali-phy /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/../examples/5S-rRNA/5d-muscle.fasta --test --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
bali-phy: Error! In module 'Text.Show':
Can't add alias 'Data.List.dmelem_11594' -> 'Data.Foldable.dmelem_11594' in module 'Text.Show' because 'Data.Foldable.dmelem_11594' is neither declared nor imported.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

49/52 bali-phy 5d -A 200                      FAIL              1.13s   exit status 1
>>> MALLOC_PERTURB_=96 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/bali-phy/bali-phy /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/../examples/5S-rRNA/5d-muscle.fasta --iter=200 --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15 -Inone
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
Created directory "5d-muscle-2" for output files.
bali-phy: Error! In module 'Text.Show':
Can't add alias 'Data.List.dmelem_11594' -> 'Data.Foldable.dmelem_11594' in module 'Text.Show' because 'Data.Foldable.dmelem_11594' is neither declared nor imported.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

50/52 bali-phy 5d +A 50                       FAIL              1.17s   exit status 1
>>> MALLOC_PERTURB_=192 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/bali-phy/bali-phy /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/../examples/5S-rRNA/5d-muscle.fasta --iter=50 --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
Created directory "5d-muscle-1" for output files.
bali-phy: Error! In module 'Text.Show':
Can't add alias 'Data.List.dmelem_11594' -> 'Data.Foldable.dmelem_11594' in module 'Text.Show' because 'Data.Foldable.dmelem_11594' is neither declared nor imported.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

51/52 bali-phy 48 +A 3                        FAIL             18.02s   exit status 1
>>> MALLOC_PERTURB_=34 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/bali-phy/bali-phy /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/../examples/5S-rRNA/48-muscle.fasta --iter=3 --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stdout:
T:topology ~ uniform on tree topologies
T:lengths ~ iidMap(branches(tree), gamma(0.5, /(2, num_branches(tree))))

Partition P1:
    file = /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/../examples/5S-rRNA/48-muscle.fasta
    alphabet = RNA
    subst = tn93 (S1)
    indel = rs07 (I1)
    scale ~ gamma(0.5, 2) (Scale1)

Substitution model S1 priors:
    tn93:kappaPur ~ log_normal(log(2), 0.25)
    tn93:kappaPyr ~ log_normal(log(2), 0.25)
    tn93:pi ~ symmetric_dirichlet_on(letters(@a), 1)

Insertion/deletion model I1 priors:
    rs07:rate ~ log_laplace(-4, 0.707)
    rs07:mean_length ~ shifted_exponential(10, 1)

Run info written to "48-muscle-1/C1.run.json"

Beginning MCMC computations.
   - Sampled numerical parameters logged to "48-muscle-1/C1.log" as TSV
   - Sampled trees logged to "48-muscle-1/C1.trees"
   - Sampled alignments logged to "48-muscle-1/C1.P<partition>.fastas"

BAli-Phy does NOT detect how many iterations is sufficient:
   You need to monitor convergence and kill it when done.
   Maximum number of iterations set to 3.

You can examine 'C1.log' using BAli-Phy tool statreport (command-line) or the BEAST program Tracer (graphical).
See the manual at http://www.bali-phy.org/README.xhtml for further information.
stderr:
Created directory "48-muscle-1" for output files.
bali-phy: Error! Can't translate undefined identifier 'Compiler.Enum.dEnumInt_3347' in expression!
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

52/52 bali-phy testsuite                      FAIL             66.09s   exit status 1
>>> MALLOC_PERTURB_=50 /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/tests/run-tests.py /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/bali-phy/bali-phy --package-path=/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/src/builtins:/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Listing only the last 100 lines from a long log.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: mcmc/fixed-scale  ... FAIL! ['exit']
     Created directory "ignore-1" for output files.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: mcmc/48-sequences/1  ... FAIL! ['exit']
     Created directory "ignore-1" for output files.
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/parse/1  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/math/RealFloat  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Types/TypeFamilies/4  ... ok
Running bali-phy test: haskell/Types/TypeFamilies/3  ... ok
Running bali-phy test: haskell/Types/TypeFamilies/2  ... ok
Running bali-phy test: haskell/Types/TypeFamilies/1  ... ok
Running bali-phy test: haskell/Types/GADT/4  ... ok
Running bali-phy test: haskell/Types/GADT/3  ... FAIL! ['exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Types/GADT/2  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Types/GADT/1  ... ok
Running bali-phy test: haskell/Types/9  ... ok
Running bali-phy test: haskell/Types/8  ... ok
Running bali-phy test: haskell/Types/7  ... FAIL! ['exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Types/6  ... ok
Running bali-phy test: haskell/Types/5  ... ok
Running bali-phy test: haskell/Types/4  ... ok
Running bali-phy test: haskell/Types/3  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Types/2  ... FAIL! ['error']
Running bali-phy test: haskell/Types/11  ... ok
Running bali-phy test: haskell/Types/10  ... ok
Running bali-phy test: haskell/Types/1  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Ord/3  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Ord/2  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Ord/1  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/IO/3  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/IO/1  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Data/Map  ... FAIL! ['exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Data/IntSet  ... FAIL! ['exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: haskell/Data/IntMap  ... FAIL! ['output', 'exit']
     bali-phy: Error! In module 'Main':
     Can't add alias 'Prelude.dmenumFromThenTo_3345' -> 'Compiler.Enum.dmenumFromThenTo_3345' in module 'Main' because 'Compiler.Enum.dmenumFromThenTo_3345' is neither declared nor imported.

Running bali-phy test: IO/errors/Triplets/AUTGC  ... ok
Running bali-phy test: IO/errors/Triplets/2  ... ok
Running bali-phy test: IO/errors/Triplets/1  ... ok
Running bali-phy test: IO/errors/DNA-RNA/3  ... ok
Running bali-phy test: IO/errors/DNA-RNA/2  ... ok
Running bali-phy test: IO/errors/DNA-RNA/1  ... ok
Running bali-phy test: IO/errors/Codons/stop/2  ... ok
Running bali-phy test: IO/errors/Codons/stop/1  ... ok
Running bali-phy test: IO/errors/Codons/AUTGC  ... ok
Running bali-phy test: IO/errors/Codons/3  ... ok
Running bali-phy test: IO/errors/Codons/2  ... ok
Running bali-phy test: IO/errors/Codons/1  ... ok
FAIL! (118 unexpected failures, 2 expected failures, 157 tests total)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Summary of Failures:

48/52 bali-phy 5d test                FAIL              1.15s   exit status 1
49/52 bali-phy 5d -A 200              FAIL              1.13s   exit status 1
50/52 bali-phy 5d +A 50               FAIL              1.17s   exit status 1
51/52 bali-phy 48 +A 3                FAIL             18.02s   exit status 1
52/52 bali-phy testsuite              FAIL             66.09s   exit status 1

Ok:                 47
Expected Fail:      0
Fail:               5
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Full log written to /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta15/build/meson-logs/testlog.txt
FAILED: meson-internal__test
/sw/build/meson/1.1.0/rackham/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
bredelings commented 1 week ago

I think these are fixed on the development branch. It had to do with running multiple copies of bali-phy at the same time for the first time after it was compiled.

Can you try out the current version on the master branch?

I plan to release a beta-16 shortly, but if you could check that it work for you before I release it that would be helpful.

bredelings commented 1 week ago

Thanks for the bug report.

I released 4.0-beta16. I believe this fixes the problem you found.

douglasgscofield commented 1 week ago

4.0-beta16 does not have those test failures, but others. I did ninja -C build test in a freshly unpacked tarball and then did the same twice again. Test failures were slightly inconsistent but each around the same spot. Summary results for each are below.

I've also attached the testlogs from the fresh build and the first rebuild.

testlog-20241125-1335-fresh.txt testlog-20241125-1337-rebuild.txt

$ tail testlog-20241125-1335.txt
 49/216 bali-phy testsuite prob_prog/infer_tree/6                      FAIL            41.49s   exit status 1
116/216 bali-phy testsuite parse/constraints/1                         FAIL             3.59s   exit status 1
147/216 bali-phy testsuite haskell/math/RealFloat                      FAIL             1.00s   exit status 1

Ok:                 213
Expected Fail:      0
Fail:               3
Unexpected Pass:    0
Skipped:            0
Timeout:            0
rackham5: /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta16 $ tail testlog-20241125-1337.txt
 49/216 bali-phy testsuite prob_prog/infer_tree/6                      FAIL            40.89s   exit status 1
120/216 bali-phy testsuite parse/constraints/1                         FAIL             3.56s   exit status 1
148/216 bali-phy testsuite haskell/math/RealFloat                      FAIL             0.80s   exit status 1

Ok:                 213
Expected Fail:      0
Fail:               3
Unexpected Pass:    0
Skipped:            0
Timeout:            0
rackham5: /sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta16 $ tail testlog-20241125-1338.txt
 48/216 bali-phy testsuite prob_prog/infer_tree/6                      FAIL             1.59s   exit status 1
117/216 bali-phy testsuite parse/constraints/1                         FAIL             3.59s   exit status 1
147/216 bali-phy testsuite haskell/math/RealFloat                      FAIL             0.90s   exit status 1

Ok:                 213
Expected Fail:      0
Fail:               3
Unexpected Pass:    0
Skipped:            0
Timeout:            0
douglasgscofield commented 1 week ago

On a Rocky9 system, running with ninja -j 1 test just in case, there's a different set of failures.

147/216 bali-phy testsuite parse/3                                              OK               3.72s
148/216 bali-phy testsuite haskell/Types/GADT/4                                 FAIL             0.22s   exit status 1
>>> ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MALLOC_PERTURB_=37 /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16/tests/run-tests.py run haskell/Types/GADT/4 /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/easybuild_obj/src/bali-phy/bali-phy -V --package-path=/sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/easybuild_obj/src/builtins:/sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Running tests for 'bali-phy':

Running bali-phy test: .  ... FAIL! ['error']
FAIL! (1 unexpected failures, 0 expected failures, 1 tests total)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

149/216 bali-phy testsuite haskell/math/RealFloat                               OK               0.72s
150/216 bali-phy testsuite haskell/Types/GADT/1                                 OK               0.18s
151/216 bali-phy testsuite haskell/Types/9                                      OK               0.18s
152/216 bali-phy testsuite haskell/Types/8                                      OK               0.18s
153/216 bali-phy testsuite haskell/Types/GADT/3                                 OK               0.44s
154/216 bali-phy testsuite haskell/Types/6                                      OK               0.19s
155/216 bali-phy testsuite haskell/Types/5                                      OK               0.19s
156/216 bali-phy testsuite haskell/Types/4                                      FAIL             0.19s   exit status 1
>>> MALLOC_PERTURB_=45 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16/tests/run-tests.py run haskell/Types/4 /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/easybuild_obj/src/bali-phy/bali-phy -V --package-path=/sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/easybuild_obj/src/builtins:/sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Running tests for 'bali-phy':

Running bali-phy test: .  ... FAIL! ['error']
FAIL! (1 unexpected failures, 0 expected failures, 1 tests total)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

157/216 bali-phy testsuite parse/guess-alphabet/Codons/dna/3                    OK               6.92s
158/216 bali-phy testsuite haskell/Types/7                                      OK               0.44s
159/216 bali-phy testsuite haskell/Types/GADT/2                                 OK               0.57s
160/216 bali-phy testsuite haskell/Types/11                                     OK               0.19s
161/216 bali-phy testsuite haskell/Types/10                                     OK               0.18s
162/216 bali-phy testsuite haskell/Types/2                                      FAIL             0.41s   exit status 1
>>> MALLOC_PERTURB_=95 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16/tests/run-tests.py run haskell/Types/2 /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/easybuild_obj/src/bali-phy/bali-phy -V --package-path=/sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/easybuild_obj/src/builtins:/sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Running tests for 'bali-phy':

Running bali-phy test: .  ... FAIL! ['error']
FAIL! (1 unexpected failures, 0 expected failures, 1 tests total)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

163/216 bali-phy testsuite parse/16                                             OK               3.76s
164/216 bali-phy testsuite haskell/Types/3                                      OK               0.54s
165/216 bali-phy testsuite parse/13                                             OK               3.72s
166/216 bali-phy testsuite haskell/Types/1                                      OK               0.65s
167/216 bali-phy testsuite haskell/IO/3                                         OK               0.52s
168/216 bali-phy testsuite haskell/IO/1                                         OK               0.52s
169/216 bali-phy testsuite haskell/Ord/3                                        OK               0.63s
170/216 bali-phy testsuite haskell/Ord/1                                        OK               0.62s
171/216 bali-phy testsuite haskell/Ord/2                                        OK               0.64s
172/216 bali-phy testsuite parse/12                                             OK               3.72s
173/216 bali-phy testsuite IO/errors/Triplets/AUTGC                             OK               0.32s
174/216 bali-phy testsuite parse/14                                             OK               4.13s
175/216 bali-phy testsuite haskell/Data/Map                                     OK               0.65s
176/216 bali-phy testsuite haskell/Data/IntSet                                  OK               0.69s
177/216 bali-phy testsuite parse/11                                             OK               3.79s
178/216 bali-phy testsuite IO/errors/DNA-RNA/3                                  OK               0.35s
179/216 bali-phy testsuite IO/errors/Triplets/2                                 OK               0.40s
180/216 bali-phy testsuite IO/errors/Triplets/1                                 OK               0.39s
181/216 bali-phy testsuite IO/errors/DNA-RNA/2                                  OK               0.35s
182/216 bali-phy testsuite IO/errors/DNA-RNA/1                                  OK               0.33s
183/216 bali-phy testsuite mcmc/no-imodel                                       OK               3.37s
184/216 bali-phy testsuite haskell/Data/IntMap                                  OK               0.75s
185/216 bali-phy testsuite parse/M3/2                                           OK               7.54s
186/216 bali-phy testsuite prob_prog/coal_mining                                OK              10.34s
187/216 bali-phy testsuite IO/errors/Codons/AUTGC                               OK               0.28s
188/216 bali-phy testsuite mcmc/one-sequence/1                                  OK               3.53s
189/216 bali-phy testsuite parse/10                                             OK               3.87s
190/216 bali-phy testsuite IO/errors/Codons/stop/2                              OK               0.67s
191/216 bali-phy testsuite IO/errors/Codons/stop/1                              OK               0.58s
192/216 bali-phy testsuite IO/errors/Codons/2                                   OK               0.49s
193/216 bali-phy testsuite mcmc/two-sequences/1                                 OK               3.91s
194/216 bali-phy 5d +A 50                                                       OK              44.71s
195/216 bali-phy testsuite IO/errors/Codons/3                                   OK               0.70s
196/216 bali-phy testsuite IO/errors/Codons/1                                   OK               0.67s
197/216 bali-phy testsuite prob_prog/no-resample/1                              OK              43.72s
198/216 bali-phy testsuite parse/26                                             OK               5.85s
199/216 bali-phy testsuite parse/24                                             OK               5.86s
200/216 bali-phy testsuite prob_prog/infer_tree/3                               OK              43.84s
201/216 bali-phy testsuite parse/25                                             OK               6.09s
202/216 bali-phy testsuite parse/M3/1                                           OK               8.53s
203/216 bali-phy testsuite parse/19                                             OK               5.85s
204/216 bali-phy testsuite mcmc/with-imodel                                     OK               4.78s
205/216 bali-phy testsuite parse/18                                             OK               5.99s
206/216 bali-phy testsuite mcmc/fixed-scale                                     OK               4.66s
207/216 bali-phy testsuite parse/17                                             OK               6.07s
208/216 bali-phy testsuite mcmc/two-partitions                                  OK               5.23s
209/216 bali-phy testsuite mcmc/fixed-topology/unrooted                         OK               5.84s
210/216 bali-phy testsuite mcmc/fixed-topology/rooted                           OK               5.90s
211/216 bali-phy testsuite parse/23                                             OK               8.96s
212/216 bali-phy testsuite parse/22                                             OK               8.94s
213/216 bali-phy testsuite prob_prog/infer_tree/yule/1                          OK              47.00s
214/216 bali-phy testsuite parse/21                                             OK               9.18s
215/216 bali-phy 48 +A 3                                                        OK              49.18s
216/216 bali-phy testsuite mcmc/48-sequences/1                                  OK               9.42s

Summary of Failures:

148/216 bali-phy testsuite haskell/Types/GADT/4                        FAIL             0.22s   exit status 1
156/216 bali-phy testsuite haskell/Types/4                             FAIL             0.19s   exit status 1
162/216 bali-phy testsuite haskell/Types/2                             FAIL             0.41s   exit status 1

Ok:                 213
Expected Fail:      0
Fail:               3
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Full log written to /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/easybuild_obj/meson-logs/testlog.txt
FAILED: meson-internal__test
/sw/EasyBuild/broadwell-rocky9/software/Meson/1.3.1-GCCcore-12.3.0/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.

testlog-20241125-1437-rocky9.txt

bredelings commented 1 week ago

Interesting... thanks for following up.

Traceback (most recent call last):
  File "/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta16/tests/run-tests.py", line 486, in <module>
    tester.perform_test(test_subdir)
  File "/sw/bioinfo/bali-phy/4.0-beta15/src/BAli-Phy-4.0-beta16/tests/run-tests.py", line 341, in perform_test
    print(message)
UnicodeEncodeError: 'ascii' codec can't encode character '\u2022' in position 5974: ordinal not in range(128)

The first set of errors seem to be because the python test harness is trying to print some program output that contains a unicode character (a bullet symbol), but the terminal says it doesn't support unicode. And indeed your environment variables include LC_ALL=C (which says "no unicode") but you also have LANGUAGE=en_US.utf-8 (which says "unicode"). I think these don't occur on your Rocky Linux system because the environment variables there say that unicode is supported. I am looking into how to prevent this problem...

bredelings commented 1 week ago

The second set of errors seem to relate to tests where bali-phy is supposed to fail and display a particular error message. I will look into this more...

bredelings commented 1 week ago

For the second set of errors, the directories tests/haskell/Types/2, tests/haskell/Types/4, and tests/haskell/Types/GADT/4 should contain both error and obtained_error. The problem is that these are different. Would you be able to do:

cd tests/haskell/Types/2
diff -u error obtained_error

This could be a bit tricky since the files contain ASCII escape sequences to show color, so the difference could show up as color difference.

BTW, thanks again for this info. Since these don't occur on my Debian Linux system, or on the Ubuntu testers in github actions, I didn't know about these issues.

douglasgscofield commented 1 week ago

The first set of errors, built and tested on a CentOS 7 system, shrinks after setting LC_ALL=en_US.utf-8. The haskell/math/RealFloat error remains. The testlog is

testlog-20241125-1517-centos7-haskell-math-RealFloat.txt

The diffs for the second set of errors on Rocky 9 are:

rackham4: /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16/tests/haskell/Types/2 $ diff -u error obtained-error
--- error   2024-11-23 20:47:51.000000000 +0100
+++ obtained-error  2024-11-25 14:35:57.760255000 +0100
@@ -1,8 +1,50 @@
+[ Loading Data.Bool ]
+[ Loading Foreign.CList ]
+[ Loading Foreign.String ]
+[ Loading Compiler.Error ]
+[ Loading Compiler.Base ]
+[ Loading Compiler.Num ]
+[ Loading Data.Eq ]
+[ Loading Data.Function ]
+[ Loading Data.Maybe ]
+[ Loading Data.Ord ]
+[ Loading Data.List.NonEmpty ]
+[ Loading Data.Semigroup ]
+[ Loading Data.Monoid ]
+[ Loading Compiler.Enum ]
+[ Loading Data.Char ]
+[ Loading Data.Tuple ]
+[ Loading Data.OldList ]
+[ Loading Data.Foldable ]
+[ Loading Data.List ]
+[ Loading Text.Show ]
+[ Loading Compiler.Classes ]
+[ Loading Compiler.Ratio ]
+[ Loading Compiler.Fractional ]
+[ Loading Compiler.Real ]
+[ Loading Compiler.Integral ]
+[ Loading Compiler.Floating ]
+[ Loading Data.Functor ]
+[ Loading Control.Applicative ]
+[ Loading Control.Monad ]
+[ Loading Compiler.IO ]
+[ Loading Compiler.RealFrac ]
+[ Loading Foreign.Pair ]
+[ Loading Compiler.RealFloat ]
+[ Loading Compiler.ST ]
+[ Loading Data.Either ]
+[ Loading Data.Typeable ]
+[ Loading Data.Exception ]
+[ Loading Data.IORef ]
+[ Loading Foreign.Vector ]
+[ Loading System.FilePath ]
+[ Loading Text.Read ]
+[ Loading System.IO ]
+[ Loading Prelude ]
+[ Compiling Main ]
 Main.hs:9.22-25: error:
-   • Could not derive `Show t` arising from a use of
-     `show` at Main.hs:9.22-25
-   • In equation `main  = do {System.IO.putStrLn Data.Function.$
-     (Text.Show.show Data.Function.$ (Main.bar 2 3))`
+   • Could not derive `Show t` arising from a use of `show` at Main.hs:9.22-25
+   • In equation `main  = do {System.IO.putStrLn Data.Function.$ (Text.Show.show Data.Function.$ (Main.bar 2 3))`
    • In function `Main.main`
    • In recursive group:
          Main.main
@@ -11,10 +53,8 @@
   |                      ^^^^

 Main.hs:9.29-31: error:
-   • Could not derive `Foo t` arising from a use of
-     `bar` at Main.hs:9.29-31
-   • In equation `main  = do {System.IO.putStrLn Data.Function.$
-     (Text.Show.show Data.Function.$ (Main.bar 2 3))`
+   • Could not derive `Foo t` arising from a use of `bar` at Main.hs:9.29-31
+   • In equation `main  = do {System.IO.putStrLn Data.Function.$ (Text.Show.show Data.Function.$ (Main.bar 2 3))`
    • In function `Main.main`
    • In recursive group:
          Main.main
@@ -23,10 +63,8 @@
   |                             ^^^

 Main.hs:9.35: error:
-   • Could not derive `Num t` arising from a use of
-     `fromInteger` at Main.hs:9.35
-   • In equation `main  = do {System.IO.putStrLn Data.Function.$
-     (Text.Show.show Data.Function.$ (Main.bar 2 3))`
+   • Could not derive `Num t` arising from a use of `fromInteger` at Main.hs:9.35
+   • In equation `main  = do {System.IO.putStrLn Data.Function.$ (Text.Show.show Data.Function.$ (Main.bar 2 3))`
    • In function `Main.main`
    • In recursive group:
          Main.main
rackham4: /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16/tests/haskell/Types/2 $ cd ../4
rackham4: /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16/tests/haskell/Types/4 $ diff -u error obtained-error
--- error   2024-11-23 20:47:51.000000000 +0100
+++ obtained-error  2024-11-25 14:35:57.425258000 +0100
@@ -1,6 +1,8 @@
+[ Loading Data.Bool ]
+[ Loading Data.Eq ]
+[ Compiling Main ]
 Main.hs:12.19-20: error:
-   • Could not derive `Eq a` arising from a use of
-     `(==)` at Main.hs:12.19-20
+   • Could not derive `Eq a` arising from a use of `(==)` at Main.hs:12.19-20
    • In equation `reflexive2 ae  = x Data.Eq.== x`
    • In function `Main.reflexive2`
    • In recursive group:
rackham4: /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16/tests/haskell/Types/4 $ cd ../GADT/4/
rackham4: /sw/EasyBuild/broadwell-rocky9/build/BAliPhy/4.0-beta16/GCC-12.3.0/BAli-Phy-4.0-beta16/tests/haskell/Types/GADT/4 $ diff -u error obtained-error
--- error   2024-11-23 20:47:51.000000000 +0100
+++ obtained-error  2024-11-25 14:35:57.066258000 +0100
@@ -1,6 +1,6 @@
+[ Compiling Main ]
 Main.hs:7.19: error:
-   • Cannot unify `m` with `I a` because the quantified variable `a` would
-     escape its scope.
+   • Cannot unify `m` with `I a` because the quantified variable `a` would escape its scope.
    • Relevant bindings:
        i :: I a
        unI :: SomeI -> m
bredelings commented 1 week ago

Thanks! I think I can fix the errors on Rocky Linux. I need to change the tests to that they don't depend on whether the terminal supports colors

The math/RealFloat error is different -- it seems that somehow the C++ function std::isnan( ) has type 'int' (integer) on your Centos 7 system, whereas it should have type bool (boolean). This might be fixed in (say) Centos 8, but I have a workaround in mind...

douglasgscofield commented 1 week ago

This is being built with gcc/12.3.0 on both systems, and the return value depends on the value of the argument. From include/c++/12.3.0/cmath:


#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
  constexpr bool
  isnan(float __x)
  { return __builtin_isnan(__x); }

#if _GLIBCXX_HAVE_OBSOLETE_ISNAN \
  && !_GLIBCXX_NO_OBSOLETE_ISINF_ISNAN_DYNAMIC
  using ::isnan;
#else
  constexpr bool
  isnan(double __x)
  { return __builtin_isnan(__x); }
#endif

  constexpr bool
  isnan(long double __x)
  { return __builtin_isnan(__x); }
#endif

#ifndef __CORRECT_ISO_CPP11_MATH_H_PROTO_INT
  template<typename _Tp>
    constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,
                                              bool>::__type
    isnan(_Tp __x)
    { return false; }
#endif

I did not initially understand this template correctly. It is supposed to always return the bool value false if its argument is of integer type, as only floats can be NaN. I would be curious about implicit casting since bool is easily promoted.

bredelings commented 3 days ago

The problem is that glibc < 2.23 defines isnan with the wrong signature: int isnan(double). In C++ the correct signature is bool std::isnan(double). But apparently g++ cannot define the correct signature if the wrong signature is already in the C library, so it just use the C-library version via using ::isnan. The result is that std::isnan(x) is an int when it should be a bool.

This problem would be fixed by using glibc version 2.23 or later, which was released in 2016 (eight years ago). Your cluster seems to have CentOS 7, which is really old, and reached its end-of-life in July 2024. Is there any chance you can upgrade to something that came out after 2016? Or, alternatively, use the singularity image?

If not, I can add a workaround for CentOS 7.

bredelings commented 3 days ago

I think I've fixed the other test failures on the master branch by making the testing script more robust. You can download an updated tarball at https://github.com/bredelings/BAli-Phy/archive/refs/heads/master.tar.gz or just the updated test script here: https://raw.githubusercontent.com/bredelings/BAli-Phy/refs/heads/master/tests/run-tests.py You can also get the source using git via:

   git clone https://github.com/bredelings/BAli-Phy.git

I haven't been able to directly the unicode fixes because I haven't been able to find a terminal that doesn't support unicode yet. But I think it works. I'd be interested to hear if it works fine on your Rocky Linux box, and if the errors besides the math/Realfloat errors are fixed on Centos 7.