-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Failed to build #1797
Comments
Also I have to ./src/CMakeFiles/benchmark.dir/flags.make -Wshadow to -Wno-shadow. Otherwise I'll get Consolidate compiler generated dependencies of target benchmark |
Which compiler is that? I suspect our compiler requirements are stricter than the lax wishlist suggests. |
I did these: [mcheng@sg1-ldev-pioneer benchmark]$ which g++ [mcheng@sg1-ldev-pioneer benchmark]$ setenv CXX /usr/lib64/ccache/g++ [mcheng@sg1-ldev-pioneer benchmark]$ cmake320 -DCMAKE_BUILD_TYPE=Release -S . -B "build" -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -- Configuring done |
[mcheng@sg1-ldev-pioneer benchmark]$ cmake320 --build "build" --config Release -v [mcheng@sg1-ldev-pioneer benchmark]$ /usr/lib64/ccache/c++ --version |
Yeah that's quite ancient. It's unfortunate that we claim to support such old versions |
[mcheng@sg1-ldev-pioneer benchmark]$ setenv CXX /opt/rh/devtoolset-10/root/bin/c++ |
thanks. newer compiler solved the issue. |
we don't. https://google.github.io/benchmark/dependencies.html -> https://opensource.google/documentation/policies/cplusplus-support#build_systems which says "we will drop support for our oldest supported C++ standard ... When 10 years pass since the standard's release date". ie, as of 2024 we no longer support C++11 or older. C++14 was not supported in gcc 4.8.5 as far as i'm aware. |
|
… On Fri, 7 Jun 2024 at 13:24, Roman Lebedev ***@***.***> wrote:
https://github.com/google/benchmark/blob/83939d0bd447eaf958f2dc26aad8d08899d9dd0d/README.md#requirements
says:
The following minimum versions are required to build the library:
- GCC 4.8
—
Reply to this email directly, view it on GitHub
<#1797 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD4QMVZGFF36TXXFB54BUDZGGRBFAVCNFSM6AAAAABI4GFUNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJUG4ZDSMZZGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Describe the bug
I download the git and tried to build. But failed with "cmake --build "build" --config Release"
System
3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
To reproduce
Steps to reproduce the behavior:
just follow the build steps. My cmake is 3.20.
Expected behavior
/benchmark
/build
/src
/libbenchmark.a
/libbenchmark_main.a
to have 2 lib files.
Screenshots
/usr/local/cmake3.20/bin/cmake --build "build" --config Release
Consolidate compiler generated dependencies of target benchmark
[ 1%] Building CXX object src/CMakeFiles/benchmark.dir/benchmark.cc.o
[ 2%] Building CXX object src/CMakeFiles/benchmark.dir/benchmark_api_internal.cc.o
[ 3%] Building CXX object src/CMakeFiles/benchmark.dir/benchmark_name.cc.o
[ 4%] Building CXX object src/CMakeFiles/benchmark.dir/benchmark_register.cc.o
[ 5%] Building CXX object src/CMakeFiles/benchmark.dir/benchmark_runner.cc.o
[ 5%] Building CXX object src/CMakeFiles/benchmark.dir/check.cc.o
[ 6%] Building CXX object src/CMakeFiles/benchmark.dir/colorprint.cc.o
[ 7%] Building CXX object src/CMakeFiles/benchmark.dir/commandlineflags.cc.o
[ 8%] Building CXX object src/CMakeFiles/benchmark.dir/complexity.cc.o
[ 9%] Building CXX object src/CMakeFiles/benchmark.dir/console_reporter.cc.o
[ 10%] Building CXX object src/CMakeFiles/benchmark.dir/counter.cc.o
[ 11%] Building CXX object src/CMakeFiles/benchmark.dir/csv_reporter.cc.o
[ 12%] Building CXX object src/CMakeFiles/benchmark.dir/json_reporter.cc.o
[ 13%] Building CXX object src/CMakeFiles/benchmark.dir/perf_counters.cc.o
[ 13%] Building CXX object src/CMakeFiles/benchmark.dir/reporter.cc.o
[ 14%] Building CXX object src/CMakeFiles/benchmark.dir/statistics.cc.o
[ 15%] Building CXX object src/CMakeFiles/benchmark.dir/string_util.cc.o
[ 16%] Building CXX object src/CMakeFiles/benchmark.dir/sysinfo.cc.o
/fs02/home/mcheng/workspace/temp/benchmark/src/sysinfo.cc: In function ‘double benchmark::{anonymous}::GetCPUCyclesPerSecond(benchmark::CPUInfo::Scaling)’:
/fs02/home/mcheng/workspace/temp/benchmark/src/sysinfo.cc:822:22: error: call of overloaded ‘DoNotOptimize(Result&)’ is ambiguous
DoNotOptimize(state);
^
/fs02/home/mcheng/workspace/temp/benchmark/src/sysinfo.cc:822:22: note: candidates are:
In file included from /fs02/home/mcheng/workspace/temp/benchmark/src/sysinfo.cc:76:0:
/fs02/home/mcheng/workspace/temp/benchmark/include/benchmark/benchmark.h:554:37: note: void benchmark::DoNotOptimize(const Tp&) [with Tp = long unsigned int]
inline BENCHMARK_ALWAYS_INLINE void DoNotOptimize(Tp const& value) {
^
/fs02/home/mcheng/workspace/temp/benchmark/include/benchmark/benchmark.h:559:37: note: void benchmark::DoNotOptimize(Tp&) [with Tp = long unsigned int]
inline BENCHMARK_ALWAYS_INLINE void DoNotOptimize(Tp& value) {
^
/fs02/home/mcheng/workspace/temp/benchmark/include/benchmark/benchmark.h:565:37: note: void benchmark::DoNotOptimize(Tp&&) [with Tp = long unsigned int&]
inline BENCHMARK_ALWAYS_INLINE void DoNotOptimize(Tp&& value) {
^
gmake[2]: *** [src/CMakeFiles/benchmark.dir/sysinfo.cc.o] Error 1
gmake[1]: *** [src/CMakeFiles/benchmark.dir/all] Error 2
gmake: *** [all] Error 2
The text was updated successfully, but these errors were encountered: