无法编译 Mesa,x.org

Can´t compile Mesa, x.org

我想在我的新操作系统上安装 X window。我用 Linux 内核和 grub 制作了我的操作系统。我的测试程序 /sbin/init 工作正常。我想在我的新操作系统上安装 x.org(window 管理器)。 X.org 使用 Mesa Library(图形库)。已安装所有依赖项,但编译 Mesa 库失败:

./配置输出

https://pastebin.com/ikPeuvBF

./configure: line 6973: External.*some_variable: command not found
llvm-config: error: libLLVM-6.0.so is missing

输出

https://pastebin.com/hpakgEni

它说我没有 libLLVMm。这不是真的:

root@Ubuntu-desktop:/usr/lib/llvm-3.9# ls -la
total 56
drwxr-xr-x   8 root root  4096 jun 16 15:40 .
drwxr-xr-x 165 root root 20480 jun 16 17:03 ..
drwxr-xr-x   2 root root  4096 jun 16 15:40 bin
drwxr-xr-x   2 root root  4096 jun 16 15:40 build
lrwxrwxrwx   1 root root    14 jul 26  2017 cmake -> lib/cmake/llvm
drwxr-xr-x   3 root root  4096 jun 16 15:40 include
drwxr-xr-x   5 root root 12288 jun 16 15:40 lib
drwxr-xr-x   2 root root  4096 jun 16 15:40 libexec
drwxr-xr-x   7 root root  4096 jun 16 15:40 share
root@Ubuntu-desktop:/usr/lib/llvm-3.9# sudo apt install llvm-3.9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
llvm-3.9 is already the newest version.
The following packages were automatically installed and are no longer required:
  libqpdf13 linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic
  linux-image-4.4.0-31-generic linux-image-extra-4.4.0-31-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

谁能告诉我为什么会这样。谢谢!

Knud Larsen 在评论中说的是答案:

libLLVM-6.0.so 由包 llvm-6.0-dev 提供:仅适用于 Ubuntu 18.04。 IE。如果要构建 "latest version of mesa",则需要 "latest OS version"。