LINUX.ORG.RU

ошибка cmake при компиляции программы

 , ,


0

1

Всем привет, устанавливал программу emerge app-vim/youcompleteme.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TEMP
    linked by target "ycm_core" in directory /var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp/ycm

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp/CMakeFiles/CMakeOutput.log".
 * ERROR: app-vim/youcompleteme-20130910::gentoo failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 3763:  Called cmake-utils_src_configure
 *   environment, line 1015:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=app-vim/youcompleteme-20130910::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-vim/youcompleteme-20130910::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-vim/youcompleteme-20130910/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-vim/youcompleteme-20130910/temp/environment'.
 * Working directory: '/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp'
 * S: '/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910' 
Мой make.conf:
COMMON_FLAGS="-march=skylake -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

# Number of parllel makes jobs from portage
MEKEOPTS="-j8"

USE="-gnome -kde -dhclient unicode scsi bluetooth latex python jadetex jpeg png qt5 X usb toolbar apng opengl icu lapack pdf ciaro ffmpeg lcms lensfun openexr raw sdl svg tiff v4l cairo aalib alsa dga libcaca webready gif heif pcap kms dbus pdfimort dhcpcd nss cups text vlc pdfimport minizip archive bidi chromecast dav1d libass mad mp3 mpeg srt x254 x265 xml git gpg i3wm"

GENTOO_MIRRORS="http://gentoo-mirror.alexxy.name/ http://gentoo.bloodhost.ru/"

GRUB_PLATFORMS="efi-64"

VIDEO_CARDS="intel i965"

LINGUAS="ru en"
L10N="en ru"

INPUT_DEVICES="synaptics libinput evdev"
Есть идеи, что это может быть?


Ответ на: комментарий от XMs
>>> Emerging (1 of 1) app-vim/youcompleteme-20130910::gentoo
 * youcompleteme-20130910.tar.xz BLAKE2B SHA512 size ;-) ...                         [ ok ]
>>> Unpacking source...
>>> Unpacking youcompleteme-20130910.tar.xz to /var/tmp/portage/app-vim/youcompleteme-20130910/work
>>> Source unpacked in /var/tmp/portage/app-vim/youcompleteme-20130910/work
>>> Preparing source in /var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910 ...
 * cmake-utils_src_prepare has not been run, please open a bug on https://bugs.gentoo.org/
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *    set( CMAKE_BUILD_TYPE Release )
>>> Working in BUILD_DIR: "/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp"
cmake --no-warn-unused-cli -C /var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DUSE_CLANG_COMPLETER=ON -DUSE_SYSTEM_LIBCLANG=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp/gentoo_toolchain.cmake  /var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp/gentoo_common_config.cmake
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Your C++ compiler supports C++11, compiling in that mode.
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.15", minimum required is "2.5") 
Using libclang to provide semantic completion for C/C++/ObjC
Using external libclang: TEMP-NOTFOUND
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=skylake -O2 -pipe
C++             -march=skylake -O2 -pipe -std=c++0x
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TEMP
    linked by target "ycm_core" in directory /var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp/ycm

-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp/CMakeFiles/CMakeOutput.log".
 * ERROR: app-vim/youcompleteme-20130910::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 3763:  Called cmake-utils_src_configure
 *   environment, line 1015:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=app-vim/youcompleteme-20130910::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-vim/youcompleteme-20130910::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-vim/youcompleteme-20130910/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-vim/youcompleteme-20130910/temp/environment'.
 * Working directory: '/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp'
 * S: '/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910'

>>> Failed to emerge app-vim/youcompleteme-20130910, Log file:

>>>  '/var/tmp/portage/app-vim/youcompleteme-20130910/temp/build.log'

 * Messages for package app-vim/youcompleteme-20130910:

 * ERROR: app-vim/youcompleteme-20130910::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 3763:  Called cmake-utils_src_configure
 *   environment, line 1015:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=app-vim/youcompleteme-20130910::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-vim/youcompleteme-20130910::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-vim/youcompleteme-20130910/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-vim/youcompleteme-20130910/temp/environment'.
 * Working directory: '/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910/cpp'
 * S: '/var/tmp/portage/app-vim/youcompleteme-20130910/work/youcompleteme-20130910'
towe
() автор топика
Ответ на: комментарий от XMs

Спасибо большое. Погуглил первую ошибку и наткнулся на это https://github.com/ycm-core/YouCompleteMe/issues/28 По итогу, проблема была в том, cmake искал libclang.so в /usr/lib/, а он был в /usr/lib/llvm/8/lib64, так что я просто сделал на него ссылку в /usr/lib, как рекомендовали на гитхабе, и всё заработало

towe
() автор топика
Ответ на: комментарий от towe

так что я просто сделал на него ссылку в /usr/lib, как рекомендовали на гитхабе, и всё заработало

Заведи баг на bugs.gentoo.org — всё-таки превращать систему в слаку с вручную созданными симлинками не стоит

XMs ★★★★★
()
Ответ на: комментарий от towe

Вроде бы всё правильно. Осталось ждать реакции мейнтейнеров

XMs ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.