Skip to Content.
Sympa Menu

forum - Re: [abinit-forum] problem in running make ... getting rid of the double underscore

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Re: [abinit-forum] problem in running make ... getting rid of the double underscore


Chronological Thread 
  • From: Alain Jacques <ajs.jacques@gmail.com>
  • To: forum@abinit.org
  • Subject: Re: [abinit-forum] problem in running make ... getting rid of the double underscore
  • Date: Thu, 29 Jan 2009 10:58:07 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=uOVVd+GriDDAIJJ1JG/VGUdcmmhy/onhG668+BlXpMPXv8mzzCrqAEsxaaZVE5r8qw Et0+IcqPTGs37yIrGazZF8gLWY2pWCiWkEkORtCtTXYwm0g6+BGk24nv3G3k+eou8Z96 IJRJqqZ3c1e8RJiqdtCKfKFgssL1JHgVGJiRI=

Hello Vikas,

As mentioned by Xavier, a way of avoiding the error is to disable netcdf and etsf-io.
If you want to keep these functionalities, here follows my recipe ...

I suspect your problem comes from  the double undescores function names in your netcdf build. When make stops with the error, go in plugins/netcdf/netcdf-3.6.3, look at the head of config.log and reissue netcdf's configure by adding the define DpgiFortran (i.e. add CPPFLAGS="-DNDEBUG -DpgiFortran" and --with-mpi-cppflags="-DNDEBUG -DpgiFortran" if applicable). Make, make check (now the fortran tests should go up to the end without error) then make install (your netcdf stuff goes in plugins/netcdf/tmp/). Go back to plugins/netcdf and copy ./tmp/bin, ./tmp/lib and ./tmp/include content in your current plugins/netcdf directory (in order to have your new plugings/netcdf/libnetcdf.la and similar in the right place). cd ../.. to go back to your abinit build root and reissue make to go on with abinit compilation.

Cheers,

Alain


vikas sharma wrote:
722.75966.qm@web8407.mail.in.yahoo.com" type="cite">
Dear Alain
I am using GNU Fortran (GCC) 4.2.3.

I m copying the error message on the run of make check "inplugins/netcdf/netcdf-3.6.3" as follows
============================
util.o: In function `internal_min__':
/abinit-5.6.4/tmp/plugins/netcdf/netcdf-3.6.3/nf_test/util.F:1255: undefined reference to `min_schar__'
/abinit-5.6.4/tmp/plugins/netcdf/netcdf-3.6.3/nf_test/util.F:1267: undefined reference to `min_short__'
/abinit-5.6.4/tmp/plugins/netcdf/netcdf-3.6.3/nf_test/util.F:1277: undefined reference to `min_int__'
collect2: ld returned 1 exit status
make[2]: *** [nf_test] Error 1
make[2]: Leaving directory `/abinit-5.6.4/tmp/plugins/netcdf/netcdf-3.6.3/nf_test'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/abinit-5.6.4/tmp/plugins/netcdf/netcdf-3.6.3/nf_test'
make: *** [check-recursive] Error 1
========================================

Thanking you for the help
Regards,

Vikas Sharma,
Research Scholar,
Physics Department,
IIT Delhi, New Delhi-16, India.


--- On Tue, 27/1/09, Alain Jacques <ajs.jacques@gmail.com> wrote:
From: Alain Jacques <ajs.jacques@gmail.com>
Subject: Re: [abinit-forum] problem in running make
To: forum@abinit.org
Date: Tuesday, 27 January, 2009, 7:18 PM

Dear Vikas,

Could you please provide some more information? What version of gfortran are you using? What is the result of a netcdf test ( go in plugins/netcdf/netcdf-3.6.3 and do a "make check")

Kind regards,

Alain

vikas sharma wrote:
Hello
the make utility did not find the etsf_io.mod file wherever it was directed to search. Though there was no such warning during the run of ./configure command.
Kindly help me in resolving the problem.
thanks in advance.
The error message is as follows:
==================================
make[2]: Entering directory `/abinit-5.6.4/tmp/src/13iovars'
gfortran -DHAVE_CONFIG_H -I. -I../../../src/13iovars -I../.. -I../../src/defs -I../../../src/defs -I/abinit-5.6.4/tmp/plugins/netcdf -I/abinit-5.6.4/tmp/plugins/etsf_io -I/abinit-5.6.4/tmp/plugins/bigdft   -g -O2 -march=opteron  -c -o chkinp.o ../../../src/13iovars/chkinp.F90
../../../src/13iovars/chkinp.F90:50.12:

 use etsf_io
           1
Fatal Error: Can't open module file 'etsf_io.mod' for reading at (1): No such file or directory
make[2]: *** [chkinp.o] Error 1
make[2]: Leaving directory `/abinit-5.6.4/tmp/src/13iovars'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/abinit-5.6.4/tmp/src'
make: *** [check-recursive] Error
=============================================



Add more friends to your messenger and enjoy! Invite them now.




Archive powered by MHonArc 2.6.15.

Top of Page