本文主要是介绍[已解决]WSL+ubuntu18+kivy+Buildozer打包时 [WARNING]: lld not found 解决办法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
打包时遇到这个问题,其实是比较懵逼的. 网上收不到对应的帖子
[WARNING]: lld not found, linking without it. Consider installing lld if linker errors occur. |
那么lld是啥呢
在https://lld.llvm.org/ 官网, LLD is a linker from the LLVM project that is a drop-in replacement for system linkers and runs much faster than them. It also provides features that are useful for toolchain developers.
大致意思就是用lld build起来速度快很多.
Program | Output size | GNU ld | GNU gold w/o threads | GNU gold w/threads | lld w/o threads | lld w/threads |
ffmpeg dbg | 92 MiB | 1.72s | 1.16s | 1.01s | 0.60s | 0.35s |
mysqld dbg | 154 MiB | 8.50s | 2.96s | 2.68s | 1.06s | 0.68s |
clang dbg | 1.67 GiB | 104.03s | 34.18s | 23.49s | 14.82s | 5.28s |
chromium dbg | 1.14 GiB | 209.05s [1] | 64.70s | 60.82s | 27.60s | 16.70s |
突然想试试能否用apt install lld一下. 结果真可以.如下:
安装过程中可以看出lld是和llvm是一起的
lijl@SH-D144:/mnt/c/Users/SH-D144$ apt install lld Unpacking llvm-6.0-runtime (1:6.0-1ubuntu2) ... Selecting previously unselected package llvm-6.0. Preparing to unpack .../3-llvm-6.0_1%3a6.0-1ubuntu2_amd64.deb ... Unpacking llvm-6.0 (1:6.0-1ubuntu2) ... Selecting previously unselected package llvm-6.0-dev. Preparing to unpack .../4-llvm-6.0-dev_1%3a6.0-1ubuntu2_amd64.deb ... Unpacking llvm-6.0-dev (1:6.0-1ubuntu2) ... Selecting previously unselected package lld-6.0. Preparing to unpack .../5-lld-6.0_1%3a6.0-1ubuntu2_amd64.deb ... Unpacking lld-6.0 (1:6.0-1ubuntu2) ... Selecting previously unselected package lld. Preparing to unpack .../6-lld_1%3a6.0-41~exp5~ubuntu1_amd64.deb ... Unpacking lld (1:6.0-41~exp5~ubuntu1) ... Setting up binfmt-support (2.1.8-2) ... Created symlink /etc/systemd/system/multi-user.target.wants/binfmt-support.service → /lib/systemd/system/binfmt-support.service. invoke-rc.d: could not determine current runlevel Setting up libllvm6.0:amd64 (1:6.0-1ubuntu2) ... Setting up llvm-6.0-runtime (1:6.0-1ubuntu2) ... Setting up llvm-6.0 (1:6.0-1ubuntu2) ... Setting up llvm-6.0-dev (1:6.0-1ubuntu2) ... Setting up lld-6.0 (1:6.0-1ubuntu2) ... Setting up lld (1:6.0-41~exp5~ubuntu1) ... Processing triggers for ureadahead (0.100.0-21) ... Processing triggers for libc-bin (2.27-3ubuntu1.4) ... Processing triggers for systemd (237-3ubuntu10.44) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
这篇关于[已解决]WSL+ubuntu18+kivy+Buildozer打包时 [WARNING]: lld not found 解决办法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!