From 8a733443521fe0a4118d90681f84bafc190718e0 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 12 May 2024 14:36:51 +0200 Subject: [PATCH] setup.py: detect noexec build fs issue, see #8208 That "failed to map segment from shared object" error msg is not very helpful. Add a hint that the filesystem needs to be +exec (== not noexec mounted, like it might be the case for /tmp on some systems). --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 93a0aae77..b725e9fc7 100644 --- a/setup.py +++ b/setup.py @@ -21,6 +21,8 @@ except ImportError as exc: # either there is no Cython installed or there is some issue with it. cythonize = None cythonize_import_error_msg = "ImportError: " + str(exc) + if "failed to map segment from shared object" in cythonize_import_error_msg: + cythonize_import_error_msg += " Check if the borg build uses a +exec filesystem." sys.path += [os.path.dirname(__file__)]