Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests fail when CPATH is not set #57

Open
Shaikh-Ubaid opened this issue Jan 9, 2024 · 1 comment
Open

Integration tests fail when CPATH is not set #57

Shaikh-Ubaid opened this issue Jan 9, 2024 · 1 comment

Comments

@Shaikh-Ubaid
Copy link
Collaborator

/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).

@Shaikh-Ubaid Shaikh-Ubaid changed the title Integration tests fail when CPATH is set to Integration tests fail when CPATH is not set Jan 9, 2024
@certik
Copy link
Contributor

certik commented Jan 9, 2024

I can reproduce this issue, it happens for me also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants