Makefile not created after merging  [SOLVED]

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
aromero
Posts: 53
Joined: Sun Aug 16, 2009 7:56 pm
Location: Queretaro-Mexico
Contact:

Makefile not created after merging

Post by aromero » Fri Dec 10, 2010 2:12 am

Hi all,

I did merge my most recent version into the most recent one available in the repository (6.5.1) and after doing so, I did issue the command
config/scripts/makemake
to create the Makefiles but now the system is complaining with the message


****************************************************************
*** WARNING! ***
****************************************************************
*** ***
*** Libtool integration into ABINIT has now started. You ***
*** will have to install Libtool 2.2.2 or later if you want ***
*** to benefit from the advanced features it provides. ***
*** ***
*** Some features of the build system will be disabled until ***
*** you install a proper version of Libtool. ***
*** ***
****************************************************************


In my fink in mac I did reinstal everything and according with the list, libtool 2.2 is installed


i libtool2 2.4-1 Shared library build helper, v2.2
i libtool2-shlibs 2.4-1 Shared libraries for libtool, v2.2


Is there anything that I should install to proceed? is there anything that I need to keep in mind?

Thanks!

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: Makefile not created after merging

Post by pouillon » Fri Dec 10, 2010 3:59 pm

Makefile creation has nothing to do with the warning message you get. The latter appears because the build system was unable to detect the version of libtool you're using. You can safely ignore it for now.

Could you report the output of "libtool --version" in this thread, so that I can improve the detection mechanism?

Thank you in advance.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

aromero
Posts: 53
Joined: Sun Aug 16, 2009 7:56 pm
Location: Queretaro-Mexico
Contact:

Re: Makefile not created after merging

Post by aromero » Fri Dec 10, 2010 4:12 pm

Yann

I have to use libtool -V instead of the --version (it does not recognize it)

Apple Computer, Inc. version cctools-773

By the way, I did solve the problem, I did have to clean the tree before the makemake. By the way, after issuing
the configure, I did found now many different problems during compilation. I did have only a successful compilation
after issuing
./configure --disable-libxc --disable-bigdft --disable-etsf-io --disable-netcdf

is there any changes? previously I was able to compile at least with netcdf and etsf-io.

Regards

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: Makefile not created after merging

Post by pouillon » Fri Dec 10, 2010 6:00 pm

I cannot do much for the libtool issue presently.

There have not been many changes in the build system in 6.5, and most of them are bugfixes. What kind of errors do you get?
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

aromero
Posts: 53
Joined: Sun Aug 16, 2009 7:56 pm
Location: Queretaro-Mexico
Contact:

Re: Makefile not created after merging

Post by aromero » Fri Dec 10, 2010 6:23 pm

For example, just using ./configure and then make, I get


libtool: compile: gfortran -ffree-form -g -ffree-line-length-none -O2 -mtune=native -march=native -mfpmath=sse -c libxc.f90 -o libxc_la-libxc.o
libxc.f90:30:

module xc_f90_ ## types_m
1
Error: Declaración inclasificable en (1)
libxc.f90:34.17:

integer, public, parameter :: xc_f90_kind = selected_real_kind(14)
1
Error: No se permite el atributo PUBLIC en (1) fuera de la parte de especificación de un módulo
libxc.f90:37.2:

type xc_f90_ ## pointer_t
1
Error: Declaración inclasificable en (1)
libxc.f90:38.11:

private
1
Error: Sólo se permite la declaración PRIVATE en (1) en la parte de especificación de un módulo
libxc.f90:40.5:

end type xc_f90_ ## pointer_t
1
Error: Esperando la declaración END PROGRAM en (1)
libxc.f90:42.3:

end module xc_f90_ ## types_m
1
Error: Esperando la declaración END PROGRAM en (1)
libxc.f90:46:

module xc_f90_ ## lib_m
1
Error: Declaración inclasificable en (1)
libxc.f90:48.13:

use xc_f90_ ## types_m
1
Error: Error sintáctico en la declaración USE en (1)
libxc.f90:49.19:

use libxc_funcs_m
1
libxc.f90:39.30:

integer, pointer :: buffer
2
Error: La declaración USE en (1) no puede ir después de la declaración declaración de datos en (2)
libxc.f90:51.15:

implicit none
1
libxc.f90:39.30:

integer, pointer :: buffer
2
Error: La declaración IMPLICIT NONE en (1) no puede ir después de la declaración declaración de datos en (2)
libxc.f90:53.8:

public
1
Error: Sólo se permite la declaración PRIVATE en (1) en la parte de especificación de un módulo
libxc.f90:95.28:

integer function xc_f90_ ## info_number(info)
1
Error: Se esperaba una lista de argumentos formales en la definición de la función en (1)
libxc.f90:96.17:

use xc_f90_ ## types_m
1
Error: Error sintáctico en la declaración USE en (1)
libxc.f90:97.6:

type(xc_f90_ ## pointer_t), intent(in) :: info
1
Error: Declaración inclasificable en (1)
libxc.f90:98.7:

end function xc_f90_ ## info_number
1
Error: Esperando la declaración END INTERFACE en (1)
libxc.f90:100.28:

integer function xc_f90_ ## info_kind(info)
1
Error Interno en (1):
insert_bbt(): Duplicate key found!
make[8]: *** [libxc_la-libxc.lo] Error 1
make[7]: *** [all] Error 2
make[6]: *** [all-recursive] Error 1
make[5]: *** [all] Error 2
make[4]: *** [build-stamp] Error 2
make[3]: *** [package-ready] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1


Again.. sorry for the spanish, I hope it is clear from the messages :-)

thanks

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: Makefile not created after merging

Post by pouillon » Wed Dec 15, 2010 3:22 pm

What happens if you configure with --enable-fc-wrapper?
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

aromero
Posts: 53
Joined: Sun Aug 16, 2009 7:56 pm
Location: Queretaro-Mexico
Contact:

Re: Makefile not created after merging

Post by aromero » Thu Dec 16, 2010 1:29 am

I am now using the 6.5.2 version.. things have progresses...

then I did

./configure --enable-fc-wrapper

and after the make, I got (by the way, netcdf was successfully compiled):


ABINIT WRAPPER BEGIN
gfortran -ffree-form -g -ffree-line-length-none -O2 -mtune=native -march=native -mfpmath=sse -c libxc.f90 -o libxc_la-libxc.o
libxc.f90:30:

module xc_f90_ ## types_m
1
Error: Declaración inclasificable en (1)
libxc.f90:34.17:

integer, public, parameter :: xc_f90_kind = selected_real_kind(14)
1
Error: No se permite el atributo PUBLIC en (1) fuera de la parte de especificación de un módulo
libxc.f90:37.2:

type xc_f90_ ## pointer_t
1
Error: Declaración inclasificable en (1)
libxc.f90:38.11:

private
1
Error: Sólo se permite la declaración PRIVATE en (1) en la parte de especificación de un módulo
libxc.f90:40.5:

end type xc_f90_ ## pointer_t
1
Error: Esperando la declaración END PROGRAM en (1)
libxc.f90:42.3:

end module xc_f90_ ## types_m
1
Error: Esperando la declaración END PROGRAM en (1)
libxc.f90:46:

module xc_f90_ ## lib_m
1
Error: Declaración inclasificable en (1)
libxc.f90:48.13:

use xc_f90_ ## types_m
1
Error: Error sintáctico en la declaración USE en (1)
libxc.f90:49.19:

use libxc_funcs_m
1
libxc.f90:39.30:

integer, pointer :: buffer
2
Error: La declaración USE en (1) no puede ir después de la declaración declaración de datos en (2)
libxc.f90:51.15:

implicit none
1
libxc.f90:39.30:

integer, pointer :: buffer
2
Error: La declaración IMPLICIT NONE en (1) no puede ir después de la declaración declaración de datos en (2)
libxc.f90:53.8:

public
1
Error: Sólo se permite la declaración PRIVATE en (1) en la parte de especificación de un módulo
libxc.f90:95.28:

integer function xc_f90_ ## info_number(info)
1
Error: Se esperaba una lista de argumentos formales en la definición de la función en (1)
libxc.f90:96.17:

use xc_f90_ ## types_m
1
Error: Error sintáctico en la declaración USE en (1)
libxc.f90:97.6:

type(xc_f90_ ## pointer_t), intent(in) :: info
1
Error: Declaración inclasificable en (1)
libxc.f90:98.7:

end function xc_f90_ ## info_number
1
Error: Esperando la declaración END INTERFACE en (1)
libxc.f90:100.28:

integer function xc_f90_ ## info_kind(info)
1
Error Interno en (1):
insert_bbt(): Duplicate key found!
ABINIT WRAPPER END (exit code 1)
make[8]: *** [libxc_la-libxc.lo] Error 1
make[7]: *** [all] Error 2
make[6]: *** [all-recursive] Error 1
make[5]: *** [all] Error 2
make[4]: *** [build-stamp] Error 2
make[3]: *** [package-ready] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: Makefile not created after merging  [SOLVED]

Post by pouillon » Thu Dec 16, 2010 11:23 am

I've now found the problem: libxc.f90 is a file created by preprocessing another one, but what you get is just a copy of the original file. This is definitely a portability issue of LibXC on Mac, and has nothing to do with Abinit. You should report it to Miguel Marques, along with all relevant information about your configuration. He might give you useful advice.

We may however try to work this around within Abinit. Could you set CPP and TRUE_CPP manually on the command-line to the path of a real C preprocessor, while keeping the --enable-fc-wrapper option and tell me what happens?
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

Locked