Skip to content

Integration tests fail when CPATH is not set #57

@ubaidsk

Description

@ubaidsk
/Users/ubaid/Desktop/OpenSource/lc/integration_tests/array_09.cpp:2:10: fatal error: 'xtensor/xtensor.hpp' file not found
#include <xtensor/xtensor.hpp>
         ^~~~~~~~~~~~~~~~~~~~~
LCOMPILERS_ASSERT failed: /Users/ubaid/Desktop/OpenSource/lc/src/libasr/../libasr/asr.h
function down_cast(), line number 40 at 
f != nullptr
/Users/ubaid/Desktop/OpenSource/lc/integration_tests/array_05.cpp:2:10: fatal error: 'xtensor/xfixed.hpp' file not found
#include <xtensor/xfixed.hpp>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
Error while processing /Users/ubaid/Desktop/OpenSource/lc/integration_tests/array_05.cpp.
make[2]: *** [CMakeFiles/array_05.cpp.dir/build.make:74: array_05.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:312: CMakeFiles/array_05.cpp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

After setting the CPATH as follows and running tests

$ CPATH=$CONDA_PREFIX/include:$CPATH ./integration_tests/run_tests.py -b llvm

The above issue works (it finds xtensor).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions