Skip to content

Compilation on Archlinux fails #7426

@cleinias

Description

@cleinias
  1. The AUR package on Archlinux fails to install because it relies on an old version of protobuf
  2. I tried to compile Clementine from sources, but cmake configuration fails with the following errors:
$ cmake ../
-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:4 (cmake_policy):
  Policy CMP0053 may not be set to OLD behavior because this version of CMake
  no longer supports it.  The policy was introduced in CMake version 3.1.0,
  and use of NEW behavior is now required.

  Please either update your CMakeLists.txt files to conform to the new
  behavior or use an older version of CMake that still supports the old
  behavior.  Run cmake --help-policy CMP0053 for more information.


-- Found PkgConfig: /usr/bin/pkg-config (found version "2.5.1")
-- Found git: /usr/bin/git
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at cmake/Version.cmake:136 (message):
  git describe failed with code 128:
Call Stack (most recent call first):
  CMakeLists.txt:10 (include)


CMake Error at cmake/Version.cmake:141 (string):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:10 (include)


CMake Error at cmake/Version.cmake:145 (message):
  Failed to parse git revision string ''
Call Stack (most recent call first):
  CMakeLists.txt:10 (include)


-- Configuring incomplete, errors occurred!

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