Previous Thread
Next Thread
Print Thread
Install with cmake, error:undefined reference to `sfftw_dest
#37486 05/05/19 07:20 AM
Joined: Feb 2019
Posts: 2
Jinfeng Offline OP
Forum Member
OP Offline
Forum Member
Joined: Feb 2019
Posts: 2
Hi,
I am using cmake to install the CHARMM version 42b2
make error after 99%:
[100%] Linking Fortran executable charmm
libcharmm_fortran.a(colfft_util.F90.o): In function `__colfft_util_MOD_delete_plan':
/home/hj/program/charmm_build/colfft_util.F90:3219: undefined reference to `sfftw_destroy_plan_'
/home/hj/program/charmm_build/colfft_util.F90:3216: undefined reference to `dfftw_destroy_plan_'
libcharmm_fortran.a(colfft_util.F90.o): In function `__colfft_util_MOD_z_fft_pd':
/home/hj/program/charmm_build/colfft_util.F90:1446: undefined reference to `dfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1469: undefined reference to `dfftw_execute_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1378: undefined reference to `dfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1401: undefined reference to `dfftw_execute_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1446: undefined reference to `dfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1378: undefined reference to `dfftw_plan_many_dft_'
libcharmm_fortran.a(colfft_util.F90.o): In function `__colfft_util_MOD_y_fft_pd':
/home/hj/program/charmm_build/colfft_util.F90:1242: undefined reference to `dfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1266: undefined reference to `dfftw_execute_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1173: undefined reference to `dfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1197: undefined reference to `dfftw_execute_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1242: undefined reference to `dfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1173: undefined reference to `dfftw_plan_many_dft_'
libcharmm_fortran.a(colfft_util.F90.o): In function `__colfft_util_MOD_x_fft_pd':
/home/hj/program/charmm_build/colfft_util.F90:1037: undefined reference to `dfftw_plan_many_dft_c2r_'
/home/hj/program/charmm_build/colfft_util.F90:1060: undefined reference to `dfftw_execute_dft_c2r_'
/home/hj/program/charmm_build/colfft_util.F90:966: undefined reference to `dfftw_plan_many_dft_r2c_'
/home/hj/program/charmm_build/colfft_util.F90:990: undefined reference to `dfftw_execute_dft_r2c_'
/home/hj/program/charmm_build/colfft_util.F90:1037: undefined reference to `dfftw_plan_many_dft_c2r_'
/home/hj/program/charmm_build/colfft_util.F90:966: undefined reference to `dfftw_plan_many_dft_r2c_'
libcharmm_fortran.a(colfft_util.F90.o): In function `__colfft_util_MOD_z_fft_ps':
/home/hj/program/charmm_build/colfft_util.F90:1451: undefined reference to `sfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1472: undefined reference to `sfftw_execute_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1383: undefined reference to `sfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1404: undefined reference to `sfftw_execute_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1451: undefined reference to `sfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1383: undefined reference to `sfftw_plan_many_dft_'
libcharmm_fortran.a(colfft_util.F90.o): In function `__colfft_util_MOD_y_fft_ps':
/home/hj/program/charmm_build/colfft_util.F90:1247: undefined reference to `sfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1269: undefined reference to `sfftw_execute_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1178: undefined reference to `sfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1200: undefined reference to `sfftw_execute_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1247: undefined reference to `sfftw_plan_many_dft_'
/home/hj/program/charmm_build/colfft_util.F90:1178: undefined reference to `sfftw_plan_many_dft_'
libcharmm_fortran.a(colfft_util.F90.o): In function `__colfft_util_MOD_x_fft_ps':
/home/hj/program/charmm_build/colfft_util.F90:1041: undefined reference to `sfftw_plan_many_dft_c2r_'
/home/hj/program/charmm_build/colfft_util.F90:1063: undefined reference to `sfftw_execute_dft_c2r_'
/home/hj/program/charmm_build/colfft_util.F90:970: undefined reference to `sfftw_plan_many_dft_r2c_'
/home/hj/program/charmm_build/colfft_util.F90:993: undefined reference to `sfftw_execute_dft_r2c_'
/home/hj/program/charmm_build/colfft_util.F90:1041: undefined reference to `sfftw_plan_many_dft_c2r_'
/home/hj/program/charmm_build/colfft_util.F90:970: undefined reference to `sfftw_plan_many_dft_r2c_'
collect2: error: ld returned 1 exit status
CMakeFiles/charmm.dir/build.make:99: recipe for target 'charmm' failed
make[2]: *** [charmm] Error 1
CMakeFiles/Makefile2:187: recipe for target 'CMakeFiles/charmm.dir/all' failed
make[1]: *** [CMakeFiles/charmm.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

So what's wrong, and how to solve the problem?
Thank you in advance

Re: Install with cmake, error:undefined reference to `sfftw_dest
Jinfeng #37488 05/06/19 03:18 PM
Joined: Sep 2003
Posts: 8,425
rmv Offline
Forum Member
Offline
Forum Member
Joined: Sep 2003
Posts: 8,425
The messages suggest an issue with how the location of the FFTW libraries was specified.


Rick Venable
computational chemist


Moderated by  chmgr, John Legato, lennart 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 5.6.33-0+deb8u1 Page Time: 0.006s Queries: 18 (0.003s) Memory: 0.8961 MB (Peak: 0.9614 MB) Data Comp: Off Server Time: 2020-04-10 06:04:29 UTC
Valid HTML 5 and Valid CSS