Page 1 of 1

timeout.c compilation on ibm

Posted: Fri Feb 25, 2011 10:02 pm
by mverstra
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

Re: timeout.c compilation on ibm

Posted: Sun Mar 20, 2011 9:45 am
by mverstra
still a problem in 6.7.1...

Re: timeout.c compilation on ibm

Posted: Sun Mar 20, 2011 1:42 pm
by pouillon
What happens if you set the following:

Code: Select all

CFLAGS_EXTRA="-qlanglvl=extc99"


or replace it on the coomand line?

Re: timeout.c compilation on ibm

Posted: Sun Mar 20, 2011 10:55 pm
by mverstra
that works, great! Should we change the .ac files in the distribution?

Matthieu

Re: timeout.c compilation on ibm  [SOLVED]

Posted: Mon Mar 21, 2011 11:32 am
by pouillon
Done in pouillon/6.6.2-public/567.