Page 1 of 1
Compilation on IBM AIX Power6 (@Garching)
Posted: Tue Oct 05, 2010 4:26 pm
by bob
Hi people,
did any one of you manage to successfully compile abinit on a IBM AIX 6.1 system using IBMs xlf compiler?
Cheers,
Bjoern
Re: Compilation on IBM AIX Power6 (@Garching)
Posted: Tue Oct 05, 2010 7:03 pm
by jbeuken
Hi,
yes... (working with abinit 6.2.3 and soon with 6.4.1 )
on a Power6 ( OpenPower 510 AIX 6.1 ) with these options for configure :
Code: Select all
CPP="/usr/lpp/xlf/bin/cpp"
CC="/usr/lpp/ppe.poe/bin/mpcc_r"
CFLAGS="-qlanglvl=stdc99 -O3 -q64 -qspill=2000 -qarch=pwr6 -qtune=auto -qcache=auto -qstrict -qsuppress=1520-031:1520-003"
CXX="/usr/lpp/ppe.poe/bin/mpCC_r"
FC="/usr/lpp/ppe.poe/bin/mpxlf90_r"
FCFLAGS="-O3 -q64 -lxlopt -bmaxdata:2000000000 -qarch=pwr6 -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto"
enable_fc_wrapper="no"
fcflags_opt_63_bader="-O3 -q64 -bmaxdata:2000000000 -qarch=pwr6 -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto"
AR="ar"
ARFLAGS_EXTRA="-X64"
enable_mpi="yes"
enable_mpi_io="no"
enable_64bit_flags="yes"
enable_optim="yes"
MPI_RUNNER="/usr/lpp/ppe.poe/bin/poe"
enable_linalg="no"
with_netcdf_includes="-I/usr/local/netcdf/include"
with_netcdf_libs="-L/usr/local/netcdf/lib -lnetcdf"
enable_gw_dpc="yes"
enable_all_plugins="yes"
enable_maintainer_checks="no"
enable_test_timeout="yes"
with_fc_vendor="ibm"
with_fc_version="12.1"
regards
jmb
Re: Compilation on IBM AIX Power6 (@Garching)
Posted: Wed Oct 06, 2010 8:49 am
by bob
Thanks for your reply. Unfortunately, configure stops with
Code: Select all
==============================================================================
=== C support ===
==============================================================================
checking for gcc... /usr/lpp/ppe.poe/bin/mpcc_r
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in `/u/bob/abinit-6.2.3':
configure: error: cannot run C compiled programs.
Any idea what I am doing wrong?
Bjoern
Re: Compilation on IBM AIX Power6 (@Garching)
Posted: Wed Oct 06, 2010 2:02 pm
by pouillon
Look for the last "failed" in config.log and check what configure is complaining about.
If it is a question of missing libraries, adjust your LD_LIBRARY_PATH to include /usr/lpp/lpp.poe/lib or similar. Supposing you use bash:
Code: Select all
export LD_LIBRARY_PATH="/usr/lpp/lpp.poe/lib:$LD_LIBRARY_PATH"
Re: Compilation on IBM AIX Power6 (@Garching)
Posted: Fri Oct 08, 2010 10:51 am
by bob
OK, that error was down to a missing hostfile for the poe environment...
Now, configure runs but after building LAPACK, make stops with
Code: Select all
LAPACK for ABINIT has been built.
LAPACK for ABINIT has been built.
touch build-stamp
lapack-abinit_6.0 has been built.
config/gnu/install-sh -c -d -m 755 tmp/lib
/usr/bin/sh: config/gnu/install-sh: not found.
The weird thing is: when I run config/gnu/install-sh -c -d -m 755 tmp/lib from the command line, it work, just not during make... any ideas?
Re: Compilation on IBM AIX Power6 (@Garching)
Posted: Fri Oct 08, 2010 8:10 pm
by jbeuken
Hello,
it's a "classic" problem...
This is a problem related to the mkdir command, which behaves non-standardly on your system aka not GNU.
before running configure, you may try with:
export MKDIR_P="mkdir -p"
jmb
Re: Compilation on IBM AIX Power6 (@Garching)
Posted: Sun Oct 10, 2010 3:11 pm
by pouillon
This problem should now be fixed in 6.4.1.