timeout.c compilation on ibm  [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

timeout.c compilation on ibm

Post by mverstra » Fri Feb 25, 2011 10:02 pm

On my IBM xlf 12.1 linux platform I still have a problem with the latest 6.7.0 version of timeout.c:


mpicc -DHAVE_CONFIG_H -I. -I../.. -I../../../tests/Nightly -O0 -qlanglvl=stdc99 -O3 -q64 -qspill=2000 -qarch=pwr6 -qtune=auto -qcache=auto -qstrict -qsuppress=1520-031:1520-003 -c -o timeout-timeout.o `test -f 'timeout.c' || echo '../../../tests/Nightly/'`timeout.c
1506-352 (W) An invalid combination of the -qarch and -qtune options has been specified. The -qtune option is ignored.
"../../../tests/Nightly/timeout.c", line 131.28: 1506-280 (S) Function argument assignment between types "union {...}" and "int*" is not allowed.


Does not influence normal abinit build, but nightly fails.

Matthieu
Matthieu Verstraete
University of Liege, Belgium

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

Re: timeout.c compilation on ibm

Post by mverstra » Sun Mar 20, 2011 9:45 am

still a problem in 6.7.1...
Matthieu Verstraete
University of Liege, Belgium

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

Re: timeout.c compilation on ibm

Post by pouillon » Sun Mar 20, 2011 1:42 pm

What happens if you set the following:

Code: Select all

CFLAGS_EXTRA="-qlanglvl=extc99"


or replace it on the coomand line?
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

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

Re: timeout.c compilation on ibm

Post by mverstra » Sun Mar 20, 2011 10:55 pm

that works, great! Should we change the .ac files in the distribution?

Matthieu
Matthieu Verstraete
University of Liege, Belgium

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

Re: timeout.c compilation on ibm  [SOLVED]

Post by pouillon » Mon Mar 21, 2011 11:32 am

Done in pouillon/6.6.2-public/567.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

Locked