From 111e690d16698d6f6e941dfe07a08fad3e208762 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 6 Aug 2025 14:09:57 +0200 Subject: [PATCH 1/3] Hopefully, this'll resolve the issue where people force their own version of MSVCP140.dll instead of ours. See https://github.com/actions/runner-images/issues/10004#issuecomment-2153445161 -- and that thread in general. Which is the same as an issue we _originally_ tried to work around by going with an older MSVC (which is what Lulzbot ended up going with) and when that turned out to not work, we just upgraded the entire chain to the new version. -- _However_ it now apprears that an antivirus vendor (McAfee) is forcing their own version of those DLL's, which are the older ones. -- So now try this workaround. CURA-12675 --- conanfile.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conanfile.py b/conanfile.py index 8067e6b..ab6020f 100644 --- a/conanfile.py +++ b/conanfile.py @@ -119,6 +119,9 @@ def build_requirements(self): def generate(self): tc = CMakeToolchain(self) + + tc.preprocessor_definitions["_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR"] = 1 + if is_msvc(self): tc.variables["USE_MSVC_RUNTIME_LIBRARY_DLL"] = not is_msvc_static_runtime(self) tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0077"] = "NEW" @@ -133,6 +136,9 @@ def generate(self): def build(self): cmake = CMake(self) + + cmake.definitions["_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR"] = 1 + cmake.configure() cmake.build() From 9c5e11ab530acb03f3d94395bf8ad988b2070f31 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 6 Aug 2025 14:52:03 +0200 Subject: [PATCH 2/3] Alter outdated(?) way of doing things. If this ends up not working either, we should propbably rely on the (same) alteration in the generate step instead. CURA-12675 --- conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index ab6020f..33ba4e9 100644 --- a/conanfile.py +++ b/conanfile.py @@ -137,7 +137,7 @@ def generate(self): def build(self): cmake = CMake(self) - cmake.definitions["_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR"] = 1 + cmake.compiler_definitions["_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR"] = 1 cmake.configure() cmake.build() From 12272062066286afcb3f0a94177b7dd1b5517c07 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 6 Aug 2025 15:25:23 +0200 Subject: [PATCH 3/3] Remove this one added 'just to be sure' that is now blocking the build. CURA-12675 --- conanfile.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/conanfile.py b/conanfile.py index 33ba4e9..ff84864 100644 --- a/conanfile.py +++ b/conanfile.py @@ -136,9 +136,6 @@ def generate(self): def build(self): cmake = CMake(self) - - cmake.compiler_definitions["_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR"] = 1 - cmake.configure() cmake.build()