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
test_lambda_duoble fails when WITH_LLVM=yes #1224
Comments
@meldanya I think these errors are because of the LLVM version being used. We currently test 3.8.0 if I'm not mistaken (I couldn't reproduce the errors on my machine). However, I'm not much confident to tell what can be done to fix this, or whether a probable fix will be backwards compatible with 3.8.0. |
@ShikharJ As far as I could tell from the Travis logs, SymEngine isn't tested with the LLVM flag enabled? I'll try testing against LLVM 3.8.0 and let you know if I'm able to reproduce the problem. |
@ShikharJ Ah, sorry, I totally missed that! However, I can't get it to work with LLVM 3.8.0 either. I get the same error. I didn't install with Conda though, I build LLVM from the source tar file here. Can't see how that should make any difference though? Do you have any ideas for further troubleshooting? |
Unfortunately, I don't. Maybe @isuruf can help. |
@meldanya, I can't reproduce your issue. Can you give us a bit more info on your system and also how you compiled LLVM and symengine? |
Sorry for the delay, sure I can provide more details. Let me know any other information you need: $ cat /etc/issue
Ubuntu 16.04.2 LTS \n \l
$ uname -r
4.8.0-36-generic
$ cc --version
cc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
[...]
$ cmake --version
cmake version 3.5.1
[...] Just to make sure there isn't anything weird with my system, I created a new VM in VirtualBox with Ubuntu 16.04.2 and ran the following script: set -x
sudo apt install libgmp-dev cmake make git curl
mkdir -p ~/src && cd ~/src
# Fetch and unpack LLVM
curl http://releases.llvm.org/3.8.0/llvm-3.8.0.src.tar.xz | tar xJ
# Build and install LLVM
cd llvm-3.8.0.src &&
mkdir -p build &&
cd build &&
cmake .. &&
make -j2 &&
sudo make install
cd ~/src
# Clone and build SymEngine
git clone https://github.com/symengine/symengine.git &&
cd symengine &&
cmake -DWITH_LLVM=yes . &&
make &&
ctest I still get the same error. When you run the tests, you install LLVM with Conda right? Could LLVM have been built with different options in the Conda package? I let CMake pick all the default options when I built it. I'm not very familiar with Conda so I wasn't able to find any manifest for how the |
Thanks for the detailed instructions. I can reproduce the error. I'll look into this more. Btw, script for how conda builds it is here, https://github.com/conda-forge/llvmdev-feedstock/blob/master/recipe/build.sh |
When I build LLVM in Release mode, it works fine. Not sure why it fails in debug mode though |
@isuruf I just tried building LLVM in Release mode and that works for me as well. Thanks for the help to find a workaround. I'll let you decide if you want to keep the issue open, from my point of view it could be closed now. |
fixed in #1751 |
The
test_lambda_double
test seems to fail when SymEngine is built with LLVM. Steps I took:WITH_LLVM=yes
, this is the important part)ctest
Result (irrelevant output removed):
Specifically running the
test_lambda_double
executable outputs the following:Unfortunately, I'm not familiar enough with LLVM to know how to fix it.
The text was updated successfully, but these errors were encountered: