abinit 6.6.2 bindings with intel copmpilator

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
roginovicci
Posts: 75
Joined: Thu Dec 02, 2010 10:36 pm

abinit 6.6.2 bindings with intel copmpilator

Post by roginovicci » Mon Apr 04, 2011 10:50 pm

It fails compiling bindings. The compilation broke up at the

Code: Select all

/usr/local/mpich2//bin/mpicc  -I. -I/home_usr/mavrin39/work/abinit-6.6.2 -L/usr/local/mpich2/lib/intel64 -lmpich -c /home_usr/mavrin39/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c


with error

Code: Select all

/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c(41): error: function returning function is not allowed
    (int *dt, const char *filename, int *len);
     ^

/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c(40): warning #92: identifier-list parameters may only be used in a function definition
  void VARS_NAME(new_from_file,NEW_FROM_FILE)
       ^

/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c(43): error: function returning function is not allowed
    (int *dt, const char *string, int *len);
     ^

/work/abinit-6.6.2/bindings/parser/ab6_invars_c.c(42): warning #92: identifier-list parameters may only be used in a function definition
  void VARS_NAME(new_from_string,NEW_FROM_STRING)
       ^
etc

it seems theese macros didn't do well
#define ABI_FC_MOD(mod,MOD,sub,SUB) mod ## _mp_ ## FC_FUNC(sub,SUB)
#define FC_FUNC(name,NAME) name ## _


#define VARS_NAME(a,A) ABI_FC_MOD(m_ab6_invars,M_AB6_INVARS, \
ab6_invars_ ## a,AB6_INVARS_ ## A)

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

Re: abinit 6.6.2 bindings with intel copmpilator

Post by pouillon » Tue Apr 05, 2011 5:42 pm

Bindings are still experimental and have been tested with gfortran only. Please consider using them only if you are willing to participate to their testing / debugging. Trying to use them for production is not recommended yet.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

Locked