-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meson: fix build on NixOS #4428
Conversation
Looks like this may have broken the other builds. :/ |
Even with this patch it's still failing when using tool-muticall (which is my preference since I understand it reduces the output size)
|
This does succeed without tool-multicall in a nix build. Looking at the output it's only 6.9MB, so if we need to build with separate binaries I'm fine with that. |
no, I have a plan to fix and cover all cases, no doubt :-) |
Fixes: lxc#4427 Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
ec948ad
to
4be1c12
Compare
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Testsuite passed |
1 similar comment
Testsuite passed |
It was reported recently that on NixOS LXC fails to build with the following errors:
at the same time everything works just fine on Ubuntu 20/22.
Let's workaround this for now by using
link_whole
instead oflink_with
, which means that we are explicitly asking all symbols to be linked (independent from if they are used or not). It's not a big deal, as this two binaries are big anyways. It's in my TODO to refactor all this build mess, but it's just too hard to make it at once and it requires a lot of changes and code reshuffling.It's still interesting what's the difference between NixOS and Ubuntu in that regard. From what I found during debugging is that meson on NixOS (version 1.3.2) generates dependency files differently from how meason on Ubuntu does (version 0.61.2). Likely there is a problem, but it's a matter of further investigation.
Fixes: #4427