DigitalInBlue / Celero

C++ Benchmark Authoring Library/Framework
Other
824 stars 95 forks source link

Cannot build with gcc9 #136

Closed ruipacheco closed 5 years ago

ruipacheco commented 5 years ago

Bug Report

Tried to build with gcc9 on Ubuntu 18.04 but failed:

$ git clone https://github.com/DigitalInBlue/Celero
Cloning into 'Celero'...
remote: Enumerating objects: 232, done.
remote: Counting objects: 100% (232/232), done.
remote: Compressing objects: 100% (135/135), done.
remote: Total 2468 (delta 121), reused 173 (delta 90), pack-reused 2236
Receiving objects: 100% (2468/2468), 1.77 MiB | 2.15 MiB/s, done.
Resolving deltas: 100% (1529/1529), done.

$ cd Celero

$ mkdir build

$ cd build

$ cmake ../
-- The C compiler identification is GNU 9.1.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:75 (PROJECT):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/home/ruipacheco/Celero/build/CMakeFiles/CMakeOutput.log".
See also "/home/ruipacheco/Celero/build/CMakeFiles/CMakeError.log".

I was able to build with gcc8.