Skip to content

CMake Error: Error required internal CMake variable not set #176

@adamjstewart

Description

@adamjstewart

I'm trying to build JasPer 2.0.14 with CMake 2.8.12.2 and GCC 6.1.0 on CentOS 6.9 and I'm running into some strange CMake errors:

==> 'cmake' '/blues/gpfs/home/ajstewart/spack/var/spack/stage/jasper-2.0.14-6ppf3l6ewjd5v3mzeb2wwk5viup6iuvp/jasper-2.0.14' '-G' 'Unix Makefiles' '-DCMAKE_INSTALL_PREFIX:PATH=/blues/gpfs/home/ajstewart/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0/jasper-2.0.14-6ppf3l6ewjd5v3mzeb2wwk5viup6iuvp' '-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo' '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON' '-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE' '-DCMAKE_INSTALL_RPATH:STRING=/blues/gpfs/home/ajstewart/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0/jasper-2.0.14-6ppf3l6ewjd5v3mzeb2wwk5viup6iuvp/lib;/blues/gpfs/home/ajstewart/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0/jasper-2.0.14-6ppf3l6ewjd5v3mzeb2wwk5viup6iuvp/lib64;/blues/gpfs/home/ajstewart/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0/libjpeg-turbo-1.5.90-53mm6jqhjgpxn4oc63cyw3iwshnvruqe/lib64' '-DCMAKE_PREFIX_PATH:STRING=/blues/gpfs/home/ajstewart/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0/libjpeg-turbo-1.5.90-53mm6jqhjgpxn4oc63cyw3iwshnvruqe' '-DJAS_ENABLE_DOC=false' '-DJAS_ENABLE_LIBJPEG=true' '-DJAS_ENABLE_OPENGL=false' '-DJAS_ENABLE_SHARED=true'
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER
CMake Error: Could not find cmake module file: /tmp/ajstewart/spack-stage/spack-stage-gw7kqh/jasper-2.0.14/spack-build/CMakeFiles/2.8.12.2/CMakeLANGUAGESCompiler.cmake
-- The C compiler identification is GNU 6.1.0
CMake Error: Could not find cmake module file: CMakeLANGUAGESInformation.cmake
-- Check for working C compiler: /blues/gpfs/home/ajstewart/spack/lib/spack/env/gcc/gcc
-- Check for working C compiler: /blues/gpfs/home/ajstewart/spack/lib/spack/env/gcc/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: CMAKE_LANGUAGES_COMPILER not set, after EnableLanguage
Software version: 2.0.14
Shared library ABI version: 4
Shared library build version: 4.0.0
JAS_ENABLE_ASAN OFF
JAS_ENABLE_USAN OFF
JAS_ENABLE_LSAN OFF
JAS_ENABLE_MSAN OFF
JAS_MULTICONFIGURATION_GENERATOR 0
CMake Warning at CMakeLists.txt:112 (message):
  If this software is being built as a package for a Linux distribution, you
  should probably set JAS_ENABLE_AUTOMATIC_DEPENDENCIES to false.


Platform UNIX (Not OSX)
JAS_LOCAL OFF
CMAKE_BUILD_TYPE RelWithDebInfo
CMAKE_C_COMPILER_ID GNU
CMAKE_C_COMPILER /blues/gpfs/home/ajstewart/spack/lib/spack/env/gcc/gcc
CMAKE_C_FLAGS 
-- Found Doxygen: /usr/bin/doxygen (found version "1.6.1") 
PDFLATEX_COMPILER: /usr/bin/pdflatex
CMake Warning at CMakeLists.txt:210 (message):
  Setting LATEX_FOUND to true.


CMake Warning at CMakeLists.txt:211 (message):
  Your version of CMake may be buggy.


LATEX_FOUND true
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file io.h
-- Looking for include file io.h - not found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file windows.h
-- Looking for include file windows.h - not found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Found JPEG: /blues/gpfs/home/ajstewart/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0/libjpeg-turbo-1.5.90-53mm6jqhjgpxn4oc63cyw3iwshnvruqe/lib64/libjpeg.so  
JPEG library found: TRUE
JPEG include directory: /blues/gpfs/home/ajstewart/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0/libjpeg-turbo-1.5.90-53mm6jqhjgpxn4oc63cyw3iwshnvruqe/include
JPEG libraries: /blues/gpfs/home/ajstewart/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0/libjpeg-turbo-1.5.90-53mm6jqhjgpxn4oc63cyw3iwshnvruqe/lib64/libjpeg.so
-- Performing Test JAS_HAVE_JPEGLIB_H
-- Performing Test JAS_HAVE_JPEGLIB_H - Success
JAS_HAVE_JPEGLIB_H: 1
JAS_HAVE_LIBJPEG: 1
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so  
JAS_ENABLE_OPENGL: false
OpenGL library found: TRUE
JAS_HAVE_OPENGL: 0
GLUT library not found; skipping build of jiv program
-- Configuring incomplete, errors occurred!
See also "/tmp/ajstewart/spack-stage/spack-stage-gw7kqh/jasper-2.0.14/spack-build/CMakeFiles/CMakeOutput.log".
See also "/tmp/ajstewart/spack-stage/spack-stage-gw7kqh/jasper-2.0.14/spack-build/CMakeFiles/CMakeError.log".

Any idea what could cause these? How reliable is:

cmake_minimum_required (VERSION 2.8.11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions