revision 253

22 views
Skip to first unread message

Michael

unread,
Dec 16, 2021, 5:21:28 AM12/16/21
to cpseis-user
I tried to build in Ubuntu 20.04 with revision 253.
Already had the /apps/thirdparty tree for mpich3 gfortran.
First problem was this:

gfortran installed at: /usr/bin
mpich3 installed at: /apps/thirdparty/mpich-3.2.1/platforms/Linux_x86_64_2.31_gfortran_mpich3/bin
/apps/thirdparty/mpich-3.2.1/platforms/Linux_x86_64_2.31_gfortran_mpich3/bin
./install_cpseis.sh: /apps/cpseis/scripts/create_directories: /bin/bash^M: bad interpreter: No such file or directory
./install_cpseis.sh: line 367: cd: platforms/Linux_x86_64_2.31_gfortran_mpich3: No such file or directory

I found that the create_directories script has CRLF line endings (as in MSDOS)
So I used the ancient nedit editor to change the line endings to LF (unix).
Then the install scipt got up to building libva, and had another error:
-------------------------------------------------------
library  /apps/cpseis/spws_home/spws/lib/Linux_x86_64_2.31_gfortran_mpich3/liblibva.a  in  Linux_x86_64_2.31_gfortran_mpich3  finished  Thu 16 Dec 2021 17:41:34 AWST
-------------------------------------------------------

FFTW_LIBS=/apps/thirdparty/fftw-2.1.5/platforms/Linux_x86_64_2.31_gfortran_mpich3/lib/libfftw.a /apps/thirdparty/fftw-2.1.5/platforms/Linux_x86_64_2.31_gfortran_mpich3/lib/librfftw.a
/bin/sh: 1: /apps/thirdparty/fftw-2.1.5/platforms/Linux_x86_64_2.31_gfortran_mpich3/lib/librfftw.a: Permission denied
make[2]: *** [/apps/cpseis/spws_home/making/makefile.spws:943: /apps/cpseis/spws_home/spws/lib/Linux_x86_64_2.31_gfortran_mpich3/liblibva.a] Error 126
make[2]: Leaving directory '/apps/cpseis/spws_home/util/libva/Linux_x86_64_2.31_gfortran_mpich3'
make[1]: *** [makefile:122: libva] Error 2
make[1]: Leaving directory '/apps/cpseis/spws_home/making/Linux_x86_64_2.31_gfortran_mpich3'
make: *** [Makefile:329: spws] Error 2

I haven't seen that before, not sure what the cause is.

Lewis Goss

unread,
Dec 16, 2021, 8:37:54 AM12/16/21
to cpseis-user
Dear Michael:

I have not had these particular problems myself, not sure why.  I am using mpich2, not mpich3.  I am not sure that should make a difference.  I would suggest re-building your third-party tree again, and repeat the install process.

--
You received this message because you are subscribed to the Google Groups "cpseis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpseis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cpseis-user/7c78219b-9e25-4346-9f36-e9913c2e7493n%40googlegroups.com.

Michael

unread,
Dec 17, 2021, 7:01:48 AM12/17/21
to cpseis-user
I have upgraded CPSeis before, using the old fftw and mpich. As long as compiler version hasn't changed, it should be compatible.
Anyway, I tried on another distro and got the same problem. It seems it was trying to execute the librfftw.a static library. That is weird.
It looks like the trigger is in makefile.spws:
ifeq ($(NO_FFT),YES)
        FFTW_LIBS=
else
        FFTW_LIBS=$(FFTW_DIR)/$(LFM)/libfftw.a $(FFTW_DIR)/$(LFM)/librfftw.a
endif

That reads like a permissable conditional to me, it is similar to others in the makefile.
I rewrote it as follows:

FFTW_LIBS=$(FFTW_DIR)/$(LFM)/libfftw.a $(FFTW_DIR)/$(LFM)/librfftw.a
ifeq ($(NO_FFT),YES)
        FFTW_LIBS=
endif

Then the "make progs" part of the install process proceeds okay.
Reply all
Reply to author
Forward
0 new messages