I am trying to install the PSRSoft software package so that I can preprocess pulsar signal data and I am having a problem with the installation. The software package can be found on this website:
http://www.pulsarastronomy.net/pulsar/software/psrsoft#install
I was just following the instructions on the installation instructions document. The instructions told me to type in this command to install all the software packages: "./bin/psrsoft sixproc dspsr psrchive pulsarhunter." And then the shell will find approximately ten packages to install and it asks me if I want to install and I just hit "y." At first, the installation failed and gave me the following error: "X11/Xos.h no such file or directory." Then I searched online and found a webpage that instructed me to install the x11 library with this command: "sudo apt-get install libx11-dev." So I did that and I retried the installation but now it is failing for a reason I can't even identify.
This is the one line of code that I typed in to begin the installation sequence: "./bin/psrsoft sixproc dspsr psrchive pulsarhunter"
I am getting many error messages as the script is executing and showing me messages on the shell. There are about 1748 lines worth of error messages so I cannot post them all but I will paste some error messages that I think are the key error messages to focus on:
lux.c:49:3: warning: incompatible implicit declaration of built-in function ‘strcpy’
profile.c:23:3: warning: incompatible implicit declaration of built-in function ‘strcpy’
flux.c:49:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
profile.c:23:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
fold.c:11:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
...
chop_fil.c: In function ‘main’:
chop_fil.c:145:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(stderr,"Copying header (%d bytes)\n",headersize);
~^
%lld
chop_fil.c:150:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
fprintf(stderr,"Error! Could not read header %d/%d\n",count,headersize);
~^
%lld
chop_fil.c:150:52: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long long int’ [-Wformat=]
fprintf(stderr,"Error! Could not read header %d/%d\n",count,headersize);
~^
%lld
gcc: warning: .: linker input file unused because linking not done
depbase=`echo shredder.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I.. . -DPSRFITS -I/include -DFFTW_THREADS -I/mnt/c/Users/xxage/Documents/CSS581/psrsoft/usr/include -fopenmp - DHAVE_OPENMP -MT shredder.o -MD -MP -MF $depbase.Tpo -c -o shredder.o shredder.C &&\
mv -f $depbase.Tpo $depbase.Po
gcc: warning: .: linker input file unused because linking not done
depbase=`echo filterbank.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. . -DPSRFITS -I/include -DFFTW_THREADS -I/mnt/c/Users/xxage/Documents/CSS581/psrsoft/usr/include -fopenmp - DHAVE_OPENMP -MT filterbank.o -MD -MP -MF $depbase.Tpo -c -o filterbank.o filterbank.c &&\
mv -f $depbase.Tpo $depbase.Po
filterbank.c:17:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char *argv[])
^~~~
filterbank.c: In function ‘main’:
filterbank.c:50:3: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
strcpy(ifstream,"XXXX");
^~~~~~
filterbank.c:50:3: warning: incompatible implicit declaration of built-in function ‘strcpy’
filterbank.c:50:3: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
gcc: warning: .: linker input file unused because linking not done
gcc -DHAVE_CONFIG_H -I. -I.. -std=gnu99 - I/mnt/c/Users/xxage/Documents/CSS581/psrsoft/usr/include -fopenmp - DHAVE_OPENMP -MT fast_fake-fast_fake.o -MD -MP -MF .deps/fast_fake- fast_fake.Tpo -c -o fast_fake-fast_fake.o `test -f 'fast_fake.c' || echo './'`fast_fake.c
In file included from fast_fake.c:15:0:
fast_fake.c: In function ‘main’:
mjklog.h:8:19: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘uint64_t {aka long unsigned int}’ [- Wformat=]
#define WHERESTR "[%s:%d] "
^
mjklog.h:13:39: note: in definition of macro ‘_LOG’
#define _LOG(...) fprintf(LOG_OUTFILE,__VA_ARGS__)
^~~~~~~~~~~
mjklog.h:14:32: note: in expansion of macro ‘WHERESTR’
#define logmsg(_fmt, ...) _LOG(WHERESTR _fmt ENDL, WHEREARG,##__VA_ARGS__)
^~~~~~~~
fast_fake.c:160:4: note: in expansion of macro ‘logmsg’
logmsg("Generate %lld samples, %.3lf GiB",nsamples,nsamples*bytes_per_sample/pow(2,30));
^~~~~~
fast_fake.c:160:24: note: format string is defined here
logmsg("Generate %lld samples, %.3lf GiB",nsamples,nsamples*bytes_per_sample/pow(2,30));
~~~^
%ld
fast_fake.c:172:51: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
fprintf(stderr,"Complete: % 3d%%. Sample: % 9lld Real time % 6.1lfs, Sim time % 6.1lfs. Speed % 4.2lfMiB/s\r",percent,samp,t1, (double)samp*tsamp,bytespersec/pow(2,20));
~~~~~^
% 9ld
fast_fake.c:231:51: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
fprintf(stderr,"Complete: % 3d%%. Sample: % 9lld Real time % 6.1lfs, Sim time % 6.1lfs. Speed % 4.2lfMiB/s\r",percent,samp,t1, (double)samp*tsamp,bytespersec/pow(2,20));
~~~~~^
% 9ld
...
echo 'set bin = `dirname $0`'>> foldsignals
Makefile:1394: recipe for target 'dedisperse_all.o' failed
make[3]: *** [dedisperse_all.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cat ../src/foldsignals.csh >> foldsignals
g++: warning: .: linker input file unused because linking not done
chmod +x foldsignals
g++: warning: .: linker input file unused because linking not done
g++: warning: .: linker input file unused because linking not done
make[3]: Leaving directory '/mnt/c/Users/xxage/Documents/CSS581/psrsoft/usr/src/sixproc/src'
Makefile:898: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/mnt/c/Users/xxage/Documents/CSS581/psrsoft/usr/src/sixproc/src'
Makefile:435: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/mnt/c/Users/xxage/Documents/CSS581/psrsoft/usr/src/sixproc'
Makefile:366: recipe for target 'all' failed
make: *** [all] Error 2
ex=$?
if [ $ex != 0 ] ; then
exit $ex
fi
Build script failed!
In the end it ends with the build script failed error. I was hoping someone could tell me why this is happening? All I did was follow the instructions of an installation instructions document to initiate an installation sequence by typing the one line of code I showed above. Here is the link to a picture of the installation instructions document: