pmelsted / pizzly

Fast fusion detection using kallisto
BSD 2-Clause "Simplified" License
80 stars 10 forks source link

Make Error; unable to compile required .c file #12

Closed sowmyaiyer closed 7 years ago

sowmyaiyer commented 7 years ago

I was able to get around this error by modifying CMakeLists.txt to remove CXX from the project line. Not sure if this is a generic fix, so opening as an issue.

$ diff CMakeLists.txt CMakeLists.bkup
5c5
< project (pizzly)
---
> project (pizzly CXX)

Here is the error from the command line

$ cmake ../
-- The CXX compiler identification is GNU 4.9.2
-- Check for working CXX compiler: /source/gcc/4.9.2/bin/c++
-- Check for working CXX compiler: /source/gcc/4.9.2/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- Looking for include file pthread.h
CMake Error at /apps/source/cmake/3.0.2/share/cmake-3.0/Modules/CheckIncludeFiles.cmake:70 (try_compile):
  Unknown extension ".c" for file

    /<dir>/pizzly/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):
  /apps/source/cmake/3.0.2/share/cmake-3.0/Modules/FindThreads.cmake:51 (CHECK_INCLUDE_FILES)
  CMakeLists.txt:13 (find_package)

-- Looking for include file pthread.h - not found
CMake Error at /apps/source/cmake/3.0.2/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /apps/source/cmake/3.0.2/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  /apps/source/cmake/3.0.2/share/cmake-3.0/Modules/FindThreads.cmake:178 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:13 (find_package)

-- Configuring incomplete, errors occurred!
See also "/data/rivera/sowmya/software/pizzly/build/CMakeFiles/CMakeOutput.log".
See also "/data/rivera/sowmya/software/pizzly/build/CMakeFiles/CMakeError.log".
pmelsted commented 7 years ago

Thanks for filing this I haven't seen this but seems like a common problem, http://www.grokit.ca/cnt/CMakeProblemsSolutions/