# Make test fails

**URL:** <https://discourse.channelflow.ch/t/make-test-fails/91>\
**Category:** Installation\
**Created:** [May 15, 2020, 3:51pm UTC](https://discourse.channelflow.ch/t/make-test-fails/91 "2020-05-15T15:51:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chihin](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.channelflow.ch/chihin/32/26_2.png) [@chihin](https://discourse.channelflow.ch/u/chihin)\
**Post date:** [May 15, 2020, 3:51pm UTC](https://discourse.channelflow.ch/t/make-test-fails/91/1 "2020-05-15T15:51:09Z")

</div>

Hi all,

I’m new to channelflow and I am using it for my Master’s Thesis.

I’ve been trying to install channelflow and have been encountering some difficulties as I can’t get all the subroutines to pass when make test is invoked.

I tried it both with -DUSE\_MPI=off and -DUSE\_MPI=on and both has around 93%~ test passes

I have attached the log below to avoid clutter.

The common failed subroutines are:

1. time\_integration
2. io  
3.vector2field

Thank you!

---

<div class="post-metadata">

**Author:** ![chihin](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.channelflow.ch/chihin/32/26_2.png) [@chihin](https://discourse.channelflow.ch/u/chihin)\
**Post date:** [May 15, 2020, 3:52pm UTC](https://discourse.channelflow.ch/t/make-test-fails/91/2 "2020-05-15T15:52:23Z")

</div>

**CONFIGURE LOG WITHOUT MPI**

_– configuring channelflow version 2.0.2_  
_– Using GNU compiler options_  
\*-- \*  
_– Starting system introspection_  
\*-- Found FFTW \*  
_– FFTW\_LIBRARY=/usr/local/lib/libfftw3.so_  
_– FFTW\_OMP\_LIBRARY=/usr/local/lib/libfftw3\_omp.so_  
_– FFTW\_MPI\_LIBRARY=/usr/local/lib/libfftw3\_mpi.so_  
_– Not using MPI_  
_– NetCDF include dir: /usr/include_  
_– HDF5: Using hdf5 compiler wrapper to determine CXX configuration_  
_– Checking if hdf5 library functions in /home/chihin/anaconda3/lib are working correctly._  
\*-- \*  
\*-- Include directories: \*  
_– Git revision b1da5ba316f9b87333a1aa390d832cca842ad4b6_  
_– Boost version: 1.65.1_  
_– Found the following Boost libraries:_  
_– python_  
_– Building with Python interface._

- ###############################################\*

- ########### Configuration summary ###########\*

- ###############################################\*

- Compiler: GNU 7.5.0\*

- Build type: release\*

- Install prefix: /home/chihin/usr\*

- Building shared library: yes\*

- Linking programs to: shared library\*

- Libraries\*

- MPI: disabled\*

- netcdf (default file format): enabled\*

- Parallel netcdf: disabled\*

- HDF5 C++ (legacy file format): enabled\*

- Channelflow components\*

- nsolver: enabled\*

- Python wrapper: enabled\*

- GTest unit testing: enabled\*

_– Configuring done_  
_– Generating done_  
_– Build files have been written to: /home/chihin/Documents/Repositories/channelflow/build_

**MAKE TEST LOG WITHOUT MPI**

The following tests FAILED:  
8 - io (Child aborted)  
10 - vector2field (Child aborted)  
53 - timeIntegration (Child aborted)  
54 - pythonWrapperTest (Failed)  
Errors while running CTest  
Makefile:97: recipe for target ‘test’ failed  
make: \*\*\* [test] Error 8

---

<div class="post-metadata">

**Author:** ![chihin](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.channelflow.ch/chihin/32/26_2.png) [@chihin](https://discourse.channelflow.ch/u/chihin)\
**Post date:** [May 15, 2020, 3:57pm UTC](https://discourse.channelflow.ch/t/make-test-fails/91/3 "2020-05-15T15:57:42Z")

</div>

**CONFIGURE LOG WITH MPI**

## – configuring channelflow version 2.0.2 – Using GNU compiler options

## – Starting system introspection – Found FFTW – FFTW\_LIBRARY=/usr/local/lib/libfftw3.so – FFTW\_OMP\_LIBRARY=/usr/local/lib/libfftw3\_omp.so – FFTW\_MPI\_LIBRARY=/usr/local/lib/libfftw3\_mpi.so – MPI libs: – FFTW\_MPI library: /usr/local/lib/libfftw3\_mpi.so – NetCDF include dir: /usr/include – HDF5: Using hdf5 compiler wrapper to determine CXX configuration – Found HDF5: /home/chihin/anaconda3/lib/libhdf5\_cpp.so;/home/chihin/anaconda3/lib/libhdf5.so;/usr/lib/x86\_64-linux-gnu/librt.so;/usr/lib/x86\_64-linux-gnu/libpthread.so;/home/chihin/anaconda3/lib/libz.so;/usr/lib/x86\_64-linux-gnu/libdl.so;/usr/lib/x86\_64-linux-gnu/libm.so (found version “1.10.4”) found components: CXX – Checking if hdf5 library functions in /home/chihin/anaconda3/lib are working correctly. – Looking for include file hdf5.h – Looking for include file hdf5.h - found – Looking for H5D\_init in hdf5 – Looking for H5D\_init in hdf5 - found – Looking for H5Dopen2 in hdf5\_hl – Looking for H5Dopen2 in hdf5\_hl - found – Looking for H5Eprint2 in hdf5\_cpp – Looking for H5Eprint2 in hdf5\_cpp - found

– Include directories:  
– Git revision b1da5ba316f9b87333a1aa390d832cca842ad4b6

###############################################  
########### Configuration summary ###########  
###############################################  
Compiler: GNU 7.5.0  
Build type: Release  
Install prefix: /usr/local  
Building shared library: yes  
Linking programs to: shared library

Libraries  
MPI: enabled  
netcdf (default file format): enabled  
Parallel netcdf: disabled  
HDF5 C++ (legacy file format): enabled

Channelflow components  
nsolver: enabled  
Python wrapper: disabled  
GTest unit testing: enabled

– Configuring done  
– Generating done  
– Build files have been written to: /home/chihin/Documents/Repositories/channelflow/build

**MAKE TEST WITH MPI**  
The following tests FAILED:  
8 - io (Failed)  
10 - vector2field (Failed)  
53 - timeIntegration (Failed)  
60 - mpi\_io (Failed)  
62 - mpi\_vector2field (Failed)  
105 - mpi\_timeIntegration (Failed)  
Errors while running CTest  
Makefile:97: recipe for target ‘test’ failed  
make: \*\*\* [test] Error 8

---

<div class="post-metadata">

**Author:** ![jlangham](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jlangham](https://discourse.channelflow.ch/u/jlangham)\
**Post date:** [May 16, 2020, 4:24pm UTC](https://discourse.channelflow.ch/t/make-test-fails/91/4 "2020-05-16T16:24:19Z")

</div>

You could try running the tests manually and seeing what happens. There should be binaries for them in /build/tests/test\* They tend to be pretty verbose.

It is a bit weird for the io test to fail - perhaps something fishy is going on when the tests are run.

---

<div class="post-metadata">

**Author:** ![chihin](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.channelflow.ch/chihin/32/26_2.png) [@chihin](https://discourse.channelflow.ch/u/chihin)\
**Post date:** [May 18, 2020, 8:13am UTC](https://discourse.channelflow.ch/t/make-test-fails/91/5 "2020-05-18T08:13:10Z")

</div>

Cool. I’ve found the error. I think there’s some overlapping of the package HDF5. I’ve installed HDF5 from the source code. I’ve also installed anaconda (a platform for python) which has also HDF5 itself.

I saw that HDF5 is required for legacy file formatting. I am thinking of disabling HDF5 actually I am not sure what do legacy file formats refer to. I’ll probably use matlab/paraview for post-processing which I saw that NetCDF supports. If thats that case I probably don’t need HDF5?

Warning! _ **HDF5 library version mismatched error** _  
The HDF5 header files used to compile this application do not match  
the version used by the HDF5 library to which this application is linked.  
Data corruption or segmentation faults may occur if the application continues.  
This can happen when an application was compiled by one version of HDF5 but  
linked with a different version of static or shared HDF5 library.  
You should recompile the application or check your shared library related  
settings such as ‘LD\_LIBRARY\_PATH’.  
You can, at your own risk, disable this warning by setting the environment  
variable ‘HDF5\_DISABLE\_VERSION\_CHECK’ to a value of ‘1’.  
Setting it to 2 or higher will suppress the warning messages totally.  
Headers are 1.10.0, library is 1.10.4

edit: I used matlab to read NC files which worked

---

<div class="post-metadata">

**Author:** ![florian.reetz](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.channelflow.ch/florian.reetz/32/12_2.png) [@florian.reetz](https://discourse.channelflow.ch/u/florian.reetz)\
**Post date:** [May 26, 2020, 9:27am UTC](https://discourse.channelflow.ch/t/make-test-fails/91/6 "2020-05-26T09:27:57Z")

</div>

Hi Chihin,

good that you solved your issue.  
Just a comment on the legacy format HDF. If you are new to Channelflow and directly start with version 2.0, you can happily disable HDF and only use NetCDF which is more performant.

HDF was the main format for Channelflow 1.5. Users that worked with that older version might want to read existing HDF-data.

Best,  
Florian

---

<div class="post-metadata">

**Author:** ![chihin](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.channelflow.ch/chihin/32/26_2.png) [@chihin](https://discourse.channelflow.ch/u/chihin)\
**Post date:** [June 4, 2020, 9:43am UTC](https://discourse.channelflow.ch/t/make-test-fails/91/7 "2020-06-04T09:43:09Z")

</div>

Got it, thank you Florian!

Chi Hin
