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
Hi I am running cmake and vcpkg with the x64-mingw-dynamic triplet set and I'm running into the following error:
[18/23] C:\msys64\ucrt64\bin\x86_64-w64-mingw32-g++.exe -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/include -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src -Wall -Wextra -Wshadow -Wfloat-equal -Wold-style-cast -Werror -Wsuggest-override -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wno-deprecated -Wstrict-aliasing -g -std=c++11 -fvisibility=hidden -fno-keep-inline-dllexport -MD -MT src/CMakeFiles/benchmark.dir/sysinfo.cc.obj -MF src\CMakeFiles\benchmark.dir\sysinfo.cc.obj.d -o src/CMakeFiles/benchmark.dir/sysinfo.cc.obj -c C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/sysinfo.cc FAILED: src/CMakeFiles/benchmark.dir/sysinfo.cc.obj C:\msys64\ucrt64\bin\x86_64-w64-mingw32-g++.exe -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/include -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src -Wall -Wextra -Wshadow -Wfloat-equal -Wold-style-cast -Werror -Wsuggest-override -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wno-deprecated -Wstrict-aliasing -g -std=c++11 -fvisibility=hidden -fno-keep-inline-dllexport -MD -MT src/CMakeFiles/benchmark.dir/sysinfo.cc.obj -MF src\CMakeFiles\benchmark.dir\sysinfo.cc.obj.d -o src/CMakeFiles/benchmark.dir/sysinfo.cc.obj -c C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/sysinfo.cc C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/sysinfo.cc: In function 'std::vectorbenchmark::CPUInfo::CacheInfo benchmark::{anonymous}::GetCacheSizesWindows()': C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/sysinfo.cc:351:12: error: enumeration value 'CacheUnknown' not handled in switch [-Werror=switch] 351 | switch (cache.Type) { | ^ cc1plus.exe: all warnings being treated as errors [19/23] C:\msys64\ucrt64\bin\x86_64-w64-mingw32-g++.exe -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/include -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src -Wall -Wextra -Wshadow -Wfloat-equal -Wold-style-cast -Werror -Wsuggest-override -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wno-deprecated -Wstrict-aliasing -g -std=c++11 -fvisibility=hidden -fno-keep-inline-dllexport -MD -MT src/CMakeFiles/benchmark.dir/timers.cc.obj -MF src\CMakeFiles\benchmark.dir\timers.cc.obj.d -o src/CMakeFiles/benchmark.dir/timers.cc.obj -c C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/timers.cc [20/23] C:\msys64\ucrt64\bin\x86_64-w64-mingw32-g++.exe -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/include -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src -Wall -Wextra -Wshadow -Wfloat-equal -Wold-style-cast -Werror -Wsuggest-override -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wno-deprecated -Wstrict-aliasing -g -std=c++11 -fvisibility=hidden -fno-keep-inline-dllexport -MD -MT src/CMakeFiles/benchmark.dir/benchmark_register.cc.obj -MF src\CMakeFiles\benchmark.dir\benchmark_register.cc.obj.d -o src/CMakeFiles/benchmark.dir/benchmark_register.cc.obj -c C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/benchmark_register.cc ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered:
-Werror you can try and add set(VCPKG_CXX_FLAGS "-Wno-error") (same for VCPKG_C_FLAGS) in the triplet/toolchain and/or portfile
-Werror
set(VCPKG_CXX_FLAGS "-Wno-error")
Sorry, something went wrong.
No branches or pull requests
Hi I am running cmake and vcpkg with the x64-mingw-dynamic triplet set and I'm running into the following error:
[18/23] C:\msys64\ucrt64\bin\x86_64-w64-mingw32-g++.exe -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/include -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src -Wall -Wextra -Wshadow -Wfloat-equal -Wold-style-cast -Werror -Wsuggest-override -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wno-deprecated -Wstrict-aliasing -g -std=c++11 -fvisibility=hidden -fno-keep-inline-dllexport -MD -MT src/CMakeFiles/benchmark.dir/sysinfo.cc.obj -MF src\CMakeFiles\benchmark.dir\sysinfo.cc.obj.d -o src/CMakeFiles/benchmark.dir/sysinfo.cc.obj -c C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/sysinfo.cc
FAILED: src/CMakeFiles/benchmark.dir/sysinfo.cc.obj
C:\msys64\ucrt64\bin\x86_64-w64-mingw32-g++.exe -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/include -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src -Wall -Wextra -Wshadow -Wfloat-equal -Wold-style-cast -Werror -Wsuggest-override -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wno-deprecated -Wstrict-aliasing -g -std=c++11 -fvisibility=hidden -fno-keep-inline-dllexport -MD -MT src/CMakeFiles/benchmark.dir/sysinfo.cc.obj -MF src\CMakeFiles\benchmark.dir\sysinfo.cc.obj.d -o src/CMakeFiles/benchmark.dir/sysinfo.cc.obj -c C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/sysinfo.cc
C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/sysinfo.cc: In function 'std::vectorbenchmark::CPUInfo::CacheInfo benchmark::{anonymous}::GetCacheSizesWindows()':
C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/sysinfo.cc:351:12: error: enumeration value 'CacheUnknown' not handled in switch [-Werror=switch]
351 | switch (cache.Type) {
| ^
cc1plus.exe: all warnings being treated as errors
[19/23] C:\msys64\ucrt64\bin\x86_64-w64-mingw32-g++.exe -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/include -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src -Wall -Wextra -Wshadow -Wfloat-equal -Wold-style-cast -Werror -Wsuggest-override -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wno-deprecated -Wstrict-aliasing -g -std=c++11 -fvisibility=hidden -fno-keep-inline-dllexport -MD -MT src/CMakeFiles/benchmark.dir/timers.cc.obj -MF src\CMakeFiles\benchmark.dir\timers.cc.obj.d -o src/CMakeFiles/benchmark.dir/timers.cc.obj -c C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/timers.cc
[20/23] C:\msys64\ucrt64\bin\x86_64-w64-mingw32-g++.exe -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/include -IC:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src -Wall -Wextra -Wshadow -Wfloat-equal -Wold-style-cast -Werror -Wsuggest-override -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wno-deprecated -Wstrict-aliasing -g -std=c++11 -fvisibility=hidden -fno-keep-inline-dllexport -MD -MT src/CMakeFiles/benchmark.dir/benchmark_register.cc.obj -MF src\CMakeFiles\benchmark.dir\benchmark_register.cc.obj.d -o src/CMakeFiles/benchmark.dir/benchmark_register.cc.obj -c C:/Users/wwodr/projects/ants/lib/vcpkg/buildtrees/benchmark/src/v1.8.3-945a92c78f.clean/src/benchmark_register.cc
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered: