ornladios / ADIOS

The old ADIOS 1.x code repository. Look for ADIOS2 for new repo
https://csmd.ornl.gov/adios
Other
54 stars 40 forks source link

runconfig fail on theta@alcf #196

Open khou2020 opened 5 years ago

khou2020 commented 5 years ago

HI:

I tried to build adios on theta@alcf. It reported the following error when I run the runconfig script. Is there any workaround? Thanks.

configure: === checking for CRAY PMI === checking for Cray's pmi.h... no configure: error: in /home/khou/adios-1.13.1': configure: error: --with-cray-pmi was given, but test for /opt/cray/pmi/default/include/pmi.h failed Seeconfig.log' for more details

pnorbert commented 5 years ago

I am away so I cannot try it what went wrong. Can you edit the runconf script for the theta section and remove the pmi options?

File IO does not require the networking library.

On Mon, Apr 8, 2019 at 4:22 PM Kaiyuan Hou notifications@github.com wrote:

HI:

I tried to build adios on theta@alcf. It reported the following error when I run the runconfig script. Is there any workaround? Thanks.

configure: === checking for CRAY PMI === checking for Cray's pmi.h... no configure: error: in /home/khou/adios-1.13.1': configure: error: --with-cray-pmi was given, but test for /opt/cray/pmi/default/include/pmi.h failed See config.log' for more details

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ornladios/ADIOS/issues/196, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGMLX4pElWso1DP1w1PGbYEKA7rQNBJks5veu5DgaJpZM4checY .

khou2020 commented 5 years ago

Hi:

It does not solve the problem. I tried to remove --with-cray-ugni as well, the result is the same. It seems the script don’t know theta is a cross compiling environment and tried to run the conftest program on login node.

./configure --prefix=/home/khou/.local/adios_cray --disable-maintainer-mode --enable-dependency-tracking --with-cray-ugni-incdir=/opt/cray/gni-headers/default/include --with-cray-ugni-libdir=/opt/cray/ugn i/default/lib64 --without-infiniband --without-hdf5 --without-netcdf checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in /home/khou/adios-1.13.1': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'. See `config.log' for more details

./configure --prefix=/home/khou/.local/adios_cray --disable-maintainer-mode --enable-dependency-tracking --without-infiniband --without-hdf5 --without-netcdf checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in /home/khou/adios-1.13.1': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'. See `config.log' for more details


From: pnorbert notifications@github.com Sent: Monday, April 8, 2019 5:05:56 AM To: ornladios/ADIOS Cc: Kaiyuan Hou; Author Subject: Re: [ornladios/ADIOS] runconfig fail on theta@alcf (#196)

I am away so I cannot try it what went wrong. Can you edit the runconf script for the theta section and remove the pmi options?

File IO does not require the networking library.

On Mon, Apr 8, 2019 at 4:22 PM Kaiyuan Hou notifications@github.com wrote:

HI:

I tried to build adios on theta@alcf. It reported the following error when I run the runconfig script. Is there any workaround? Thanks.

configure: === checking for CRAY PMI === checking for Cray's pmi.h... no configure: error: in /home/khou/adios-1.13.1': configure: error: --with-cray-pmi was given, but test for /opt/cray/pmi/default/include/pmi.h failed See config.log' for more details

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ornladios/ADIOS/issues/196, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGMLX4pElWso1DP1w1PGbYEKA7rQNBJks5veu5DgaJpZM4checY .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ornladios/ADIOS/issues/196#issuecomment-480769079, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYvRYqndAoguqsjyXP-hdgxPCBE7PYpbks5vexSEgaJpZM4checY.

jychoi-hpc commented 5 years ago

I was able to compile with the following command (with GNU):

    PREFIX=/dir/to/install
    ./configure --prefix=$PREFIX \
        --enable-dependency-tracking \
        --disable-maintainer-mode \
        --disable-timers \
        --disable-timer-events \
        --without-infiniband \
        --with-lustre \
        --with-dataspaces=$BASEDIR/dataspaces/devel/$TARGET \
        --with-flexpath=$BASEDIR/evpath/$TARGET \
        CC=gcc CXX=g++ FC=gfortran \
        MPICC=cc MPICXX=CC MPIFC=ftn \
        CFLAGS='-g -O2 -fPIC' \
        LIBS="-lrt -lm"