michalkielan / MatrixLibs

Small matrix library, written C++11
Mozilla Public License 2.0
1 stars 2 forks source link

cmake travis error #20

Closed michalkielan closed 7 years ago

michalkielan commented 7 years ago

Error in.travis when cmake for google benchmark has been started

CMake 2.8.11 or higher is required. You are running version 2.8.7

@JaroslawWiosna

JaroslawWiosna commented 7 years ago

Based on After change to:

    packages:
        - cmake=2.8.11

E: Version '2.8.11' for 'cmake' was not found

JaroslawWiosna commented 7 years ago

d7f29f0439c6 Based on 1 and 2 error is:

Disallowing sources: smspillaz To add unlisted APT sources, follow instructions in https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon

JaroslawWiosna commented 7 years ago

Those guys have the same problem: https://github.com/travis-ci/apt-source-whitelist/issues/93 https://github.com/travis-ci/travis-ci/issues/5431 However, I cannot restart build on the travis webpage...

Have a look at https://github.com/travis-ci/apt-package-whitelist <-- perhaps one can check if specific repo can be used with travis

Update: commenters point out that "Ubuntu 12.04 is only shipping v2.8.7" and "14.04 is still shipping 2.8". That is for a reason: 12.04 and 14.04 are LTS releases of Ubuntu. LTS releases are intended to remain stable for 5 years, so they receive security and critical updates only. You will most certainly not see an upgrade of cmake happen in an LTS release. You will in non-LTS releases.

from http://askubuntu.com/questions/355565/how-to-install-latest-cmake-version-in-linux-ubuntu-from-command-line

JaroslawWiosna commented 7 years ago

I use a hint from https://github.com/travis-ci/travis-ci/issues/4631#issuecomment-191153634 Log from MatrixLibs/builds/171604478

make Scanning dependencies of target benchmark [ 3%] Building CXX object src/CMakeFiles/benchmark.dir/complexity.cc.o [ 7%] Building CXX object src/CMakeFiles/benchmark.dir/timers.cc.o [ 10%] Building CXX object src/CMakeFiles/benchmark.dir/commandlineflags.cc.o [ 14%] Building CXX object src/CMakeFiles/benchmark.dir/csv_reporter.cc.o [ 17%] Building CXX object src/CMakeFiles/benchmark.dir/sysinfo.cc.o [ 21%] Building CXX object src/CMakeFiles/benchmark.dir/colorprint.cc.o [ 25%] Building CXX object src/CMakeFiles/benchmark.dir/reporter.cc.o [ 28%] Building CXX object src/CMakeFiles/benchmark.dir/string_util.cc.o [ 32%] Building CXX object src/CMakeFiles/benchmark.dir/sleep.cc.o [ 35%] Building CXX object src/CMakeFiles/benchmark.dir/json_reporter.cc.o [ 39%] Building CXX object src/CMakeFiles/benchmark.dir/console_reporter.cc.o [ 42%] Building CXX object src/CMakeFiles/benchmark.dir/benchmark_register.cc.o [ 46%] Building CXX object src/CMakeFiles/benchmark.dir/benchmark.cc.o Linking CXX static library libbenchmark.a [ 46%] Built target benchmark Scanning dependencies of target basic_test [ 50%] Building CXX object test/CMakeFiles/basic_test.dir/basic_test.cc.o Linking CXX executable basic_test ../src/libbenchmark.a(timers.cc.o): In function benchmark::ProcessCPUUsage()': timers.cc:(.text+0x105): undefined reference toclock_gettime' ../src/libbenchmark.a(timers.cc.o): In function benchmark::ThreadCPUUsage()': timers.cc:(.text+0x14f): undefined reference toclock_gettime' collect2: error: ld returned 1 exit status make[2]: * [test/basic_test] Error 1 make[1]: * [test/CMakeFiles/basic_test.dir/all] Error 2 make: *\ [all] Error 2 The command "make" failed and exited with 2 during . Your build has been stopped.

@michal915 It seems that this is no longer cmake error, but benchmark error. I am assigning this task to you then :D

JaroslawWiosna commented 7 years ago

@michal915 It would be nice if you will merge #23 (and squash 8 commits to one) to master asap