Hi, siesta users, i've got an error (see the last part of this message) when compiling the Gen-basis utility. Everything was just fine when compling the main program (MPI version) of siesta and its dependencies.
As suggested in the Makefile (whose absolute path is `siesta-3.2/Util/Gen-basis/Makefile), i.e.,define an FC_SERIAL symbol in my top arch.make, to avoid linking in the mpi libraries even if we explicitly undefine MPI below. I've followed exactly the suggestion by insert one line with content "FC_SERIAL=gfortran" in top arch.make file and modified the related lines in `siesta-3.2/Util/Gen-basis/Makefile #+++++++++++++++++++++++++++++++++++++++++++++++++++ #FC_DEFAULT:=$(FC) #FC_SERIAL?=$(FC_DEFAULT) FC:=$(FC_SERIAL) # Make it non-recursive #+++++++++++++++++++++++++++++++++++++++++++++++++++ the error still exists. Any suggestions? Best regards, Bing ###################################################################### ############################## *Error Message* ######################### bhuang@ubuntu:~/src/siesta-3.2/Util/Gen-basis$ make (cd fdf ; make -f /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf/makefile "FC=gfortran " "VPATH=/home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf" \ "ARCH_MAKE=../../../Obj/arch.make" \ "INCFLAGS=-I /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf -I/home/bhuang/netcdf/include " "FFLAGS=-g -O2" module) make[1]: Entering directory `/home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/fdf' In fdf, INCFLAGS is: -I /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf -I/home/bhuang/netcdf/include gfortran -c -g -O2 -I /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf -I/home/bhuang/netcdf/include /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf/fdf.f Assembler messages: Fatal error: can't create fdf.o: Permission denied make[1]: *** [fdf.o] Error 1 make[1]: Leaving directory `/home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/fdf' make: *** [libfdf.a] Error 2 bhuang@ubuntu:~/src/trash/siesta-3.2/Util/Gen-basis$ sudo make (cd fdf ; make -f /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf/makefile "FC=gfortran " "VPATH=/home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf" \ "ARCH_MAKE=../../../Obj/arch.make" \ "INCFLAGS=-I /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf -I/home/bhuang/netcdf/include " "FFLAGS=-g -O2" module) make[1]: Entering directory `/home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/fdf' In fdf, INCFLAGS is: -I /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf -I/home/bhuang/netcdf/include gfortran -c -g -O2 -I /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf -I/home/bhuang/netcdf/include /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf/fdf.f gfortran -c -g -O2 -I /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf -I/home/bhuang/netcdf/include /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf/parse.f gfortran -c -g -O2 -I /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf -I/home/bhuang/netcdf/include /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/fdf/fdf_mod.f ar cru libfdf.a fdf.o fdf_mod.o parse.o ranlib libfdf.a cp libfdf.a .. make[1]: Leaving directory `/home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/fdf' gfortran -c -g -O2 -I/home/bhuang/netcdf/include /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/parallel.f gfortran -c -g -O2 -I/home/bhuang/netcdf/include -UMPI -DMPI -DFC_HAVE_FLUSH -DFC_HAVE_ABORT -DCDF /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/precision.F gfortran -c -g -O2 -I/home/bhuang/netcdf/include -UMPI -DMPI -DFC_HAVE_FLUSH -DFC_HAVE_ABORT -DCDF /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/sys.F /home/bhuang/src/trash/siesta-3.2/Util/Gen-basis/../../Src/sys.F:23.9: use mpi_siesta 1 Fatal Error: Can't open module file 'mpi_siesta.mod' for reading at (1): No such file or directory make: *** [sys.o] Error 1 ###################################################################### ############################## *Error Message* #########################
