Fails to detect libclang on ubuntu
I am using Ubuntu 21.04 and I am trying to build the latest Gnome via jhbuild. It fails to detect libclang although it is installed. This seems to be a known issue from what I see in the old bugzilla issue and in the sysdeps modules file, but since there is no issue currently open for it on Gitlab, I am reporting it here again.
Below is the relevant output from the tools that show the problem. The sysdeps check attempts to install libclang but cannot resolve the dependency. It should determine that libclang-12-dev or libclang-dev needs to be installed (which are both installed on my system but fails to do that).
jhbuild sysdeps --install:
I: Installing dependencies on system: libclang
I: Using apt-file to search for providers; this may be extremely slow. Please wait. Patience!
I: No native package found for libclang (clang-c/Index.h)
I: Nothing to install
apt-file search clang-c/Index.h:
libclang-11-dev: /usr/lib/llvm-11/include/clang-c/Index.h
libclang-12-dev: /usr/lib/llvm-12/include/clang-c/Index.h
libclang-9-dev: /usr/lib/llvm-9/include/clang-c/Index.h
jhbuild build:
Required packages:
System installed packages which are too old:
(none)
No matching system package installed:
libclang
jhbuild build: Required system dependencies not installed. Install using the command 'jhbuild sysdeps --install' or to ignore system dependencies use command-line option --nodeps
apt-cache policy libclang-12-dev:
libclang-12-dev:
Installed: 1:12.0.0-1ubuntu1
Candidate: 1:12.0.0-1ubuntu1
Version table:
*** 1:12.0.0-1ubuntu1 500
500 http://at.archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
100 /var/lib/dpkg/status