On Sat, 26 Apr 2025 18:06:54 +0200
Dimitry Andric <d...@freebsd.org> wrote:

> In https://cgit.freebsd.org/src/commit/?id=2e47f35be5dc I committed a
> change to convert libllvm, libclang, and liblldb into private shared
> libraries. This means that tools like clang, lld, lldb, and more are
> now quite a bit smaller, as all the common functionality is located
> in those shared libraries.
> 
> Note that these shared libraries are not the same as upstream's, and
> are _not_ ABI compatible, which is why they are installed as private
> shared libraries. If you need ABI compatibility and/or the
> llvm-config tools, please use one of the devel/llvm ports.
> 
...
> Please let me know if you encounter any problems resulting due to this
> change, as I intend to MFC it. For example, I tried covering all
> incremental build scenarios, but I may have missed some corner case.
> 


It is dramatically increase configure time, and build time.

Before commit:

root@rimwksv:/usr/ports/net/ssdpd# /usr/bin/time -h make configure
...
-- Build files have been written to: /tmp/ports/usr/ports/net/ssdpd/work/.build
        3.03s real              1.80s user              1.28s sys


root@rimwksv:/usr/ports/net/ssdpd# /usr/bin/time -h cc -v
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git 
llvmorg-19.1.7-0-gcd708029e0b2)
Target: x86_64-unknown-freebsd14.3
Thread model: posix
InstalledDir: /usr/bin
        0.01s real              0.00s user              0.01s sys
root@rimwksv:/usr/ports/net/ssdpd# /usr/bin/time -h cc -v
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git 
llvmorg-19.1.7-0-gcd708029e0b2)
Target: x86_64-unknown-freebsd14.3
Thread model: posix
InstalledDir: /usr/bin
        0.01s real              0.00s user              0.00s sys
root@rimwksv:/usr/ports/net/ssdpd# /usr/bin/time -h cc -v
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git 
llvmorg-19.1.7-0-gcd708029e0b2)
Target: x86_64-unknown-freebsd14.3
Thread model: posix
InstalledDir: /usr/bin
        0.01s real              0.00s user              0.01s sys

Build world+kernell: ~13m



After:
root@rimwksv:/usr/ports/net/ssdpd# /usr/bin/time -h make configure
...
-- Build files have been written to: /tmp/ports/usr/ports/net/ssdpd/work/.build
        12.79s real             11.99s user             0.85s sys

root@rimwksv:/usr/ports/net/ssdpd# /usr/bin/time -h cc -v
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git 
llvmorg-19.1.7-0-gcd708029e0b2)
Target: x86_64-unknown-freebsd14.3
Thread model: posix
InstalledDir: /usr/bin
        0.16s real              0.15s user              0.00s sys
root@rimwksv:/usr/ports/net/ssdpd# /usr/bin/time -h cc -v
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git 
llvmorg-19.1.7-0-gcd708029e0b2)
Target: x86_64-unknown-freebsd14.3
Thread model: posix
InstalledDir: /usr/bin
        0.16s real              0.15s user              0.01s sys
root@rimwksv:/usr/ports/net/ssdpd# /usr/bin/time -h cc -v
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git 
llvmorg-19.1.7-0-gcd708029e0b2)
Target: x86_64-unknown-freebsd14.3
Thread model: posix
InstalledDir: /usr/bin
        0.16s real              0.14s user              0.02s sys

Build world+kernell: ~1h


Reply via email to