Closed pkubaj closed 1 year ago
Can you please re-run it with the following patch:
diff --git a/cvise/passes/ifs.py b/cvise/passes/ifs.py
index 99edb77..bb155b8 100644
--- a/cvise/passes/ifs.py
+++ b/cvise/passes/ifs.py
@@ -75,6 +75,9 @@ class IfPass(AbstractPass):
cmd = [self.external_programs['unifdef'], '-B', '-x', '2', '-k', '-o', test_case, tmp_file.name]
stdout, stderr, returncode = process_event_notifier.run_process(cmd)
if returncode != 0:
+ print(stdout)
+ print(stderr)
+ print(returncode)
return (PassResult.ERROR, state)
else:
return (PassResult.OK, state)
Note I have no experience running C-Vise on BSD and a PowerPC system.
And can you please try using a newer release?
2.7.0 fails to build with:
error: unknown warning option '-Werror=maybe-uninitialized'; did you mean '-Werror=uninitialized'? [-Werror,-Wunknown-warning-option]
ninja: build stopped: subcommand failed.
Using -Wno-error=uninitialized
works fine. The compiler is LLVM 15.0.7.
After that, build fails with:
/usr/ports/devel/cvise/work/cvise-2.7.0/clang_delta/RenameParam.cpp:257:7: error: variable 'MaxIteration' set but not used [-Werror,-Wunused-but-set-variable]
int MaxIteration = 0;
^
1 error generated.
Ok, so let's disable -Werror
:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cd18631..c28fa1c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -151,8 +151,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# XXX figure out how to get "-std=c++17 -fno-rtti" from LLVM. That's how we
# get those options in the Automake path...
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -Wno-error=maybe-uninitialized")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -fno-rtti -fno-strict-aliasing -Wall -Wextra -Wno-unused-parameter -Werror -Wno-error=maybe-uninitialized")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-error=maybe-uninitialized")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -fno-rtti -fno-strict-aliasing -Wall -Wextra -Wno-unused-parameter -Wno-error=maybe-uninitialized")
if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden")
endif()
Can you please report what you get with the debug patch?
@pkubaj: Please re-open if you have more info.
cvise_bug_1.tar.gz