problem in installing some plugins

Issue #67 closed
pooyan goodarzi created an issue

I intend to simulate pulsars with Tempo2 and add background Gravitational-wave to the simulated data, either with GWbkgrd or addGWB. The problem is that I can make neither GWbkgrd nor TOAsim plugins. These are the plugins I already have:

Available plugins
in '/usr/share/tempo2//plugins/'
 - fake
 - angle
 - stridefit2
 - autoSpectralFit
 - general2
 - detectGWBnew
 - transform
 - publish
 - findCWs
 - applet
 - analyticChol
 - bary
 - matrix
 - detectGWB
 - general
 - tnmaxlike
 - cholSpectra
 - fitStability
 - autoDM
 - exportres
 - add
 - simRedNoise
-----------------

This is the ./configure command that I run:

$ ./configure F77=gfortran --prefix=/home/alireza/pooyan/ --with-cfitsio-dir=/home/alireza/pooyan \
--with-fftw3-dir=/home/alireza/pooyan CFLAGS=-fPIC FFLAGS=-fPIC CXXFLAGS=-I/home/alireza/pooyan/include \
-I/home/alireza/pooyan/pgplot_build LDFLAGS=-L/home/alireza/pooyan/pgplot_build

These are the last lines of the result in which everything seems to be Ok:

configure: Fortran compiler is gfortran -fPIC
configure: C compiler is gcc -fPIC -Wno-error  -DHAVE_OPENMP
configure: C++ compiler is g++ -fPIC -Wno-error -fopenmp -DHAVE_OPENMP
configure: Global linking flags are -L//lib -L/usr/local/lib -L/home/alireza/pooyan/pgplot_build -fopenmp
configure: PGPLOT compile flags are ""
configure: PGPLOT linking flags are " -lcpgplot -lpgplot  -L/home/alireza/pooyan/pgplot_build -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../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/7/../../.. -lgfortran -lm -lquadmath   -lX11"
configure: Using LAPACK library for Cholesky decomposition
configure: Using BLAS library for matrix multiplication
configure: Using OpenMP for multithreading
configure: Calceph library was not found

NOTICE: plugins can be built with 'make plugins && make plugins-install'
temponest is now installed separately. Try ./update --temponest

****
Ok! Good to start compiling... try make && make install'
****

After this I can do make && make install, then make plugins && make plugins-install and then make unsupported. I have also tried make complete && make complete-install. but the mentioned plugins are not made this way.

If I try to make a single plugin manually, e.g make GWbkgrd in the /plugin directory, the following happens which I can not interpret.

/bin/bash ../libtool  --tag=CXX   --mode=link g++  -fPIC -Wno-error -fopenmp -DHAVE_OPENMP   -L//lib -L/usr/local/lib -L/home/alireza/pooyan/pgplot_build -fopenmp -shared -module -avoid-version -shrext .t2 -o GWbkgrd_linux-gnu_plug.la -rpath /plugins/ GWbkgrd_linux-gnu_plug_la-GWbkgrd_plug.lo ../libtempo2.la ../sofa/libsofa.la  -lcpgplot -lpgplot  -L/home/alireza/pooyan/pgplot_build -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../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/7/../../.. -lgfortran -lm -lquadmath   -lX11 -lm 
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o  .libs/GWbkgrd_linux-gnu_plug_la-GWbkgrd_plug.o   -Wl,-rpath -Wl,/home/alireza/pooyan/tempo2/tempo2/.libs -Wl,-rpath -Wl,/home/alireza/pooyan/tempo2/tempo2/sofa/.libs -Wl,-rpath -Wl,/home/alireza/pooyan/lib -L//lib -L/usr/local/lib -L/home/alireza/pooyan/pgplot_build ../.libs/libtempo2.so ../sofa/.libs/libsofa.so -lcpgplot -lpgplot -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../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/7/../../.. -lgfortran -lquadmath -lX11 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o  -fopenmp -fopenmp   -fopenmp -Wl,-soname -Wl,GWbkgrd_linux-gnu_plug.t2 -o .libs/GWbkgrd_linux-gnu_plug.t2
/usr/bin/ld: /home/alireza/pooyan/pgplot_build/libpgplot.a(xwdriv.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:1104: recipe for target 'GWbkgrd_linux-gnu_plug.la' failed
make: *** [GWbkgrd_linux-gnu_plug.la] Error 1

what am I doing wrong? how can I make these plugins?

Comments (2)

  1. Michael Keith

    “make complete && make complete-install” should install all plugins, but it won’t build plugins where it can’t find the required libraries. By the look of it you don’t have any of the pgplot plugins, so might be worth checking through config.log to find if it is able to locate and compile against pgplot libaries.

  2. Log in to comment