There&#39;s nothing about our autodetection that specifies which such version should be found, so I expect CMake is picking up that /usr/lib32 is specified first in some or other environment path variable. You can probably hack that with cmake -DCMAKE_LIBRARY_PATH (which gets checked first), or check out the final para of cmake --help-command find_library if some global hack might be required.<div>
<br></div><div>Mark<br><br><div class="gmail_quote">On Sun, Dec 2, 2012 at 5:09 PM, Alexey Shvetsov <span dir="ltr">&lt;<a href="mailto:alexxy@omrb.pnpi.spb.ru" target="_blank">alexxy@omrb.pnpi.spb.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all!<br>
<br>
With tag 4.6-beta1 i noticed that on 64bit multilib systems gromacs trying to find 32bit versions first and only then 64bit versions thats why it failes<br>
<br>
-- Enabling SSE4.1 Gromacs acceleration, and it will help compiler optimization.<br>
-- Found PkgConfig: /usr/bin/pkg-config (found version &quot;0.27.1&quot;)<br>
-- checking for module &#39;fftw3f&#39;<br>
--   package &#39;fftw3f&#39; not found<br>
-- Looking for fftwf_plan_r2r_1d in /usr/lib32/libfftw3f.so<br>
-- Looking for fftwf_plan_r2r_1d in /usr/lib32/libfftw3f.so - not found<br>
CMake Error at cmake/FindFFTW.cmake:102 (message):<br>
  Could not find fftwf_plan_r2r_1d in /usr/lib32/libfftw3f.so, take a look at<br>
  the error message in<br>
  /var/tmp/portage/sci-<u></u>chemistry/gromacs-4.6.9999/<u></u>work/gromacs-4.6.9999_float/<u></u>CMakeFiles/CMakeError.log<br>
  to find out what went wrong.  If you are using a static lib (.a) make sure<br>
  you have specified all dependencies of fftw3f in FFTWF_LIBRARY by hand<br>
  (e.g.  -DFFTWF_LIBRARY=&#39;/path/to/<u></u>libfftw3f.so;/path/to/libm.so&#39;<u></u>) !<br>
Call Stack (most recent call first):<br>
  CMakeLists.txt:948 (find_package)<br>
<br>
I have both versions present on this system<br>
<br>
x201 ~ # ls -l  /usr/lib*/libfftw3f.so.3<br>
lrwxrwxrwx 1 root root 18 May 25  2012 /usr/lib/libfftw3f.so.3 -&gt; libfftw3f.so.3.3.2<br>
lrwxrwxrwx 1 root root 18 Nov  9 11:10 /usr/lib32/libfftw3f.so.3 -&gt; libfftw3f.so.3.2.4<br>
lrwxrwxrwx 1 root root 18 May 25  2012 /usr/lib64/libfftw3f.so.3 -&gt; libfftw3f.so.3.3.2<br>
<br>
PS cmake version is 2.8.10.2<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-- <br>
Best Regards,<br>
Alexey &#39;Alexxy&#39; Shvetsov<br>
Petersburg Nuclear Physics Institute, NRC Kurchatov Institute, Gatchina, Russia<br>
Department of Molecular and Radiation Biophysics<br>
Gentoo Team Ru<br>
Gentoo Linux Dev<br>
mailto:<a href="mailto:alexxyum@gmail.com" target="_blank">alexxyum@gmail.com</a><br>
mailto:<a href="mailto:alexxy@gentoo.org" target="_blank">alexxy@gentoo.org</a><br>
mailto:<a href="mailto:alexxy@omrb.pnpi.spb.ru" target="_blank">alexxy@omrb.pnpi.spb.ru</a><br>
-- <br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/<u></u>mailman/listinfo/gmx-<u></u>developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@<u></u>gromacs.org</a>.<br>
</font></span></blockquote></div><br></div>