Problem with building Psi4-1.3

Hi there,

While building Psi4-1.3, I am getting such an error message:

Scanning dependencies of target cc
In file included from /home/eve/Git/psi4-1.3/psi4/src/psi4/libmints/
/home/eve/Git/psi4-1.3/psi4/src/psi4/libmints/eri.h:33:10: fatal error: libderiv/libderiv.h: No such file or directory
#include <libderiv/libderiv.h>
compilation terminated.
src/psi4/libmints/CMakeFiles/mints.dir/build.make:387: recipe for target ‘src/psi4/libmints/CMakeFiles/mints.dir/’ failed
make[5]: *** [src/psi4/libmints/CMakeFiles/mints.dir/] Error 1
make[5]: *** Waiting for unfinished jobs…

I have tried to find the libderiv.h file, but it does not seem that it is located somewhere in the repository. Did I miss any configuration before cmake?

I would really appreciate if anyone has any hint how to solve the problem.

Look over this topic. The first five posts are the most relevant. Let us know if that doesn’t solve the issue.

What @loriab said in that discussion was to simply copy include/libderiv/libderiv.h to include/libint/libderiv.h. The current version of Psi4 has a different structure and these paths do not lead to libderiv.h. I ran the command: find -name libderiv.h to find a location of the libderiv.h, but it does not exist.

libint/libderiv isn’t in the psi4 source – it’s an external dependency that either gets detected as pre-built (you cloned and built it elsewhere or installed through a package manager) or gets cloned and built before psi4 builds. I suspect you have the former. You should find where libint is installed that it’s detecting (printed in cmake output or in Libint_DIR of <objdir>/CMakeCache.txt) and do the copying there.

Thank you for your explanation, @loriab! I checked the path which is:
so that dependencies are pulled out from the anaconda package. There are only cmake files. Does it mean that I should update anaconda? What do you think?

then the file you want to shift is in /tools/anacondapython-3.6.4/include/

@loriab Thank you for your help! I managed building Psi4-1.3.
However, I ran the tests and all of them failed.
The log file lists such errors:

Start testing: Jul 01 10:54 CDT
7/420 Testing: casscf-sp
7/420 Test: casscf-sp
Command: "/tools/anacondapython-3.6.4/bin/python" "/home/esz001/Git/psi4-1.3/tests/" "/home/esz001/Git/psi4-1.3/tests/casscf-sp/input.dat" "/home/esz001/Git/psi4-1.3/objdir_test/testresults.log" "false" "/home/esz001/Git/psi4-1.3" "false" "/home/esz001/Git/psi4-1.3/objdir_test/tests/casscf-sp/output.dat" "/home/esz001/Git/psi4-1.3/objdir_test/stage/bin/psi4" "/home/esz001/Git/psi4-1.3/objdir_test/stage/share/psi4" "/home/esz001/Git/psi4-1.3/objdir_test/stage/lib/"
Directory: /home/esz001/Git/psi4-1.3/objdir_test/tests/casscf-sp
"casscf-sp" start time: Jul 01 10:54 CDT
Traceback (most recent call last):
  File "/home/esz001/Git/psi4-1.3/objdir_test/stage/lib/psi4/", line 55, in <module>
    from . import core
ImportError: /home/esz001/Git/psi4-1.3/objdir_test/stage/lib/psi4/../ undefined symbol: aligned_alloc

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/esz001/Git/psi4-1.3/objdir_test/stage/bin/psi4", line 177, in <module>
    import psi4
  File "/home/esz001/Git/psi4-1.3/objdir_test/stage/lib/psi4/", line 60, in <module>
    raise ImportError("{0}".format(err))
ImportError: /home/esz001/Git/psi4-1.3/objdir_test/stage/lib/psi4/../ undefined symbol: aligned_alloc
Exit Status: infile ( 1 ); autotest ( None ); sowreap ( None ); overall ( 1 )
<end of output>
Test time =   2.56 sec

Do you have any idea what may cause this issue?

What’s your OS and compiler? Looks a little like Can bypass by using a conda package.