Compiling 6.12.3 on BlueGene /L  [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
Anirban
Posts: 1
Joined: Fri Nov 16, 2012 11:01 pm

Compiling 6.12.3 on BlueGene /L

Post by Anirban » Sat Nov 17, 2012 1:28 am

Hi,

Compilation fails on BlueGene /L with Intel XL Fortran 10.1 compilers. Compilation fails for file "m_iso_c_bindings.F90". I'm guessing its an issue with the XL compilers as it did compile on my laptop with gfortran. I was wondering if there was a workaround.

Thanks,
Anirban

******OUTPUT******
pala2@levi:~/software/abinit-6.12.3/src> make
Making all in incs
make[1]: Entering directory `/gpfs/gpfs0/home/pala2/software/abinit-6.12.3/src/incs'
There is no buildable file here
make[1]: Leaving directory `/gpfs/gpfs0/home/pala2/software/abinit-6.12.3/src/incs'
Making all in mods
make[1]: Entering directory `/gpfs/gpfs0/home/pala2/software/abinit-6.12.3/src/mods'
There is no buildable file here
make[1]: Leaving directory `/gpfs/gpfs0/home/pala2/software/abinit-6.12.3/src/mods'
Making all in 01_interfaces_ext
make[1]: Entering directory `/gpfs/gpfs0/home/pala2/software/abinit-6.12.3/src/01_interfaces_ext'
mpixlf90 -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/gpfs/gpfs0/home/pala2/software/abinit-6.12.3/fallbacks/exports/include -DHAVE_DFT_LIBXC -qsuffix=cpp=F90:f=f90 -qfree=f90 -qmoddir=/gpfs/gpfs0/home/pala2/software/abinit-6.12.3/src/mods -I/gpfs/gpfs0/home/pala2/software/abinit-6.12.3/src/mods -O3 -qmaxmem=65536 -qspill=2000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-022:1520-031 -g -qzerosize -c -o m_iso_c_bindings.o m_iso_c_bindings.F90
"m_iso_c_bindings.F90", line 37.47: 1516-050 (S) Expression or initial value must be evaluated at compile time.
"m_iso_c_bindings.F90", line 40.52: 1516-050 (S) Expression or initial value must be evaluated at compile time.
"m_iso_c_bindings.F90", line 41.52: 1516-050 (S) Expression or initial value must be evaluated at compile time.
"m_iso_c_bindings.F90", line 42.52: 1516-050 (S) Expression or initial value must be evaluated at compile time.
"m_iso_c_bindings.F90", line 43.52: 1516-050 (S) Expression or initial value must be evaluated at compile time.
"m_iso_c_bindings.F90", line 46.54: 1516-050 (S) Expression or initial value must be evaluated at compile time.
"m_iso_c_bindings.F90", line 47.54: 1516-050 (S) Expression or initial value must be evaluated at compile time.
"m_iso_c_bindings.F90", line 48.54: 1516-050 (S) Expression or initial value must be evaluated at compile time.
"m_iso_c_bindings.F90", 1516-036 (S) Entity sizeof_float has undefined type.
"m_iso_c_bindings.F90", 1516-036 (S) Entity sizeof_long_long has undefined type.
"m_iso_c_bindings.F90", 1516-036 (S) Entity sizeof_long_double has undefined type.
"m_iso_c_bindings.F90", 1516-036 (S) Entity sizeof_double has undefined type.
"m_iso_c_bindings.F90", 1516-036 (S) Entity sizeof_long has undefined type.
"m_iso_c_bindings.F90", 1516-036 (S) Entity sizeof_char has undefined type.
"m_iso_c_bindings.F90", 1516-036 (S) Entity sizeof_int has undefined type.
"m_iso_c_bindings.F90", 1516-036 (S) Entity sizeof_short has undefined type.
** m_iso_c_binding === End of Compilation 1 ===
1501-511 Compilation failed for file m_iso_c_bindings.F90.
make[1]: *** [m_iso_c_bindings.o] Error 1
make[1]: Leaving directory `/gpfs/gpfs0/home/pala2/software/abinit-6.12.3/src/01_interfaces_ext'
make: *** [all-recursive] Error 1

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

Re: Compiling 6.12.3 on BlueGene /L  [SOLVED]

Post by jbeuken » Sat Nov 17, 2012 8:01 pm

Hi,

we have two bots in our test farm :
    xlf 9.1 under Suse 9 / Power5 ( very old config :| )
    xlf 12.1 under AIX 6.1 / Power6
and 6.12.3 working

but you must use the "wrapper" to compile with xlf 9.x ( and perhaps xlf 10.1 )
( not need with xlf 12.1 )
you can see a "raw" config used to compile 6.12.3
in the config/specs/build-examples.conf file in the fock_sernoplug section
( sorry it's for a sequential binary )

to use with configure, this is a build.ac file :
enable_fc_wrapper="yes"

CC="xlc_r"
CFLAGS="-O2 -q64 -qspill=5000 -qarch=pwr5 -qtune=pwr5 -qcache=auto -qstrict -qnosave"
CXX="xlC_r"
FC="xlf90_r"
FCFLAGS="-qnosave -q64 -qpic=large -qmaxmem=-1 -O2 -qspill=5000 -qarch=auto -qtune=auto -qcache=auto -qstrict -qsuppress=1520-022:1520-031:1500-036 -g -qzerosize"

enable_mpi="no"
with_linalg_flavor="netlib"
with_linalg_libs="-L/usr/local/lib64 -llapack -lblas"
with_dft_flavor="none"
with_trio_flavor="none"


I hope it helps you

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

Locked