Bug #2056

AMPI ROMIO fails to build when MPI_LIB is set

Added by Sam White 4 months ago. Updated 3 months ago.

Target version:
Start date:
Due date:
% Done:



After an AMPI user updated from an older version of AMPI they are now getting this error:

./build AMPI mpi-linux-x86_64 --destination=/home/charm-prod gcc

Building ROMIO
cd romio && \
        CFLAGS="" \
        FFLAGS="" \
        F77=/home/charm-prod/bin/ampif90 \
        CC=/home/charm-prod/bin/ampicc \
        ./configure \
        --disable-aio \
        --enable-f77=`test -f /home/charm-prod/lib/libmoduleampif.a && echo yes || echo no` \
Configuring with args --disable-aio --enable-f77=yes --srcdir=/home/charm-prod/tmp/libs/ck-libs/ampi/romio
checking whether clock skew breaks make... no
checking whether make supports include... no
checking whether make allows comments in actions... no
configure: WARNING: Your make does not allow comments in target code.
Using this make may cause problems when building programs.
You should consider using gnumake instead.
checking for virtual path format... VPATH
checking whether make sets CFLAGS... yes
checking for architecture... LINUX
configure: WARNING: Unknown architecture ... proceeding anyway
ROMIO home directory is /home/charm-prod/tmp/libs/ck-libs/ampi/romio
configure: error: MPI library /opt/tools/openmpi-3.1.2-gcc-7.2.0/lib not found
gmake[2]: *** [/home/charm-prod/lib/libampiromio.a] Error 1
gmake[2]: Leaving directory `/home/charm-prod/tmp/libs/ck-libs/ampi'
gmake[1]: *** [ampi] Error 2
gmake[1]: Leaving directory `/home/charm-prod/tmp/libs/ck-libs'
gmake: *** [AMPI] Error 2

The error that /opt/tools/openmpi-3.1.2-gcc-7.2.0/lib is weird because that does exist.


#1 Updated by Sam White 4 months ago

  • Description updated (diff)

#2 Updated by Matthias Diener 4 months ago

Does the user have an "MPI_LIB" environment variable set when building AMPI? This variable should be unset before building.

#3 Updated by Evan Ramos 4 months ago

We've let the user know about MPI_LIB and are awaiting feedback.

#4 Updated by Eric Bohm 4 months ago

  • Assignee set to Matthias Diener

#5 Updated by Matthias Diener 3 months ago

Has there been any feedback from the user?

#6 Updated by Evan Ramos 3 months ago

  • Subject changed from AMPI ROMIO build error to AMPI ROMIO fails to build when MPI_LIB is set
  • Tracker changed from Bug to Documentation
  • Target version changed from 6.9.1 to 6.10.0

The user decided to build with --without-romio so we don't know if MPI_LIB ended up being the problem. We should still document this.

#7 Updated by Matthias Diener 3 months ago implements a simple fix that unsets MPI_LIB before configuring ROMIO.

#8 Updated by Evan Ramos 3 months ago

  • Status changed from New to Implemented
  • Tracker changed from Documentation to Bug

#9 Updated by Matthias Diener 3 months ago

  • Status changed from Implemented to Merged

Also available in: Atom PDF