From e8a7500b69476b76f596e2a52209fd1abdd1969d Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 21 Apr 2017 00:34:58 +0200 Subject: [PATCH] more informative msg when the dlopen of mmap priv fails as it appears to be the case on freebsd --- src/smpi/smpi_global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index 9b6cb53df9..ff7c129f1b 100644 --- a/src/smpi/smpi_global.cpp +++ b/src/smpi/smpi_global.cpp @@ -617,7 +617,7 @@ int smpi_main(const char* executable, int argc, char *argv[]) // Load the dynamic library and resolve the entry point: void* handle = dlopen(executable, RTLD_LAZY | RTLD_LOCAL | RTLD_DEEPBIND); if (handle == nullptr) - xbt_die("dlopen failed for %s", executable); + xbt_die("dlopen failed for %s: %s (errno: %d -- %s)", executable, dlerror(), errno, strerror(errno)); smpi_entry_point_type entry_point = smpi_resolve_function(handle); if (!entry_point) xbt_die("main not found in %s", executable); -- 2.20.1