Bizarrely enough I can build on my machine with the exact same configuration as the jenkins auto-build uses (<a href="http://goo.gl/e3Ku1">http://goo.gl/e3Ku1</a>).<div><br></div><div>The only difference is the OS version, but not the compiler used (in both cases  gcc/gfortran 4.6 was used).</div>
<div><br></div><div>Any idea what could cause this discrepancy?</div><div><br></div><div>--<br>Szilárd<br>
<br><br><div class="gmail_quote">On Fri, Jun 1, 2012 at 11:05 AM, Szilárd Páll <span dir="ltr">&lt;<a href="mailto:szilard.pall@cbr.su.se" target="_blank">szilard.pall@cbr.su.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Fri, Jun 1, 2012 at 3:45 AM, Christoph Junghans &lt;<a href="mailto:junghans@votca.org">junghans@votca.org</a>&gt; wrote:<br>
&gt; 2012/5/31 Szilárd Páll &lt;<a href="mailto:szilard.pall@cbr.su.se">szilard.pall@cbr.su.se</a>&gt;:<br>
&gt;&gt; On Thu, May 31, 2012 at 5:29 PM, Alexey Shvetsov<br>
&gt;&gt; &lt;<a href="mailto:alexxy@omrb.pnpi.spb.ru">alexxy@omrb.pnpi.spb.ru</a>&gt; wrote:<br>
&gt;&gt;&gt; Szilárd Páll писал 2012-05-31 19:09:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I bumped into a strange issue when verifying the nbnxn code with<br>
&gt;&gt;&gt;&gt; Jenkins. Using the Fortran kernels, while the appropriate OpenMP flag<br>
&gt;&gt;&gt;&gt; is used and mdrun compiles fine, some tools fail to compile with a<br>
&gt;&gt;&gt;&gt; weird message complaining about missing symbols:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ../gmxlib/libgmx.so.6: undefined reference to `omp_get_thread_num&#39;<br>
&gt;&gt;&gt;&gt; ../gmxlib/libgmx.so.6: undefined reference to `GOMP_parallel_end&#39;<br>
&gt;&gt;&gt;&gt; ../gmxlib/libgmx.so.6: undefined reference to `omp_get_num_threads&#39;<br>
&gt;&gt;&gt;&gt; ../gmxlib/libgmx.so.6: undefined reference to `omp_set_num_threads&#39;<br>
&gt;&gt;&gt;&gt; ../gmxlib/libgmx.so.6: undefined reference to `GOMP_parallel_start&#39;<br>
&gt;&gt;&gt;&gt; ../gmxlib/libgmx.so.6: undefined reference to `omp_get_max_threads&#39;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; i) Does anybody have an idea what could be wrong?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ii) For what platforms are the fortran kernels still useful? If there<br>
&gt;&gt;&gt;&gt; is any platform where they provide a faster alternative to the plain C<br>
&gt;&gt;&gt;&gt; kernels, we should definitely keep them. Otherwise, deprecating them<br>
&gt;&gt;&gt;&gt; is an option.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Cheers,<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; Szilárd<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Looks like something doesn link with -lgomp<br>
&gt;&gt;&gt; Does build system forces &quot;-fopenmp&quot; for tools in case fortran kernel build?<br>
&gt;&gt;<br>
&gt;&gt; Yes, -fopnemp is simply added to the CFLAGS. I thought that was<br>
&gt;&gt; harmless, moreover, some tools do use OpenMP. Could this be the issue?<br>
&gt; That is strange. Usually -lgomp is added internally by gcc automatically.<br>
&gt; $ echo &quot;int main() { return 0; }&quot; &gt; test.c<br>
&gt; $ gcc -fopenmp test.c -o test<br>
&gt; $ ldd test | grep omp<br>
&gt; libgomp.so.1 =&gt; /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/libgomp.so.1<br>
&gt;<br>
&gt; Did we add -fopenmp to the Fortran Flags as well?<br>
<br>
</div></div>No, only to the CFLAGS. However, AFAIK only the kernels are compiled<br>
with a fortran, the rest by the C compiler.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;&gt; --<br>
&gt;&gt; Szilárd<br>
&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Best Regards,<br>
&gt;&gt;&gt; Alexey &#39;Alexxy&#39; Shvetsov<br>
&gt;&gt;&gt; Petersburg Nuclear Physics Institute, NRC Kurchatov Institute, Gatchina,<br>
&gt;&gt;&gt; Russia<br>
&gt;&gt;&gt; Department of Molecular and Radiation Biophysics<br>
&gt;&gt;&gt; Gentoo Team Ru<br>
&gt;&gt;&gt; Gentoo Linux Dev<br>
&gt;&gt;&gt; mailto:<a href="mailto:alexxyum@gmail.com">alexxyum@gmail.com</a><br>
&gt;&gt;&gt; mailto:<a href="mailto:alexxy@gentoo.org">alexxy@gentoo.org</a><br>
&gt;&gt;&gt; mailto:<a href="mailto:alexxy@omrb.pnpi.spb.ru">alexxy@omrb.pnpi.spb.ru</a><br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; gmx-developers mailing list<br>
&gt;&gt;&gt; <a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
&gt;&gt;&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
&gt;&gt;&gt; Please don&#39;t post (un)subscribe requests to the list. Use the www interface<br>
&gt;&gt;&gt; or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
&gt;&gt; --<br>
&gt;&gt; gmx-developers mailing list<br>
&gt;&gt; <a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
&gt;&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
&gt;&gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&gt;&gt; www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Christoph Junghans<br>
&gt; Web: <a href="http://www.compphys.de" target="_blank">http://www.compphys.de</a><br>
&gt; --<br>
&gt; gmx-developers mailing list<br>
&gt; <a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
&gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&gt; www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
</div></div></blockquote></div><br></div>