Skip to content
New issue

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

[benchmark] Build error on x64-mingw-dynamic #43609

Open
wodrichw opened this issue Feb 3, 2025 · 1 comment
Open

[benchmark] Build error on x64-mingw-dynamic #43609

wodrichw opened this issue Feb 3, 2025 · 1 comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@wodrichw
Copy link

wodrichw commented Feb 3, 2025

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.

@Neumann-A
Copy link
Contributor

-Werror you can try and add set(VCPKG_CXX_FLAGS "-Wno-error") (same for VCPKG_C_FLAGS) in the triplet/toolchain and/or portfile

@jimwang118 jimwang118 added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Feb 5, 2025
@jimwang118 jimwang118 removed their assignment Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
Development

No branches or pull requests

3 participants