From 8dcd8daab1d3581f0f5afc717bf12be24ee3f9c5 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 3e1b51e00..1096d1ada 100644 --- a/setup.py +++ b/setup.py @@ -21,6 +21,8 @@ # 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__)]