theochem / horton

HORTON: Helpful Open-source Research TOol for N-fermion systems
http://theochem.github.io/horton/
GNU General Public License v3.0
92 stars 40 forks source link

Compilation error in cext.cpp #291

Closed kzinovjev closed 3 years ago

kzinovjev commented 3 years ago

Hi, I've tried to compile horton (release 2.1.1) on two different machines - Ubuntu 20.10 and CentOS 7.6, with gcc versions 10.2.0 and 4.8.5 respectively, and got the same error in both cases:

horton/meanfield/cext.cpp: In function ‘PyObject* __pyx_pf_6horton_9meanfield_4cext_12LibXCWrapper_4refs___get__(__pyx_obj_6horton_9meanfield_4cext_LibXCWrapper*)’:
horton/meanfield/cext.cpp:2427:70: error: cannot convert ‘func_reference_type* const*’ to ‘const char*’
 2427 |   __pyx_t_1 = __Pyx_PyBytes_FromString((__pyx_v_self->_func.info[0]).refs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 117, __pyx_L1_error)
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
      |                                                                      |
      |                                                                      func_reference_type* const*

FWIW, the link in tools/qa/install_libxc-2.2.2.sh is broken, so I changed the version to 5.1.2 and the link to http://www.tddft.org/programs/libxc/down.php?file=5.1.2/libxc-5.1.2.tar.gz

Any help is appreciated!

kzinovjev commented 3 years ago

My bad, just figured out that this was already discussed in #288. As suggested, changed the libxc version to 2.2.2 and the compilation went well.