forum@abinit.org
Subject: The ABINIT Users Mailing List ( CLOSED )
List archive
- From: Samuel Sarholz <sarholz@rz.rwth-aachen.de>
- To: forum@abinit.org
- Subject: Re: [abinit-forum] Trouble compiling abinit 5.6.3
- Date: Thu, 04 Dec 2008 13:59:23 +0100
Hi,
I managed to compile abinit 5.6.3 on Solaris with the Sun Studio compiler.
However there are a few bugs in the make mechanism, that I had to fix.
1. The Sun Studio compiler needs the include/module directory set (for the *.mod file). However the option is different from e.g. GNU and Intel which use -I. (-I is set with the path the .mod files)
If the Sun Compiler is not supported, then is can be ignored.
My workaround is to specify all the module directories as Fortran Compiler Flags:
-M$BASEDIR/src/defs -M$BASEDIR/plugins/bigdft -M$BASEDIR/plugins/bigdft/bigdft-1.0-1/src/PSolver -M$BASEDIR/plugins/wannier90/wannier90-1.1/src/
2. the wannier compilation is ignoring FCOPTS (which may caused problems on other systems as well)
plugins/wannier90/wannier90-1.1/src/Makefile line 13 - 14 :
prog: $(OBJS)
$(F90) wannier_prog.F90 $(LDOPTS) $(OBJS) $(LIBS) -o ../wannier90.x
a file is compiled and linked, so imho the $(FCOPTS) should be added.
(otherwise e.g. 32 or 64 bit options will be ignored and build probably fail)
3. make install fails
the step I do are:
configure
make
make install
Making install in tests fails. There are several files not found (which do not exist)
e.g. ,log
Editing the Makefile and removing them from the install list helps.
I can understand that nobody ran into the first 2 problems, however the last seems to be a general problem.
best regards,
Samuel
Samuel Sarholz wrote:
Hi,
I am compiling abinit 5.6.3 at the moment and encountered some problems.
1. the support for the Sun Compiler seems to be removed. The Sun compiler needs the -M Option to find the .mod files. This was working in 5.4.4 and 5.3.5 (ABINIT WRAPPER BEGIN and end lines somehow wrapped that).
My workaround is adding -M../defs -M../src/PSolver -M../src -M../../lib/bigdft/bigdft-1.0/src -M../src -M../../lib/bigdft
to the FCFLAGS.
There are still missing some. Is there a better/easier way to get abinit build with the Sun Compiler?
2. the make install doesn't find some ,,.. files in the tests directory and fails. I have this problem on Linux with the GNU and the Intel compiler.
Workaround: edit the Makefile in tests and remove the install directives for the file which are not found.
Did anyone encounter similar problems?
best regards,
Samuel
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Samuel Sarholz, 12/04/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Yann Pouillon, 12/04/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Samuel Sarholz, 12/05/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Xavier Gonze, 12/05/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Samuel Sarholz, 12/09/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Xavier Gonze, 12/09/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Samuel Sarholz, 12/09/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Yann Pouillon, 12/05/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Xavier Gonze, 12/05/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Samuel Sarholz, 12/05/2008
- Re: [abinit-forum] Trouble compiling abinit 5.6.3, Yann Pouillon, 12/04/2008
Archive powered by MHonArc 2.6.15.