missing flags in INCLUDES  [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
mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

missing flags in INCLUDES

Post by mverstra » Fri Mar 04, 2011 1:30 pm

Hello,

following some comments in the previous thread and some emails, I believe something is missing from CFLAGS, but have no idea how to put it back: when specifying

with_math_flavor="gsl"
with_math_incs="-I/gpfs/apps/GSL/1.9/64/include"
with_math_libs="-L/gpfs/apps/GSL/1.9/64/lib/gsl -lgsl"

the configure claims that gsl is unusable because the include header files are missing. In the test compilation line it is _not_ using the given -I option, so I think that the _incs are not added to CFLAGS / FCFLAGS

If I add (thanks jmb):
CFLAGS_EXTRA = -I/gpfs/apps/GSL/1.9/64/include

then it works for the configure but fails to find the includes at 01_gsl compile time...
I think the with_math_incs should be included by default, no?

In config/scripts/make-makefiles-corelibs I find:

# FIXME: hard-coded include list
include_dirs = ["incs"]

which begs for the addition of the other (fft, math etc...) inc variables. This goes into the INCLUDES variable, and compiles correctly. Yann? Some feedback when you get back?

Matthieu
Matthieu Verstraete
University of Liege, Belgium

User avatar
jbeuken
Posts: 365
Joined: Tue Aug 18, 2009 9:24 pm
Contact:

Re: missing flags in INCLUDES

Post by jbeuken » Sat Mar 05, 2011 3:41 pm

Matth,

now, I have a bot ( buda_gcc45_gsl ) and I put in the .ac file

with_math_flavor = gsl
with_math_incs = -I/usr/local/gsl/include
with_math_libs = -L/usr/local/gsl/lib -lgsl
CFLAGS_EXTRA = -I/usr/local/gsl/include

and

Code: Select all

 ./configure  && make && make tests

works and the waterfall is green !

see : http://www.abinit.org:8012/builders/bud ... l/builds/0

the installation of GSL is not very "standard" : I use --prefix=/usr/local/gsl instead of --prefix=/usr/local

jmb
------
Jean-Michel Beuken
Computer Scientist

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: missing flags in INCLUDES

Post by mverstra » Sat Mar 05, 2011 7:16 pm

Hello Jimmy boy,

no no - /usr/local/gsl _is_ standard. You give the include directory, and the include statements contain gsl/yourfile.h
I still believe that there is a flag insertion missing :)


Matthieu
Matthieu Verstraete
University of Liege, Belgium

User avatar
jbeuken
Posts: 365
Joined: Tue Aug 18, 2009 9:24 pm
Contact:

Re: missing flags in INCLUDES

Post by jbeuken » Sat Mar 05, 2011 8:58 pm

Matth,

Sorry, but I don't understand... :oops:

where is your gsl/yourfile.h ?
you also give the include statements :

with_math_incs="-I/gpfs/apps/GSL/1.9/64/include"
FLAGS_EXTRA = -I/gpfs/apps/GSL/1.9/64/include


I don't understand why the compilation doesn't work...

but yes , I agree with you concerning the problem of inclusion of math_incs into INCLUDES variable...

cheers,

jmb
------
Jean-Michel Beuken
Computer Scientist

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: missing flags in INCLUDES

Post by mverstra » Mon Mar 07, 2011 2:30 pm

jbeuken wrote:where is your gsl/yourfile.h ?

just an example: gsl header files are referenced explicitly with the subdirectory gsl/ and so your bot _is_ using a default directory for the header files.

you also give the include statements :

with_math_incs="-I/gpfs/apps/GSL/1.9/64/include"
FLAGS_EXTRA = -I/gpfs/apps/GSL/1.9/64/include


I don't understand why the compilation doesn't work...

The configure test is on a C executable, so I had to add
FCFLAGS+=" -I/gpfs/apps/GSL/1.9/64/include "
as well. It works now!

but yes , I agree with you concerning the problem of inclusion of math_incs into INCLUDES variable...

cheers,

jmb

hai! So des. Biru-wo nomimaska?

Matthieu
Matthieu Verstraete
University of Liege, Belgium

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

Re: missing flags in INCLUDES  [SOLVED]

Post by pouillon » Wed Mar 16, 2011 1:36 pm

There may be a design flaw in the MATH connector for GSL. I'll check it when I have time.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

Locked