<div dir="ltr">Hi,<div><br></div><div>as a work-around, you run cmake with &quot;-DCMAKE_SYSTEM_NAME=Linux&quot; and it should work. </div><div>I created <a href="http://redmine.gromacs.org/issues/1881">http://redmine.gromacs.org/issues/1881</a>.<br></div><div><br></div><div>Roland</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 16, 2015 at 8:21 AM, Stefan Richter <span dir="ltr">&lt;<a href="mailto:stefan.richter@h-its.org" target="_blank">stefan.richter@h-its.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I try to compile gromacs on a cray-XC-40 system using the intel compiler and the craype-hugepages loaded.<br>
The cmake command is as follows:<br>
module load PrgEnv-intel/5.2.56<br>
module load craype-hugepages32M<br>
<br>
export CC=cc<br>
export CXX=CC<br>
cmake -DGMX_PREFER_STATIC_LIBS=ON -DGMX_PREFER_STATIC_LIBS=ON -DCMAKE_C_COMPILER=cc -DCMAKE_CXX_COMPILER=CC -DGMX_SIMD=AVX2_256 -DGMX_BUILD_OWN_FFTW=ON  -DGMX_GPU=OFF  -DCMAKE_INSTALL_PREFIX=~/app/gromacs/5.0.7  -DBUILD_SHARED_LIBS=off   -DCMAKE_SKIP_RPATH=YES  -DGMX_MPI=ON -DGMX_OPENMP=ON -DGMX_BUILD_OWN_FFTW_URL=~/app/gromacs/dist/fftw-gromacs-5.0.7.tar.gz ..<br>
make<br>
make install<br>
<br>
However, i do get an error related to the hugepages:<br>
<br>
<br>
gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp(743): error: identifier &quot;libhugetlbfs&quot; is undefined<br>
               BUILD_CPU_FAMILY, BUILD_CPU_MODEL, BUILD_CPU_STEPPING);<br>
               ^<br>
<br>
gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp(743): error: identifier &quot;mom07&quot; is undefined<br>
               BUILD_CPU_FAMILY, BUILD_CPU_MODEL, BUILD_CPU_STEPPING);<br>
               ^<br>
<br>
gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp(743): error: expected a &quot;)&quot;<br>
               BUILD_CPU_FAMILY, BUILD_CPU_MODEL, BUILD_CPU_STEPPING);<br>
               ^<br>
<br>
gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp(743): warning #267: the format string requires additional arguments<br>
               BUILD_CPU_FAMILY, BUILD_CPU_MODEL, BUILD_CPU_STEPPING);<br>
               ^<br>
<br>
compilation aborted for /univ_1/ws1/ws/xhiricht-myspace-0/app/gromacs/src/gromacs-5.0.7/src/gromacs/gmxlib/copyrite.cpp (code 2)<br>
make[2]: *** [src/gromacs/CMakeFiles/libgromacs.dir/gmxlib/copyrite.cpp.o] Error 2<br>
<br>
If i do not load the hugepages module, i do not get this error. However, from the computing center it is recommended to load these, and they will become default next year.<br>
<br>
Any ideas where this error is coming from?<br>
<br>
Kind regards.<br>
<br>
--<br>
Dr. Stefan Richter<br>
Software and IT Specialist<br>
Molecular and Cellular Modeling Group (MCM)<br>
HITS gGmbH<br>
Schloss-Wolfsbrunnenweg 35<br>
69118 Heidelberg<br>
Germany<br>
<br>
phone: +49 - 6221 - 533 279<br>
fax: +49 6221 533298<br>
email: <a href="mailto:Stefan.Richter@h-its.org">Stefan.Richter@h-its.org</a><br>
<a href="http://www.h-its.org" rel="noreferrer" target="_blank">http://www.h-its.org</a><br>
_________________________________________________<br>
Amtsgericht Mannheim / HRB 337446<br>
Managing Director:<br>
Prof. Dr.-Ing. Andreas Reuter<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309</div>
</div>