We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cppcheck does not build with Windows for me
This comes from investigating the issue reported in conan-io/conan#15039
Note that neither release nor debug build types seem to work
[settings] arch=armv8 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows
conan install --requires=cppcheck/2.14 -b=missing -r=conancenter
conan install --requires=cppcheck/2.14 -b=missing -r=conancenter ======== Input profiles ======== Profile host: [settings] arch=armv8 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows Profile build: [settings] arch=armv8 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows ======== Computing dependency graph ======== Graph root cli Requirements bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache cppcheck/2.14#79f1ba3ee1e49ae1c1767857ac29a708 - Cache pcre/8.45#64cdfd792761c32817cd31d7967c3709 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache Resolved version ranges zlib/[>=1.2.11 <2]: zlib/1.3.1 ======== Computing necessary packages ======== cppcheck/2.14: Compatible package ID 563ed7b1ce60070a18147b25b4065e757ca36e61 equal to the default package ID: Skipping it. Requirements bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:44c3558ce17b16c19d6f2822fae51dcc28bcbe0c#253b93665ec7ac313c86b64b6cb4eb11 - Cache cppcheck/2.14#79f1ba3ee1e49ae1c1767857ac29a708:563ed7b1ce60070a18147b25b4065e757ca36e61 - Build pcre/8.45#64cdfd792761c32817cd31d7967c3709:8b87e76fd126e1628f581abb2584fad13f51e382#2a03bbdd64936d67f1c55a060bed50eb - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:ea5dc84deb25b32a77ec23c39a1811e3f441ee54#1a7395640d8d00eaaf9e6b412c9decf2 - Cache ======== Installing packages ======== bzip2/1.0.8: Already installed! (1 of 4) zlib/1.3.1: Already installed! (2 of 4) pcre/8.45: Already installed! (3 of 4) -------- Installing package cppcheck/2.14 (4 of 4) -------- cppcheck/2.14: Building from source cppcheck/2.14: Package cppcheck/2.14:563ed7b1ce60070a18147b25b4065e757ca36e61 cppcheck/2.14: Copying sources to build folder cppcheck/2.14: Building your package in C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b cppcheck/2.14: Calling generate() cppcheck/2.14: Generators folder: C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build\generators cppcheck/2.14: CMakeToolchain generated: conan_toolchain.cmake cppcheck/2.14: CMakeToolchain generated: C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build\generators\CMakePresets.json cppcheck/2.14: CMakeToolchain generated: C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\src\CMakeUserPresets.json cppcheck/2.14: CMakeDeps necessary find_package() and targets for your CMakeLists.txt find_package(pcre) target_link_libraries(... pcre::pcre) cppcheck/2.14: Generating aggregated env files cppcheck/2.14: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat'] cppcheck/2.14: Calling build() cppcheck/2.14: apply_conandata_patches(): No patches defined in conandata cppcheck/2.14: Running CMake.configure() cppcheck/2.14: RUN: cmake -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/src" -- Using Conan toolchain: C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/build/generators/conan_toolchain.cmake -- Conan toolchain: CMAKE_GENERATOR_TOOLSET=v143 -- Conan toolchain: C++ Standard 14 with extensions OFF -- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631. -- The CXX compiler identification is MSVC 19.39.33521.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostarm64/arm64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Python: C:/Users/ruben/venv/Scripts/python.exe (found version "3.12.1") found components: Interpreter -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - not found -- Found Threads: TRUE -- ------------------ General configuration for Cppcheck 2.13.99 ----------------- -- -- CMake Version = 3.28.2 -- CMake Generator = Visual Studio 17 2022 -- -- Compiler = MSVC -- Compiler Version = 19.39.33521.0 -- Build type = Debug -- CMake C++ Standard = 11 -- CMAKE_INSTALL_PREFIX = C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/p -- CMAKE_DISABLE_PRECOMPILE_HEADERS = Off -- C++ flags (General) = /MP4 /DWIN32 /D_WINDOWS /W3 /GR /EHsc -- C++ flags (Release) = /O2 /Ob2 /DNDEBUG -- C++ flags (RelWithDebInfo) = /Zi /O2 /Ob1 /DNDEBUG -- C++ flags (Debug) = /Zi /Ob0 /Od /RTC1 -- CMAKE_EXE_LINKER_FLAGS = /machine:ARM64 /STACK:8000000 -- CPPCHK_GLIBCXX_DEBUG = ON -- COMPILE_DEFINITIONS (global) = $<$<CONFIG:Debug>:DEBUG>;WIN32;_CRT_SECURE_NO_WARNINGS;WIN32_LEAN_MEAN;_WIN64;HAVE_RULES;FILESDIR="bin" -- COMPILE_OPTIONS (global) = /W4;/Zi;/MP;$<$<NOT:$<CONFIG:Debug>>:/O2>;$<$<NOT:$<CONFIG:Debug>>:/Ob2>;$<$<NOT:$<CONFIG:Debug>>:/Oi>;$<$<NOT:$<CONFIG:Debug>>:/Ot>;$<$<NOT:$<CONFIG:Debug>>:/Oy>;$<$<CONFIG:Debug>:/Od>;$<$<NOT:$<CONFIG:Debug>>:/GF>;$<$<NOT:$<CONFIG:Debug>>:/MD>;$<$<NOT:$<CONFIG:Debug>>:/GS->;$<$<NOT:$<CONFIG:Debug>>:/Gy>;$<$<CONFIG:Debug>:/MDd>;$<$<CONFIG:Debug>:/GS>;/Zc:rvalueCast;/wd4018;/wd4127;/wd4146;/wd4244;/wd4251;/wd4267;/wd4389;/wd4482;/wd4512;/wd4701;/wd4706;/wd4800;/wd4805;/Zc:throwingNew;/Zc:__cplusplus -- -- Python_VERSION = 3.12.1 -- Python_EXECUTABLE = C:/Users/ruben/venv/Scripts/python.exe -- -- --------------------------------------------------------- -- ANALYZE_MEMORY = OFF -- ANALYZE_ADDRESS = OFF -- ANALYZE_THREAD = OFF -- ANALYZE_UNDEFINED = OFF -- ANALYZE_DATAFLOW = OFF -- -- WARNINGS_ARE_ERRORS = OFF -- EXTERNALS_AS_SYSTEM = OFF -- -- USE_MATCHCOMPILER = Auto -- USE_MATCHCOMPILER_OPT = Off -- -- DISABLE_CRTDBG_MAP_ALLOC = OFF -- NO_UNIX_SIGNAL_HANDLING = OFF -- NO_UNIX_BACKTRACE_SUPPORT = OFF -- NO_WINDOWS_SEH = OFF -- -- BUILD_SHARED_LIBS = OFF -- LIBXML2_XMLLINT_EXECUTABLE = LIBXML2_XMLLINT_EXECUTABLE-NOTFOUND -- BUILD_CORE_DLL = OFF -- BUILD_TESTS = OFF -- ENABLE_CHECK_INTERNAL = OFF -- DISABLE_DMAKE = ON -- BUILD_MANPAGE = OFF -- -- BUILD_GUI = OFF -- -- HAVE_RULES = True -- PCRE_LIBRARY = C:/Users/ruben/.conan2/p/b/pcrece3d5821e6c02/p/lib/pcre.lib -- -- DISALLOW_THREAD_EXECUTOR = OFF -- CMAKE_THREAD_LIBS_INIT = -- -- USE_BUNDLED_TINYXML2 = ON -- -- USE_BOOST = OFF -- USE_LIBCXX = OFF -- -- Using bundled version of tinyxml2 -- Cannot use non-Clang compiler with clang-tidy when precompiled headers are enabled - skipping 'run-clang-tidy' target generation -- Configuring done (8.0s) -- Generating done (0.1s) -- Build files have been written to: C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/build cppcheck/2.14: Running CMake.build() cppcheck/2.14: RUN: cmake --build "C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build" --config Release Versión de MSBuild 17.9.5+33de0b227 para .NET Framework 1>Checking Build System Building Custom Rule C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/src/cli/CMakeLists.txt cmake_pch.cxx cmdlineparser.cpp cppcheckexecutor.cpp cppcheckexecutorseh.cpp executor.cpp filelister.cpp processexecutor.cpp signalhandler.cpp C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\src\cli\cppcheckexecutorseh.cpp(89,42): error C2039: "Rip": no es un mi embro de "_CONTEXT" [C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build\cli\cli_objs.vcxproj] singleexecutor.cpp (compilando archivo de origen "../../src/cli/cppcheckexecutorseh.cpp") C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winnt.h(6549,54): vea la declaración de '_CONTEXT' C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\src\cli\cppcheckexecutorseh.cpp(91,42): error C2039: "Rsp": no es un mi embro de "_CONTEXT" [C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build\cli\cli_objs.vcxproj] stacktrace.cpp threadexecutor.cpp (compilando archivo de origen "../../src/cli/cppcheckexecutorseh.cpp") C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winnt.h(6549,54): vea la declaración de '_CONTEXT' C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\src\cli\cppcheckexecutorseh.cpp(93,42): error C2039: "Rsp": no es un mi embro de "_CONTEXT" [C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build\cli\cli_objs.vcxproj] (compilando archivo de origen "../../src/cli/cppcheckexecutorseh.cpp") C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winnt.h(6549,54): vea la declaración de '_CONTEXT' Copying addons files to C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/build/bin/Release Building Custom Rule C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/src/CMakeLists.txt Copying cfg files to C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/build/bin/Release Building Custom Rule C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/src/CMakeLists.txt Copying platforms files to C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/build/bin/Release Building Custom Rule C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/src/CMakeLists.txt Building Custom Rule C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/src/lib/CMakeLists.txt cmake_pch.cxx valueflow.cpp tokenize.cpp symboldatabase.cpp addoninfo.cpp analyzerinfo.cpp astutils.cpp check.cpp check64bit.cpp checkassert.cpp checkautovariables.cpp checkbool.cpp checkboost.cpp checkbufferoverrun.cpp checkclass.cpp checkcondition.cpp checkers.cpp checkersreport.cpp checkexceptionsafety.cpp checkfunctions.cpp checkinternal.cpp checkio.cpp checkleakautovar.cpp checkmemoryleak.cpp checknullpointer.cpp checkother.cpp checkpostfixoperator.cpp checksizeof.cpp checkstl.cpp checkstring.cpp checktype.cpp checkuninitvar.cpp checkunusedfunctions.cpp checkunusedvar.cpp checkvaarg.cpp clangimport.cpp color.cpp cppcheck.cpp ctu.cpp errorlogger.cpp errortypes.cpp forwardanalyzer.cpp fwdanalysis.cpp importproject.cpp infer.cpp keywords.cpp library.cpp mathlib.cpp path.cpp pathanalysis.cpp pathmatch.cpp platform.cpp preprocessor.cpp programmemory.cpp reverseanalyzer.cpp settings.cpp summaries.cpp suppressions.cpp templatesimplifier.cpp timer.cpp token.cpp tokenlist.cpp utils.cpp vfvalue.cpp cppcheck-core.vcxproj -> C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build\lib\cppcheck-core.dir\Release\cppcheck -core.lib Building Custom Rule C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/src/externals/simplecpp/CMakeLists.txt simplecpp.cpp simplecpp_objs.vcxproj -> C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build\externals\simplecpp\simplecpp_objs.di r\Release\simplecpp_objs.lib Building Custom Rule C:/Users/ruben/.conan2/p/b/cppch0526b452d35e8/b/src/externals/tinyxml2/CMakeLists.txt tinyxml2.cpp tinyxml2_objs.vcxproj -> C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build\externals\tinyxml2\tinyxml2_objs.dir\R elease\tinyxml2_objs.lib cppcheck/2.14: ERROR: Package '563ed7b1ce60070a18147b25b4065e757ca36e61' build failed cppcheck/2.14: WARN: Build folder C:\Users\ruben\.conan2\p\b\cppch0526b452d35e8\b\build ERROR: cppcheck/2.14: Error in build() method, line 52 cmake.build() ConanException: Error 1 while executing
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Cppcheck does not build with Windows for me
This comes from investigating the issue reported in conan-io/conan#15039
Note that neither release nor debug build types seem to work
Package and Environment Details
Conan profile
Steps to reproduce
conan install --requires=cppcheck/2.14 -b=missing -r=conancenter
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: