Comment 2 for bug 1552754

Revision history for this message
Roger Mason (rmason-8) wrote : Re: [Bug 1552754] Re: make check fails (python yaml problem)

Hello,

Luigi Genovese <email address hidden> writes:

> This is not a bug, but a weakness of the present build system.
>
> The " make check" command has to be launched from the tob builddir directory instaed that from test.
> this will be corrected in the forthcoming release.

I have the same problem running from the top build directory:

cryptoperthite 64-bit gmake check
Making check in flib
gmake[1]: Entering directory '/home/rmason/Software/BigDFT/64-bit/flib'
Making check in src
gmake[2]: Entering directory '/home/rmason/Software/BigDFT/64-bit/flib/src'
test -e "../../includes" || /usr/bin/install -c -d -m 755 ../../includes
for mod in "yaml_strings.mod dictionaries.mod dictionaries_base.mod f_enums.mod f_precisions.mod yaml_output.mod yaml_parse.mod metadata_interfaces.mod module_f_malloc.mod dynamic_memory.mod randomdata.mod memory_profiling.mod f_utils.mod f_input_file.mod f_refcnts.mod f_trees.mod exception_callbacks.mod time_profiling.mod" ; do \
  /usr/bin/install -c -m 644 $mod ../../includes ; \
done
gmake[2]: Leaving directory '/home/rmason/Software/BigDFT/64-bit/flib/src'
Making check in tests
gmake[2]: Entering directory '/home/rmason/Software/BigDFT/64-bit/flib/tests'
gmake yaml_test
gmake[3]: Entering directory '/home/rmason/Software/BigDFT/64-bit/flib/tests'
gmake[3]: 'yaml_test' is up to date.
gmake[3]: Leaving directory '/home/rmason/Software/BigDFT/64-bit/flib/tests'
export PYTHONPATH=/opt/lib/root:/opt/lib/root: ; \
export LD_LIBRARY_PATH=:/opt/local/lib:/opt/lib/root:/opt/lib:/opt/local/lib:/opt/lib/root:/opt/lib ; \
python ../../../bigdft-1.7.7/tests/fldiff_yaml.py --label yaml_test -t ../../../bigdft-1.7.7/tests/tols-BigDFT.yaml \
        -r /home/rmason/Software/BigDFT/64-bit/../bigdft-1.7.7/flib/tests/yaml_test.ref.yaml -d yaml_test.out.yaml --output yaml_test.report.yaml
Traceback (most recent call last):
  File "../../../bigdft-1.7.7/tests/fldiff_yaml.py", line 356, in <module>
    open(args.ref, "r").read(), Loader=yaml.CLoader)]
AttributeError: 'module' object has no attribute 'CLoader'
Makefile:628: recipe for target 'yaml_test.report.yaml' failed
gmake[2]: *** [yaml_test.report.yaml] Error 1
gmake[2]: Leaving directory '/home/rmason/Software/BigDFT/64-bit/flib/tests'
Makefile:397: recipe for target 'check-recursive' failed
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory '/home/rmason/Software/BigDFT/64-bit/flib'
Makefile:532: recipe for target 'check-recursive' failed
gmake: *** [check-recursive] Error 1

Cheers,
Roger