Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

make test failure! #16

Closed
melon-li opened this issue May 26, 2016 · 1 comment
Closed

make test failure! #16

melon-li opened this issue May 26, 2016 · 1 comment

Comments

@melon-li
Copy link

melon-li commented May 26, 2016

First, I add enable_language(C) to CMakeLists.txt to solve the problem as follow:

Build Directory : build
Source Directory: /root/libbf
-- Looking for include file pthread.h
CMake Error at /usr/share/cmake-2.8/Modules/CheckIncludeFiles.cmake:58 (try_compile):
  Unknown extension ".c" for file

    /root/libbf/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c

  try_compile() works only for enabled languages.  Currently these are:

    CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindThreads.cmake:39 (CHECK_INCLUDE_FILES)
  CMakeLists.txt:54 (find_package)


-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing:  Threads_FOUND) 
CMake Error at CMakeLists.txt:56 (message):
  Could not find system threading libraries


-- Configuring incomplete, errors occurred!
See also "/root/libbf/build/CMakeFiles/CMakeOutput.log".
See also "/root/libbf/build/CMakeFiles/CMakeError.log".

Second, I run make after ./configure
Then make test, but the error comes up:

make[1]: Entering directory `/root/libbf/build'
Running tests...
Test project /root/libbf/build
    Start 1: unit
1/1 Test #1: unit .............................***Failed    0.48 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.48 sec

The following tests FAILED:
      1 - unit (Failed)
Errors while running CTest
make[1]: *** [test] Error 8
make[1]: Leaving directory `/root/libbf/build'
make: *** [test] Error 2

My enviroment: gcc version 4.9.2,cmake version 2.8.12.2 and ubuntu 14.04

How can I fix it?
Thank you!

@mavam
Copy link
Owner

mavam commented Jun 17, 2016

Apologies for the late reply. Good to know that adding C as language to the CMake setup gets you on step further. As mentioned in #12, I currently cannot investigate this further until I can make available free cycles in my spare time.

@mavam mavam closed this as completed Jun 17, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants