[已解决]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起来速度快很多.

ProgramOutput sizeGNU ldGNU gold w/o threadsGNU gold w/threadslld w/o threadslld w/threads
ffmpeg dbg92 MiB1.72s1.16s1.01s0.60s0.35s
mysqld dbg154 MiB8.50s2.96s2.68s1.06s0.68s
clang dbg1.67 GiB104.03s34.18s23.49s14.82s5.28s
chromium dbg1.14 GiB209.05s [1]64.70s60.82s27.60s16.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) ...                                                                   

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值