- marked as minor
Makefile:869: recipe for target 'T2accel.lo' failed
Hi,
I am running into the following error when I do make && make install
T2accel.C: In function ‘void accel_multMatrixVec(double*, double*, int, int, double*)’:
T2accel.C:255:60: error: ‘F77_dgemv’ was not declared in this scope
F77_dgemv("T",&m,&n,&alpha ,m1,&m,v,&inc,&beta,out,&inc);
^
T2accel.C: In function ‘void accel_multMatrix(double*, double*, int, int, int, double*)’:
T2accel.C:285:63: error: ‘F77_dgemm’ was not declared in this scope
F77_dgemm("N","N",&m,&n,&k,&alpha,m2,&m,m1,&k,&beta,out,&m);
^
Makefile:869: recipe for target 'T2accel.lo' failed
make[2]: *** [T2accel.lo] Error 1
make[2]: Leaving directory '/home/utkarsh/PulsarDataAnalysis/tempo2'
Makefile:1056: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/utkarsh/PulsarDataAnalysis/tempo2'
Makefile:599: recipe for target 'all' failed
make: *** [all] Error 2
Could you please help me resolve this.
Thank you.
Comments (5)
-
-
Hi,
This got solved. I had to reinstall my LAPACK library to make it work. Thank you for your response.
However now I am stuck at the next step. When I do make plugins && make plugins-install, I get the following error:
⇒ make plugins && make plugins-install make all-recursive make[1]: Entering directory '/home/utkarsh/PulsarDataAnalysis/tempo2' Making all in sofa make[2]: Entering directory '/home/utkarsh/PulsarDataAnalysis/tempo2/sofa' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/utkarsh/PulsarDataAnalysis/tempo2/sofa' Making all in . make[2]: Entering directory '/home/utkarsh/PulsarDataAnalysis/tempo2' make[2]: Leaving directory '/home/utkarsh/PulsarDataAnalysis/tempo2' Making all in tests make[2]: Entering directory '/home/utkarsh/PulsarDataAnalysis/tempo2/tests' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/utkarsh/PulsarDataAnalysis/tempo2/tests' make[1]: Leaving directory '/home/utkarsh/PulsarDataAnalysis/tempo2' make -C plugin make[1]: Entering directory '/home/utkarsh/PulsarDataAnalysis/tempo2/plugin' /bin/bash ../libtool --tag=CXX --mode=link g++ -fPIC -Wno-error -fopenmp -DHAVE_OPENMP -L//lib -L/usr/local/lib -L/home/utkarsh/PulsarDataAnalysis/pgplot_build -fopenmp -shared -module -avoid-version -shrext .t2 -o interpolate_linux_plug.la -rpath /home/utkarsh/PulsarDataAnalysis/tempo2/T2runtime/plugins/ interpolate_linux_plug_la-interpolate_plug.lo ../libtempo2.la ../sofa/libsofa.la -L/home/utkarsh/PulsarDataAnalysis/pgplot_build -lcpgplot -lpgplot -L/home/utkarsh/PulsarDataAnalysis/pgplot_build -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lgfortran -lm -lquadmath -lX11 -lX11 -lpng -L/home/utkarsh/PulsarDataAnalysis/lib -lfftw3 -lm -lm libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginS.o .libs/interpolate_linux_plug_la-interpolate_plug.o -Wl,-rpath -Wl,/home/utkarsh/PulsarDataAnalysis/tempo2/.libs -Wl,-rpath -Wl,/home/utkarsh/PulsarDataAnalysis/tempo2/sofa/.libs -Wl,-rpath -Wl,/home/utkarsh/PulsarDataAnalysis/lib -L//lib -L/usr/local/lib -L/home/utkarsh/PulsarDataAnalysis/pgplot_build ../.libs/libtempo2.so ../sofa/.libs/libsofa.so -lcpgplot -lpgplot -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lgfortran -lquadmath -lX11 -lpng -L/home/utkarsh/PulsarDataAnalysis/lib /usr/local/lib/libfftw3.a -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o -fopenmp -fopenmp -fopenmp -Wl,-soname -Wl,interpolate_linux_plug.t2 -o .libs/interpolate_linux_plug.t2 /usr/bin/ld: /usr/local/lib/libfftw3.a(apiplan.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libfftw3.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status Makefile:1162: recipe for target 'interpolate_linux_plug.la' failed make[1]: *** [interpolate_linux_plug.la] Error 1 make[1]: Leaving directory '/home/utkarsh/PulsarDataAnalysis/tempo2/plugin' Makefile:1515: recipe for target 'plugins' failed make: *** [plugins] Error 2
Please let me know if you need anymore information. I would really appreciate any help.
Regards, Utkarsh
-
So sorry for bothering you with this. I had multiple installation of fftw with the global one not compiled with -fpich flag. Just had to recompile it. You can close the issue.
Thanks, Utkarsh
-
- changed status to resolved
Issue appears to be resolved.
-
Hi Utkarsh, could you please let me know what specific LAPACK library you used? I keep running into the same error; I don’t know how to resolve this.
Thanks!
- Log in to comment
Please upload your config.log file. F77_... routines should be defined by a standard preprocessor macro for linking fortran code, so seems you might be using some unusual compilers? Please add more details.