From: Martin Quinson Date: Tue, 12 Jan 2021 10:53:13 +0000 (+0100) Subject: More informative error message when running code compiled with mpicc X-Git-Tag: v3.27~574^2^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/cb35c761d2d6ae9cf1208694ce0e1ffc9ea321ba?ds=sidebyside More informative error message when running code compiled with mpicc --- diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index 34f2b68270..749fd2f046 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -497,8 +497,10 @@ static void smpi_init_privatization_dlopen(const std::string& executable) for (const std::string& target_lib : target_libs) unlink(target_lib.c_str()); } - xbt_assert(handle != nullptr, "dlopen failed: %s (errno: %d -- %s)", dlerror(), saved_errno, - strerror(saved_errno)); + xbt_assert(handle != nullptr, + "dlopen failed: %s (errno: %d -- %s).\nError: Did you compile the program with a SMPI-specific " + "compiler (spmicc or friends)?", + dlerror(), saved_errno, strerror(saved_errno)); smpi_entry_point_type entry_point = smpi_resolve_function(handle); xbt_assert(entry_point, "Could not resolve entry point");