Cmake error cmake c compiler not set after enablelanguage

Раньше пользовался VS, сегодня установил CLion. Не могу собрать проект. Ругается на CMake profile. Вот такие ошибки...

Понимаю что вопрос старый, но считаю необходимым ответить для следующего кто будет искать.

Ошибка «cannot find any CMake profiles» — это внутренняя ошибка CLion, она говорит о том, что вам необходимо настроить профиль для сборки. Профиль в CLion — это замена аргументам командной строки, которые нужно было бы передать при сборке через консоль. Обратите внимание, что CMake уже входит в поставку CLion, так что вам не нужно устанавливать его отдельно — если только вы не хотите использовать другую версию.

Зайдите в меню File -> Settings..., в нем выберите вкладку Build, Execution, Deployment -> CMake. На этой странице вы можете создать и настроить профиль сборки точно так же, как это делается из командной строки (это хорошо описано в документации самого CMake). По-умолчанию там уже есть один профиль, Debug, но если ваш проект требует дополнительных настроек для сборки (например указания пути к какой-то сторонней библиотеке), то CLion не сможет сгенерировать проект с текущими настройками, и выведет довольно путающую ошибку «cannot find any CMake profiles» (хотя технически профиль есть).

Обратите внимание: хотя меню Settings хранит глобальные настройки, настройки профиля сохраняются отдельно для каждого проекта, т.ч. изменение профилей не помешает сборке других ваших программ.

Что касается следующих ошибок:

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage 

Они говорят о том, что у вас не настроен toolchain, т.е. набор компиляторов и утилит для сборки, из-за чего текущий профиль не может быть использован.

Если вы используете Linux, или если вы используете Windows и у вас уже установлена Visual Studio — CLion должен был сам найти подходящий компилятор. Вы можете проверить это, открыв вкладку Toolchains рядом с той, в котороый вы настраивали профили.

Если компилятор действительно не настроен, я советую вам посмотреть вот эти инструкции по настройке: Quick Tutorial: Configure CLion on Windows.
Для Linux воспользуйтесь инструкцией по установки компилятора для вашего дистрибутива. После настройки toolchain вам нужно будет зайти в текущий профиль, и выбрать его в качестве используемого — это исправит ошибки.

Также советую вам ознакомиться с документацией по самому CMake, и с циклом статей на русском языке на Хабре:
Официальная документация CMake (на английском)
Полное руководство по CMake (статья на русском)

– Building for: NMake Makefiles
CMake Error in CMakeLists.txt:
Generator
NMake Makefiles
does not support platform specification, but platform
x64
was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!

The default generator for Windows seems to be set to NMAKE. Try to use: @tibur

cmake -G "MinGW Makefiles"

Интеллектуальная рекомендация

указатель-события: нет; решить проблему сбоя клика

На работе сделал выпадающий список. Фон стрелки вниз добавляется к form-select :: after, но при нажатии стрелки событие раскрывающегося списка не может быть запущено. Так что добавьтеpointer-events: n…

Как идея соединяет MySQL?

1. Открытая идея 2. Справа есть база данных, щелкните 3. Нажмите » +» 4. Продолжайте нажимать 5. Выберите MySQL 6. Введите, где находится база данных, имя пользователя, пароль, тестовое соед…

CSRF и SSRF

Введение в уязвимости CSRF CSRF (подделка межсайтовых запросов, подделка межсайтовых запросов) относится к использованию недействительной идентификационной информации жертвы (файлы cookie, сеансы и т….

Разработка управления приложениями

Получить всю информацию о приложении PackageManager Android управляет пакетами приложений через PackageManager, и мы можем использовать его для получения информации о приложениях на текущем устройстве…

Вам также может понравиться

Анализ исходного кода пула потоков -jdk1.8

openjdk адрес загрузки http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/tags Логические шаги пула потоков, с которыми поставляется Java, — это, в основном, следующие шаги: Реализация псевдокода Отправить ис…

Используйте инструменты в макете XML:

В макете, если некоторые фиксированные значения атрибута не установлены, некоторое представление не будет видно, когда будет видна макет. Все, что мы можем увидеть эффект предварительного просмотра, к…

Войдите в JVM

1. Введение в JVM 1.1 Концепция JVM Введение в виртуальную машину: JVM (аббревиатура от Java Virtual Machine. Java Virtual Machine.), JVM — это настраиваемый компьютер, которого на самом деле не сущес…

пользователи Linux и группы пользователей

Пользователь категория Профиль пользователь Root (Root пользователя) Команда Советы Упорядочить #, имеет самую высокую задачу разрешения любого разрешения файла недействительно для корневого пользоват…

Котлин Базовый — класс и атрибуты

Давайте напишем простой JavaBean класса Student в Java, только с одним свойством, имя. Тот же класс в Котлин это: PUBLIC в Котлин является видимость по умолчанию, поэтому его можно опустить. Этот вид …

Статьи по теме

  • Android Studio CMAKE_C_COMPILER not set, after EnableLanguage
  • Android CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  • Android CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  • CMake Error at CMakeLists.txt:5 (PROJECT): The CMAKE_C_COMPILER: cl is not a full path
  • spark.test.home is not set!
  • JAVA_HOME is not set
  • $GOPATH not set
  • CSRF cookie not set
  • java.sql.SQLException: url not set
  • javax.servlet.ServletException: Singleton is not set

популярные статьи

  • Кордова копировать плагин Кордова-плагин-буфер обмена
  • О дизайне Android и его значении
  • Режим программных компонентов
  • npm
  • Vue Mobile Phone Picture Component Component
  • 0,96-дюймовый OLED-дисплей Изображение
  • Информация о контенте автоматически развернута, а мышь останавливается
  • Концепция Spring и система анализа псевдонимов исходного кода (2)
  • Re -Learning Record от входа в тюрьму [7]
  • Камень-ножницы для бумаги (машинный тест)

рекомендованная статья

  • Данные сайта веб-сайта бизнес-аналитика Python Reptile
  • KVM виртуальная машина примечания конфигурации
  • 2020-07-27 Комиксы Упаковка и скачать CRAC
  • В Windows, Maven частные службы Nexus строительства и эксплуатации
  • Разделение чтения-записи конфигурации Springboot (Mybatis)
  • Работа шесть
  • Luogu p3238 [hnoi2014] дорожная блокировка
  • Установка системы Windows System —- Windows7 Enterprise Edition Невозможно установить Net.framework4.52-4.6 Версия Win7 Solutions …
  • Fiber Optic Cable vs Wireless: Which One Would You Prefer
  • Stateful Future Transformation

Связанные теги

  • ndk
  • CMAKE
  • not set
  • jni
  • Android
  • Android NDK
  • Cmake
  • Ошибка компиляции
  • Python
  • python

share:xcbuild chen-pc$ make
mkdir -p build
cmake -Bbuild -H. -G Ninja -DCMAKE_INSTALL_PREFIX=
CMake Error: CMake was unable to find a build program corresponding to «Ninja». CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: /Users/chen-pc/xcbuild/build/CMakeFiles/3.2.2/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file: /Users/chen-pc/xcbuild/build/CMakeFiles/3.2.2/CMakeCXXCompiler.cmake
CMake Error at CMakeLists.txt:10 (project):
No CMAKE_C_COMPILER could be found.

Tell CMake where to find the compiler by setting the CMake cache entry
CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name
if it is in the PATH.

CMake Error at CMakeLists.txt:10 (project):
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting the CMake cache entry
CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler
name if it is in the PATH.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
— Configuring incomplete, errors occurred!

Содеожимое фала CMakeOutput.log (по частям):

CMakeOutput.log(часть 1):
The system is: MSYS — 3.0.7-338.x86_64 — x86_64
Compiling the C compiler identification source file «CMakeCCompilerId.c» succeeded.
Compiler: /usr/bin/cc.exe
Build flags:
Id flags:

The output was:
0

Compilation of the C compiler identification source «CMakeCCompilerId.c» produced «a.exe»

The C compiler identification is GNU, found in «/g/freeglut-3.2.1/CMakeFiles/3.15.5/CompilerIdC/a.exe»

Compiling the CXX compiler identification source file «CMakeCXXCompilerId.cpp» succeeded.
Compiler: /usr/bin/c++.exe
Build flags:
Id flags:

The output was:
0

Compilation of the CXX compiler identification source «CMakeCXXCompilerId.cpp» produced «a.exe»

The CXX compiler identification is GNU, found in «/g/freeglut-3.2.1/CMakeFiles/3.15.5/CompilerIdCXX/a.exe»

Determining if the C compiler works passed with the following output:
Change Dir: /g/freeglut-3.2.1/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make.exe cmTC_503de/fast && /usr/bin/make -f CMakeFiles/cmTC_503de.dir/build.make CMakeFiles/cmTC_503de.dir/build
make[1]: вход в каталог «/g/freeglut-3.2.1/CMakeFiles/CMakeTmp»
Building C object CMakeFiles/cmTC_503de.dir/testCCompiler.c.o
/usr/bin/cc.exe -o CMakeFiles/cmTC_503de.dir/testCCompiler.c.o -c /g/freeglut-3.2.1/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_503de.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_503de.dir/link.txt —verbose=1
/usr/bin/cc.exe -Wl,—enable-auto-import CMakeFiles/cmTC_503de.dir/testCCompiler.c.o -o cmTC_503de.exe -Wl,—out-implib,libcmTC_503de.dll.a -Wl,—major-image-version,0,—minor-image-version,0
make[1]: выход из каталога «/g/freeglut-3.2.1/CMakeFiles/CMakeTmp»

Detecting C compiler ABI info compiled with the following output:
Change Dir: /g/freeglut-3.2.1/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make.exe cmTC_71c7e/fast && /usr/bin/make -f CMakeFiles/cmTC_71c7e.dir/build.make CMakeFiles/cmTC_71c7e.dir/build
make[1]: Entering directory ‘/g/freeglut-3.2.1/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o
/usr/bin/cc.exe -v -o CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.15.5/Modules/CMakeCCompilerABI.c
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
Target: x86_64-pc-msys
Configured with: /msys_scripts/gcc/src/gcc-9.1.0/configure —build=x86_64-pc-msys —prefix=/usr —libexecdir=/usr/lib —enable-bootstrap —enable-shared —enable-shared-libgcc —enable-static —enable-version-specific-runtime-libs —with-arch=x86-64 —with-tune=generic —disable-multilib —enable-__cxa_atexit —with-dwarf2 —enable-languages=c,c++,fortran,lto —enable-graphite —enable-threads=posix —enable-libatomic —enable-libgomp —enable-libitm —enable-libquadmath —enable-libquadmath-support —disable-libssp —disable-win32-registry —disable-symvers —with-gnu-ld —with-gnu-as —disable-isl-version-check —enable-checking=release —without-libiconv-prefix —without-libintl-prefix —with-system-zlib —enable-linker-build-id —with-default-libstdcxx-abi=gcc4-compatible —enable-libstdcxx-filesystem-ts
Thread model: posix
gcc version 9.1.0 (GCC)
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib/gcc/x86_64-pc-msys/9.1.0/cc1.exe -quiet -v -idirafter /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api -idirafter /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/../../include/w32api /usr/share/cmake-3.15.5/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -version -o /tmp/ccMAQSme.s
GNU C17 (GCC) version 9.1.0 (x86_64-pc-msys)
compiled by GNU C version 9.1.0, GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP

GGC heuristics: —param ggc-min-expand=100 —param ggc-min-heapsize=131072
ignoring nonexistent directory «/usr/local/include»
ignoring nonexistent directory «/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/include»
ignoring duplicate directory «/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/../../include/w32api»
#include «…» search starts here:
#include <…> search starts here:
/usr/lib/gcc/x86_64-pc-msys/9.1.0/include
/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed
/usr/include
/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api
End of search list.
GNU C17 (GCC) version 9.1.0 (x86_64-pc-msys)
compiled by GNU C version 9.1.0, GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP

GGC heuristics: —param ggc-min-expand=100 —param ggc-min-heapsize=131072
Compiler executable checksum: 7f510fbb3faa166a40407e74feefff38
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/as.exe -v -o CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o /tmp/ccMAQSme.s
GNU assembler version 2.30 (x86_64-pc-msys) using BFD version (GNU Binutils) 2.30
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’
Linking C executable cmTC_71c7e.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_71c7e.dir/link.txt —verbose=1
/usr/bin/cc.exe -Wl,—enable-auto-import -v CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -o cmTC_71c7e.exe -Wl,—out-implib,libcmTC_71c7e.dll.a -Wl,—major-image-version,0,—minor-image-version,0
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe
Target: x86_64-pc-msys
Configured with: /msys_scripts/gcc/src/gcc-9.1.0/configure —build=x86_64-pc-msys —prefix=/usr —libexecdir=/usr/lib —enable-bootstrap —enable-shared —enable-shared-libgcc —enable-static —enable-version-specific-runtime-libs —with-arch=x86-64 —with-tune=generic —disable-multilib —enable-__cxa_atexit —with-dwarf2 —enable-languages=c,c++,fortran,lto —enable-graphite —enable-threads=posix —enable-libatomic —enable-libgomp —enable-libitm —enable-libquadmath —enable-libquadmath-support —disable-libssp —disable-win32-registry —disable-symvers —with-gnu-ld —with-gnu-as —disable-isl-version-check —enable-checking=release —without-libiconv-prefix —without-libintl-prefix —with-system-zlib —enable-linker-build-id —with-default-libstdcxx-abi=gcc4-compatible —enable-libstdcxx-filesystem-ts
Thread model: posix
gcc version 9.1.0 (GCC)
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘cmTC_71c7e.exe’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib/gcc/x86_64-pc-msys/9.1.0/collect2.exe -plugin /usr/lib/gcc/x86_64-pc-msys/9.1.0/msys-lto_plugin.dll -plugin-opt=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe -plugin-opt=-fresolution=/tmp/ccVCUNou.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmsys-2.0 -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc —build-id -m i386pep —wrap _Znwm —wrap _Znam —wrap _ZdlPv —wrap _ZdaPv —wrap _ZnwmRKSt9nothrow_t —wrap _ZnamRKSt9nothrow_t —wrap _ZdlPvRKSt9nothrow_t —wrap _ZdaPvRKSt9nothrow_t -Bdynamic —dll-search-prefix=msys- —tsaware -o cmTC_71c7e.exe /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/crt0.o /usr/lib/gcc/x86_64-pc-msys/9.1.0/crtbegin.o -L/usr/lib/gcc/x86_64-pc-msys/9.1.0 -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../.. —enable-auto-import CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o —out-implib libcmTC_71c7e.dll.a —major-image-version 0 —minor-image-version 0 -lgcc_s -lgcc -lmsys-2.0 -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/default-manifest.o /usr/lib/gcc/x86_64-pc-msys/9.1.0/crtend.o
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘cmTC_71c7e.exe’ ‘-mtune=generic’ ‘-march=x86-64’
make[1]: Leaving directory ‘/g/freeglut-3.2.1/CMakeFiles/CMakeTmp’

Добавлено через 46 секунд
Содеожимое фала CMakeOutput.log (по частям):

CMakeOutput.log(часть 2):
Parsed C implicit include dir info from above output: rv=done
found start of include info
found start of implicit include info
add: [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include]
add: [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed]
add: [/usr/include]
add: [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api]
end of search list found
collapse include dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include] ==> [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include]
collapse include dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed] ==> [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed]
collapse include dir [/usr/include] ==> [/usr/include]
collapse include dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api] ==> [/usr/include/w32api]
implicit include dirs: [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include;/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed;/usr/include;/usr/include/w32api]

Parsed C implicit link information from above output:
link line regex: [^( *|.*[/])(ld.exe|CMAKE_LINK_STARTFILE-NOTFOUND|([^/]+-)?ld|collect2)[^/]*( |$)]
ignore line: [Change Dir: /g/freeglut-3.2.1/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command(s):/usr/bin/make.exe cmTC_71c7e/fast && /usr/bin/make -f CMakeFiles/cmTC_71c7e.dir/build.make CMakeFiles/cmTC_71c7e.dir/build]
ignore line: [make[1]: Entering directory ‘/g/freeglut-3.2.1/CMakeFiles/CMakeTmp’]
ignore line: [Building C object CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o]
ignore line: [/usr/bin/cc.exe -v -o CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.15.5/Modules/CMakeCCompilerABI.c]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/cc]
ignore line: [Target: x86_64-pc-msys]
ignore line: [Configured with: /msys_scripts/gcc/src/gcc-9.1.0/configure —build=x86_64-pc-msys —prefix=/usr —libexecdir=/usr/lib —enable-bootstrap —enable-shared —enable-shared-libgcc —enable-static —enable-version-specific-runtime-libs —with-arch=x86-64 —with-tune=generic —disable-multilib —enable-__cxa_atexit —with-dwarf2 —enable-languages=c,c++,fortran,lto —enable-graphite —enable-threads=posix —enable-libatomic —enable-libgomp —enable-libitm —enable-libquadmath —enable-libquadmath-support —disable-libssp —disable-win32-registry —disable-symvers —with-gnu-ld —with-gnu-as —disable-isl-version-check —enable-checking=release —without-libiconv-prefix —without-libintl-prefix —with-system-zlib —enable-linker-build-id —with-default-libstdcxx-abi=gcc4-compatible —enable-libstdcxx-filesystem-ts]
ignore line: [Thread model: posix]
ignore line: [gcc version 9.1.0 (GCC) ]
ignore line: [COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/cc1.exe -quiet -v -idirafter /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api -idirafter /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/../../include/w32api /usr/share/cmake-3.15.5/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -version -o /tmp/ccMAQSme.s]
ignore line: [GNU C17 (GCC) version 9.1.0 (x86_64-pc-msys)]
ignore line: [ compiled by GNU C version 9.1.0, GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP]
ignore line: []
ignore line: [GGC heuristics: —param ggc-min-expand=100 —param ggc-min-heapsize=131072]
ignore line: [ignoring nonexistent directory «/usr/local/include»]
ignore line: [ignoring nonexistent directory «/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/include»]
ignore line: [ignoring duplicate directory «/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/../../include/w32api»]
ignore line: [#include «…» search starts here:]
ignore line: [#include <…> search starts here:]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/include]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed]
ignore line: [ /usr/include]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api]
ignore line: [End of search list.]
ignore line: [GNU C17 (GCC) version 9.1.0 (x86_64-pc-msys)]
ignore line: [ compiled by GNU C version 9.1.0, GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP]
ignore line: []
ignore line: [GGC heuristics: —param ggc-min-expand=100 —param ggc-min-heapsize=131072]
ignore line: [Compiler executable checksum: 7f510fbb3faa166a40407e74feefff38]
ignore line: [COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/as.exe -v -o CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o /tmp/ccMAQSme.s]
ignore line: [GNU assembler version 2.30 (x86_64-pc-msys) using BFD version (GNU Binutils) 2.30]
ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’]
ignore line: [Linking C executable cmTC_71c7e.exe]
ignore line: [/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_71c7e.dir/link.txt —verbose=1]
ignore line: [/usr/bin/cc.exe -Wl,—enable-auto-import -v CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -o cmTC_71c7e.exe -Wl,—out-implib,libcmTC_71c7e.dll.a -Wl,—major-image-version,0,—minor-image-version,0 ]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/cc]
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe]
ignore line: [Target: x86_64-pc-msys]
ignore line: [Configured with: /msys_scripts/gcc/src/gcc-9.1.0/configure —build=x86_64-pc-msys —prefix=/usr —libexecdir=/usr/lib —enable-bootstrap —enable-shared —enable-shared-libgcc —enable-static —enable-version-specific-runtime-libs —with-arch=x86-64 —with-tune=generic —disable-multilib —enable-__cxa_atexit —with-dwarf2 —enable-languages=c,c++,fortran,lto —enable-graphite —enable-threads=posix —enable-libatomic —enable-libgomp —enable-libitm —enable-libquadmath —enable-libquadmath-support —disable-libssp —disable-win32-registry —disable-symvers —with-gnu-ld —with-gnu-as —disable-isl-version-check —enable-checking=release —without-libiconv-prefix —without-libintl-prefix —with-system-zlib —enable-linker-build-id —with-default-libstdcxx-abi=gcc4-compatible —enable-libstdcxx-filesystem-ts]
ignore line: [Thread model: posix]
ignore line: [gcc version 9.1.0 (GCC) ]
ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘cmTC_71c7e.exe’ ‘-mtune=generic’ ‘-march=x86-64’]
link line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/collect2.exe -plugin /usr/lib/gcc/x86_64-pc-msys/9.1.0/msys-lto_plugin.dll -plugin-opt=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe -plugin-opt=-fresolution=/tmp/ccVCUNou.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmsys-2.0 -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc —build-id -m i386pep —wrap _Znwm —wrap _Znam —wrap _ZdlPv —wrap _ZdaPv —wrap _ZnwmRKSt9nothrow_t —wrap _ZnamRKSt9nothrow_t —wrap _ZdlPvRKSt9nothrow_t —wrap _ZdaPvRKSt9nothrow_t -Bdynamic —dll-search-prefix=msys- —tsaware -o cmTC_71c7e.exe /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/crt0.o /usr/lib/gcc/x86_64-pc-msys/9.1.0/crtbegin.o -L/usr/lib/gcc/x86_64-pc-msys/9.1.0 -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../.. —enable-auto-import CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o —out-implib libcmTC_71c7e.dll.a —major-image-version 0 —minor-image-version 0 -lgcc_s -lgcc -lmsys-2.0 -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/default-manifest.o /usr/lib/gcc/x86_64-pc-msys/9.1.0/crtend.o]
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/collect2.exe] ==> ignore
arg [-plugin] ==> ignore
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/msys-lto_plugin.dll] ==> ignore
arg [-plugin-opt=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe] ==> ignore
arg [-plugin-opt=-fresolution=/tmp/ccVCUNou.res] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lmsys-2.0] ==> ignore
arg [-plugin-opt=-pass-through=-ladvapi32] ==> ignore
arg [-plugin-opt=-pass-through=-lshell32] ==> ignore
arg [-plugin-opt=-pass-through=-luser32] ==> ignore
arg [-plugin-opt=-pass-through=-lkernel32] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [—build-id] ==> ignore
arg [-m] ==> ignore
arg [i386pep] ==> ignore
arg [—wrap] ==> ignore
arg [_Znwm] ==> ignore
arg [—wrap] ==> ignore
arg [_Znam] ==> ignore
arg [—wrap] ==> ignore
arg [_ZdlPv] ==> ignore
arg [—wrap] ==> ignore
arg [_ZdaPv] ==> ignore
arg [—wrap] ==> ignore
arg [_ZnwmRKSt9nothrow_t] ==> ignore
arg [—wrap] ==> ignore
arg [_ZnamRKSt9nothrow_t] ==> ignore
arg [—wrap] ==> ignore
arg [_ZdlPvRKSt9nothrow_t] ==> ignore
arg [—wrap] ==> ignore
arg [_ZdaPvRKSt9nothrow_t] ==> ignore
arg [-Bdynamic] ==> ignore
arg [—dll-search-prefix=msys-] ==> ignore
arg [—tsaware] ==> ignore
arg [-o] ==> ignore
arg [cmTC_71c7e.exe] ==> ignore
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/crt0.o] ==> ignore
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/crtbegin.o] ==> ignore
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0]
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib]
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib]
arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib]
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../..] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../..]
arg [—enable-auto-import] ==> ignore
arg [CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [—out-implib] ==> ignore
arg [libcmTC_71c7e.dll.a] ==> ignore
arg [—major-image-version] ==> ignore
arg [0] ==> ignore
arg [—minor-image-version] ==> ignore
arg [0] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [-lmsys-2.0] ==> lib [msys-2.0]
arg [-ladvapi32] ==> lib [advapi32]
arg [-lshell32] ==> lib [shell32]
arg [-luser32] ==> lib [user32]
arg [-lkernel32] ==> lib [kernel32]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/default-manifest.o] ==> ignore
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/crtend.o] ==> ignore
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0] ==> [/usr/lib/gcc/x86_64-pc-msys/9.1.0]
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib] ==> [/usr/x86_64-pc-msys/lib]
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib] ==> [/usr/lib]
collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib] ==> [/usr/x86_64-pc-msys/lib]
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../..] ==> [/usr/lib]
implicit libs: [gcc_s;gcc;msys-2.0;advapi32;shell32;user32;kernel32;gcc_s;gcc]
implicit dirs: [/usr/lib/gcc/x86_64-pc-msys/9.1.0;/usr/x86_64-pc-msys/lib;/usr/lib]
implicit fwks: []

Ubuntu 14.04 here. I am trying to install and build Eigen (C++ library) from source and am running into some Ubuntu/GCC config errors. It’s definitely not a problem with the source code, so I don’t think StackOverflow is the appropriate site for this question.

The commands I ran were:

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

When I run that cmake command I get the following errors:

-- 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 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_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".

The contents of that CMakeError.log file are:

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); }

Can anyone help me decipher whether this is a GCC config issue, or something wrong with Eigen’s make (I highly doubt it)?

GCC is installed (running gcc -v yields gcc version 4.8.4). I also know cmake is installed (by running cmake --help). Just not sure if it’s configured correctly. Any ideas?

Понравилась статья? Поделить с друзьями:
  • Cmake error cannot determine link language for target
  • Cmake error at cmakelists txt 2 project
  • Cmake error 127
  • Cmake build error could not load cache
  • Cma ps vita ошибка при установке