Re: git: 8d5a11cd0137 - main - src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob

2025-12-26 Thread Nuno Teixeira
> > *** [_libinstall] Error code 71
>
> You have to use the same options for installworld as for buildworld. I'm
> unsure who you can tell poudriere with -m src=/usr/src where it gets the
> options from. I would expect it respect src.conf?
>
> -Dimitry


I can confirm that using a correct src.conf in poudriere solved the error.

Thanks,


-- 
Nuno Teixeira
FreeBSD UNIX: Web:  https://FreeBSD.org


Re: git: 8d5a11cd0137 - main - src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob

2025-12-25 Thread Dimitry Andric
On 26 Dec 2025, at 00:55, Nuno Teixeira  wrote:
> 
> [At main ecb58f931d45d6]
> 
> After rebuilding system from scratch and install world successfully, 
> upgrading poudriere jail from same src failed (also did install a fresh jail 
> with same error):
> 
> # poudriere jail -u -j 16amd64
> or
> # poudriere jail -d -j 16amd64
> # poudriere jail -c -j 16amd64 -m src=/usr/src
> and
> # make -DBATCH_DELETE_OLD_FILES delete-old delete-old-libs
> # poudriere jail -c -j 16amd64 -m src=/usr/src
> 
> ```
> 
> ===> lib/clang/libllvm (install)
> install: libprivatellvm.so.19: No such file or directory
> --- _libinstall ---
> *** [_libinstall] Error code 71

You have to use the same options for installworld as for buildworld. I'm unsure 
who you can tell poudriere with -m src=/usr/src where it gets the options from. 
I would expect it respect src.conf?

-Dimitry




Re: git: 8d5a11cd0137 - main - src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob

2025-12-25 Thread Nuno Teixeira
[At main ecb58f931d45d6]

After rebuilding system from scratch and install world successfully,
upgrading poudriere jail from same src failed (also did install a fresh
jail with same error):

# poudriere jail -u -j 16amd64
or
# poudriere jail -d -j 16amd64
# poudriere jail -c -j 16amd64 -m src=/usr/src
and
# make -DBATCH_DELETE_OLD_FILES delete-old delete-old-libs
# poudriere jail -c -j 16amd64 -m src=/usr/src

```

===> lib/clang/libllvm (install)
install: libprivatellvm.so.19: No such file or directory
--- _libinstall ---
*** [_libinstall] Error code 71

make[6]: stopped making "install" in /usr/src/lib/clang/libllvm
make[6]: 1 error

make[6]: stopped making "install" in /usr/src/lib/clang/libllvm
--- realinstall_subdir_lib/clang/libllvm ---

make[5]: stopped making "install" in /usr/src/lib/clang
--- realinstall_subdir_lib/clang ---

make[4]: stopped making "install" in /usr/src/lib
--- realinstall_subdir_lib ---

make[3]: stopped making "install" in /usr/src
--- reinstall ---

make[2]: stopped making "reinstall" in /usr/src
   14.21 real11.03 user10.58 sys
--- installworld ---
*** [installworld] Error code 2

make[1]: stopped making "installworld" in /usr/src
make[1]: 1 error

make[1]: stopped making "installworld" in /usr/src
--- installworld ---

make: stopped making "installworld" in /usr/src
[00:01:32] Error: /usr/local/share/poudriere/jail.sh:installworld:12:Failed
to 'make installworld'
```

I will rebuild same word without WITH_LLVM_LINK_STATIC_LIBRARIES and see
how it goes.

Thanks,

Nuno Teixeira  escreveu (quarta, 24/12/2025 à(s)
18:45):

> Hello Dimitry,
>
> Just a quick question about users that run current with speed in their
> minds,
> should WITH_LLVM_LINK_STATIC_LIBRARIES be added to /etc/src.conf too?
>
> WITH_MALLOC_PRODUCTION=yes
> WITHOUT_LLVM_ASSERTIONS=yes
> WITHOUT_PTHREADS_ASSERTIONS=yes
> WITHOUT_ASSERT_DEBUG=yes
>
> Thanks!
>
> Dimitry Andric  escreveu (terça, 23/12/2025 à(s) 21:04):
>
>> The branch main has been updated by dim:
>>
>> URL:
>> https://cgit.FreeBSD.org/src/commit/?id=8d5a11cd0137d3ad70f6b06e063ea91a776d510a
>>
>> commit 8d5a11cd0137d3ad70f6b06e063ea91a776d510a
>> Author: Dimitry Andric 
>> AuthorDate: 2025-06-18 10:06:25 +
>> Commit: Dimitry Andric 
>> CommitDate: 2025-12-23 21:01:40 +
>>
>> src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob
>
>
>
> --
> Nuno Teixeira
> FreeBSD UNIX: Web:  https://FreeBSD.org
>


-- 
Nuno Teixeira
FreeBSD UNIX: Web:  https://FreeBSD.org


Re: git: 8d5a11cd0137 - main - src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob

2025-12-24 Thread Nuno Teixeira
Hello Dimitry,

Just a quick question about users that run current with speed in their
minds,
should WITH_LLVM_LINK_STATIC_LIBRARIES be added to /etc/src.conf too?

WITH_MALLOC_PRODUCTION=yes
WITHOUT_LLVM_ASSERTIONS=yes
WITHOUT_PTHREADS_ASSERTIONS=yes
WITHOUT_ASSERT_DEBUG=yes

Thanks!

Dimitry Andric  escreveu (terça, 23/12/2025 à(s) 21:04):

> The branch main has been updated by dim:
>
> URL:
> https://cgit.FreeBSD.org/src/commit/?id=8d5a11cd0137d3ad70f6b06e063ea91a776d510a
>
> commit 8d5a11cd0137d3ad70f6b06e063ea91a776d510a
> Author: Dimitry Andric 
> AuthorDate: 2025-06-18 10:06:25 +
> Commit: Dimitry Andric 
> CommitDate: 2025-12-23 21:01:40 +
>
> src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob



-- 
Nuno Teixeira
FreeBSD UNIX: Web:  https://FreeBSD.org


Re: git: 8d5a11cd0137 - main - src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob

2025-12-23 Thread Dimitry Andric
On 23 Dec 2025, at 22:04, Dimitry Andric  wrote:
> 
> The branch main has been updated by dim:
> 
> URL: 
> https://cgit.FreeBSD.org/src/commit/?id=8d5a11cd0137d3ad70f6b06e063ea91a776d510a
> 
> commit 8d5a11cd0137d3ad70f6b06e063ea91a776d510a
> Author: Dimitry Andric 
> AuthorDate: 2025-06-18 10:06:25 +
> Commit: Dimitry Andric 
> CommitDate: 2025-12-23 21:01:40 +
> 
>src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob
> 
>In commit 2e47f35be5dc libllvm, libclang and liblldb were converted into
>private shared libraries. This allowed clang, lld, lldb, and other llvm
>tools to be linked against these shared libraries, which makes them
>smaller and avoids duplication.
> 
>However, this also comes at the cost of some performance, since the
>dynamic libraries are quite large, and contain lots of long symbols
>(mangled C++ identifiers).
> 
>Add a WITH_LLVM_LINK_STATIC_LIBRARIES build knob that can be used to go
>back to the previous behavior: libllvm, libclang and liblldb are built
>as internal static libraries, i.e. only available during buildworld, and
>fully linked into the various executables such as clang, lld, etc.
> 
>PR: 287447
>Reviewed by:emaste
>MFC after:  1 week
>Differential Revision: https://reviews.freebsd.org/D50956

NOTE: toggling this option requires a full clean build, at least until
https://reviews.freebsd.org/D52011 lands.

-Dimitry