我已经花了大约一个小时的时间,我开始觉得自己已经死了。
我首先从GitHub下载C1版本71.0.3578.98-2。我将tar.gz文件解压缩到我的主文件夹中。然后,使用构建指令的“任意Linux分发版”部分的说明。我按照说明添加了LLVM适合回购。 --我在/etc/apt/sources.list文件中添加了仿生(18.04)的指定行,并使用以下方法检索密钥:
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-get update这个输出这些错误如下所示:
E: The repository 'https:/dl.winehq.org/wine-builds/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://apt.llvm.org/bionic llvm-toolchain-bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 15CF4D18AF4F7421然后,我(虽然我知道这不管用)跑了:
sudo apt-get install clang-8 lld-8 llvm-8-dev python python3 ninja-build而且所有的LLVM包都无法安装。
这是我第一次从源头上构建经验,所以我知道不可避免地犯了一些令人讨厌的新手错误。
发布于 2018-12-30 22:29:57
首先,如果您不想从源代码构建,那么它们提供了已经为Ubuntu18.04构建的二进制文件:
有关建筑的说明可从以下网址获得:
这指定您可以构建LLVM 7,而不需要安装LLVM 8来构建Ubuntu仿生版(18.04)
建筑应尽可能简单,如:
sudo apt install packaging-dev python3 ninja-build
# Run from inside the clone of the repository
mkdir -p build/src
./get_package.py PACKAGE_TYPE_HERE build/src/debian
cd build/src
# Use dpkg-checkbuilddeps (from dpkg-dev) or mk-build-deps (from devscripts) to check for additional packages.
# If necessary, change the dependencies in debian/control to accommodate your environment.
# If necessary, modify AR, NM, CC, and CXX variables in debian/rules
debian/rules setup-local-src
dpkg-buildpackage -b -uchttps://askubuntu.com/questions/1105699
复制相似问题