Compilation on IBM AIX Power6 (@Garching)

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
bob
Posts: 5
Joined: Tue Oct 05, 2010 3:53 pm

Compilation on IBM AIX Power6 (@Garching)

Post by bob » Tue Oct 05, 2010 4:26 pm

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

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

Re: Compilation on IBM AIX Power6 (@Garching)

Post by jbeuken » Tue Oct 05, 2010 7:03 pm

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
------
Jean-Michel Beuken
Computer Scientist

bob
Posts: 5
Joined: Tue Oct 05, 2010 3:53 pm

Re: Compilation on IBM AIX Power6 (@Garching)

Post by bob » Wed Oct 06, 2010 8:49 am

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

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

Re: Compilation on IBM AIX Power6 (@Garching)

Post by pouillon » Wed Oct 06, 2010 2:02 pm

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"
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

bob
Posts: 5
Joined: Tue Oct 05, 2010 3:53 pm

Re: Compilation on IBM AIX Power6 (@Garching)

Post by bob » Fri Oct 08, 2010 10:51 am

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?

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

Re: Compilation on IBM AIX Power6 (@Garching)

Post by jbeuken » Fri Oct 08, 2010 8:10 pm

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
------
Jean-Michel Beuken
Computer Scientist

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

Re: Compilation on IBM AIX Power6 (@Garching)

Post by pouillon » Sun Oct 10, 2010 3:11 pm

This problem should now be fixed in 6.4.1.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

Locked