Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Why does cquery build download clang 7 when it is already installed? #879

Open
@richardxday

Description

Hi,

This is pretty frustrating to be honest, why is the build process downloading a compiler when it is already installed?

Ubuntu 19.04

The issue:
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=release -DCMAKE_EXPORT_COMPILE_COMMANDS=YES
-- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using downloaded Clang
-- Downloading Clang 7.0.0 (https://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz) ...

But clang-7 is already installed:
$ apt policy clang-7
clang-7:
Installed: 1:7.0.1-8
Candidate: 1:7.0.1-8
Version table:
*** 1:7.0.1-8 500
500 http://gb.archive.ubuntu.com/ubuntu disco/universe amd64 Packages
100 /var/lib/dpkg/status

Why can't the build process just use the installed version?

Thanks,
Richard.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions