<div dir="ltr"><div><div><div><div><div>Hi Michael,<br><br></div>Mea culpa (testing on ubuntu).<br><br></div>I have applied your patch both upstream: <a href="https://github.com/SebWouters/CheMPS2/commit/779b26dba89630f081836a410d950bd25779dd28">https://github.com/SebWouters/CheMPS2/commit/779b26dba89630f081836a410d950bd25779dd28</a><br></div>and adjusted the git repository on alioth: <a href="http://anonscm.debian.org/cgit/debichem/packages/chemps2.git/tree/PyCheMPS2/setup.py#n49">http://anonscm.debian.org/cgit/debichem/packages/chemps2.git/tree/PyCheMPS2/setup.py#n49</a><br><br></div>Best wishes,<br></div>Sebastian<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-17 18:56 GMT-04:00 Michael Banck <span dir="ltr"><<a href="mailto:mbanck@debian.org" target="_blank">mbanck@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Sun, Jun 14, 2015 at 03:34:37PM -0400, Sebastian Wouters wrote:<br>
> 4. I have currently used a work-around to make debuild work for sid:<br>
><br>
> <a href="https://github.com/SebWouters/CheMPS2/blob/master/CheMPS2/CMakeLists.txt" rel="noreferrer" target="_blank">https://github.com/SebWouters/CheMPS2/blob/master/CheMPS2/CMakeLists.txt</a><br>
<br>
</span>It still fails to be for me in the python part:<br>
<br>
|creating build/temp.linux-x86_64-2.7<br>
|x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall<br>
|-Wstrict-prototypes -fno-strict-aliasing -g -O2 -fstack-protector-strong<br>
|-Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC<br>
|-I/usr/lib/python2.7/dist-packages/numpy/core/include<br>
|-I/usr/include/python2.7 -c PyCheMPS2.cpp -o<br>
|build/temp.linux-x86_64-2.7/PyCheMPS2.o<br>
|cc1plus: warning: command line option '-Wstrict-prototypes' is valid for<br>
|C/ObjC but not for C++<br>
|In file included from<br>
|/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,<br>
|                 from<br>
|/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,<br>
|                 from<br>
|/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4,<br>
|                 from PyCheMPS2.cpp:257:<br>
|/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2:<br>
|warning: #warning "Using deprecated NumPy API, disable it by "<br>
|"#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]<br>
| #warning "Using deprecated NumPy API, disable it by " \<br>
|  ^<br>
|In file included from ../CheMPS2/include/chemps2/DMRG.h:46:0,<br>
|                 from PyCheMPS2.cpp:269:<br>
|../CheMPS2/include/chemps2/MyHDF5.h:32:21: fatal error: hdf5.h: No such<br>
|file or directory<br>
|    #include <hdf5.h><br>
|                     ^<br>
|compilation terminated.<br>
<br>
The attached patch fixes that for me, but it's more of a hack, of<br>
course.<br>
<span class=""><br>
> According to HDF5's specifications, one should include <hdf5.h>, see<br>
> section 5 on<br>
><br>
> <a href="http://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/release_docs/INSTALL" rel="noreferrer" target="_blank">http://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/release_docs/INSTALL</a><br>
><br>
> In sid's packaged hdf5 version, this file is installed in<br>
> /usr/include/hdf5/serial/:<br>
><br>
> <a href="https://packages.debian.org/sid/amd64/libhdf5-dev/filelist" rel="noreferrer" target="_blank">https://packages.debian.org/sid/amd64/libhdf5-dev/filelist</a><br>
><br>
> I think it is therefore CMake's task to correctly set the variable<br>
> HDF5_INCLUDE_DIRS<br>
> with FindHDF5.cmake. They will probably do so at one point in a new<br>
> version. So maybe this needs to be patched to sid's cmake version, because<br>
> else many programs will have this problem?<br>
<br>
</span>I had another look, and libhdf5-dev is shipping a hdf5-serial.pc<br>
pkg-config file, which gets installed as hdf5.pc via the alternatives<br>
system.<br>
<br>
So probably for CMake the easiest way would be to use pkg-config for<br>
HDF5, unless that .pc file is a Debian addition and not generally<br>
applicable.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Michael<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:courier new,monospace"></span><font style="font-family:courier new,monospace" face="courier new,monospace">****************************************************</font><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  dr. ir. Sebastian Wouters</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  Fellow of the Belgian American Educational Foundation</span><br style="font-family:courier new,monospace"></div><font style="font-family:courier new,monospace" face="courier new,monospace">  Princeton University<br></font><div><font style="font-family:courier new,monospace" face="courier new,monospace">  (address) </font><span style="font-family:courier new,monospace">Department of Chemistry</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">            Frick Laboratory 351<br>            Princeton, NJ 08544, USA<br>
  (e-mail)  <a href="mailto:sebastianwouters@gmail.com" target="_blank">sebastianwouters@gmail.com</a><br><br></span><font style="font-family:courier new,monospace" face="courier new,monospace">****************************************************</font><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"></span></div></div></div></div></div>
</div>