Problema de configuração do Ubuntu / GCC: CMAKE_CXX_COMPILER não definido

0

Ubuntu 14.04 aqui. Eu estou tentando instalar e construir Eigen (biblioteca C + +) da fonte e estou correndo em alguns erros de configuração do Ubuntu / GCC . Definitivamente não é um problema com o código fonte, então eu não acho que o StackOverflow seja o site apropriado para essa questão.

Os comandos que eu executei foram:

hg clone https://bitbucket.org/eigen/eigen#3.2
mkdir eigen_build && cd eigen_build
cmake . ../eigen

Quando executo o comando cmake , recebo os seguintes erros:

-- The C compiler identification is GNU 4.8.4
-- 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
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Performing Test standard_math_library_linked_to_automatically

CMake Error em /usr/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component):         get_filename_component chamado com número incorreto de argumentos     Pilha de chamadas (chamada mais recente primeiro):         CMakeLists.txt: 3 (PROJETO)

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Performing Test standard_math_library_linked_to_automatically - Failed
-- Performing Test standard_math_library_linked_to_as_m
CMake Error at /usr/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37 (get_filename_component):
    get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
    CMakeLists.txt:3 (PROJECT)

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Performing Test standard_math_library_linked_to_as_m - Failed
CMake Error at CMakeLists.txt:75 (message):
    Can't link to the standard math library.  Please report to the Eigen
    developers, telling them about your platform.

-- Configuring incomplete, errors occurred!
See also "/home/vagrant/eigen_build/CMakeFiles/CMakeOutput.log".
See also "/home/vagrant/eigen_build/CMakeFiles/CMakeError.log".

O conteúdo desse arquivo CMakeError.log é:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags:

The output was:
No such file or directory

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND
Build flags:
Id flags: -c

The output was:
No such file or directory

Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
Performing C++ SOURCE FILE Test standard_math_library_linked_to_automatically failed with the following output:

Source file was:
#include<cmath>
int main() { std::sin(0.0); std::log(0.0f); }
Performing C++ SOURCE FILE Test standard_math_library_linked_to_as_m failed with the following output:

Source file was:
#include<cmath>
int main() { std::sin(0.0); std::log(0.0f); }

Alguém pode me ajudar a decifrar se esse é um problema de configuração do GCC, ou algo errado com a criação da Eigen (eu altamente duvido)

O GCC está instalado (executando gcc -v yields gcc version 4.8.4 ). Eu também sei que cmake está instalado (executando cmake --help ). Apenas não tenho certeza se está configurado corretamente. Alguma idéia?

    
por smeeb 07.10.2016 / 02:02

0 respostas