Page 1 of 1

Makefile not created after merging

Posted: Fri Dec 10, 2010 2:12 am
by aromero
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!

Re: Makefile not created after merging

Posted: Fri Dec 10, 2010 3:59 pm
by pouillon
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.

Re: Makefile not created after merging

Posted: Fri Dec 10, 2010 4:12 pm
by aromero
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

Re: Makefile not created after merging

Posted: Fri Dec 10, 2010 6:00 pm
by pouillon
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?

Re: Makefile not created after merging

Posted: Fri Dec 10, 2010 6:23 pm
by aromero
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

Re: Makefile not created after merging

Posted: Wed Dec 15, 2010 3:22 pm
by pouillon
What happens if you configure with --enable-fc-wrapper?

Re: Makefile not created after merging

Posted: Thu Dec 16, 2010 1:29 am
by aromero
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

Re: Makefile not created after merging  [SOLVED]

Posted: Thu Dec 16, 2010 11:23 am
by pouillon
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?