From a6bedd7b85bf5cecc1a0217f7034eb934582c214 Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Mon, 23 Nov 2026 19:57:39 +0100 Subject: [PATCH 1/2] bisect: add another patch (old versions not building with newer compilers) --- tools/bisect/bisect_common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/bisect/bisect_common.py b/tools/bisect/bisect_common.py index 10494d36512..dd30f62ccb8 100644 --- a/tools/bisect/bisect_common.py +++ b/tools/bisect/bisect_common.py @@ -28,6 +28,11 @@ def build_cppcheck(bisect_path): print('patching cli/cppcheckexecutor.cpp') subprocess.check_call(['sed', '-i', 's/SIGSTKSZ/32768/g', os.path.join(bisect_repo_dir, 'cli', 'cppcheckexecutor.cpp')]) + pmPath = os.path.join(bisect_repo_dir, 'lib', 'programmemory.cpp') + if os.path.isfile(pmPath): + print('patching lib/programmmemory.cpp') + subprocess.check_call(['sed', '-i', '1s/^/#include /', pmPath]) + # TODO: older versions do not build because of include changes in libstdc++ - check compiler version and try to use an earlier one # TODO: make jobs configurable # TODO: use "make install"? From 73e17881506e9b9f2ebaed3c9034ec7f27a326b7 Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Tue, 24 Nov 2026 08:56:43 +0100 Subject: [PATCH 2/2] Fix --- tools/bisect/bisect_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bisect/bisect_common.py b/tools/bisect/bisect_common.py index dd30f62ccb8..05bcc9aa9ec 100644 --- a/tools/bisect/bisect_common.py +++ b/tools/bisect/bisect_common.py @@ -30,8 +30,8 @@ def build_cppcheck(bisect_path): pmPath = os.path.join(bisect_repo_dir, 'lib', 'programmemory.cpp') if os.path.isfile(pmPath): - print('patching lib/programmmemory.cpp') - subprocess.check_call(['sed', '-i', '1s/^/#include /', pmPath]) + print('patching lib/programmemory.cpp') + subprocess.check_call(['sed', '-i', '1i #include ', pmPath]) # TODO: older versions do not build because of include changes in libstdc++ - check compiler version and try to use an earlier one # TODO: make jobs configurable