Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
10 Views

Linking with mpiicc (impi 5.0.1)

Hello,
I have been trying to configure (and compile) the PETSc library with impi 5.0.1 (and ifort Version 15.0.0.090 Build 20140723) using mpiicc script for C compilation. However, the configure process fails with the error "...compiler mpiicc is broken! It is returning a zero error when the linking failed..."

I think that there might be an issue with the following code snippet located at the end of the mpiicc script:

if [ "$linking" = yes ] ; then
    $Show $CC $CFLAGS "${allargs[@]}" -I$includedir -L${libdir}${MPILIBDIR} -L$libdir $rpath_opt $mpilibs $I_MPI_OTHERLIBS $LDFLAGS $MPI_OTHERLIBS
    if [ "x$strip_debug_info" = "xyes" ] ; then
    $Show objcopy --only-keep-debug ${executable} ${executable}.dbg
    $Show objcopy --strip-debug ${executable}
    $Show objcopy --add-gnu-debuglink=${executable}.dbg ${executable}
    fi
    rc=$?
else
    $Show $CC $CFLAGS "${allargs[@]}" -I$includedir
    rc=$?
fi

exit $rc

There, the return code in the "linking regime" (first branch) seems to be always zero even if the linking fails, e.g., because of a missing library.

0 Kudos
1 Reply
Highlighted
Moderator
10 Views

This has been corrected in Version 5.0 Update 2.

0 Kudos