-
Notifications
You must be signed in to change notification settings - Fork 65
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
Try to link against an older glibc for releases #414
Comments
Removing from the 1.0 project. I've had another look at it and it is really non-trivial (to me) to build against an older glibc within the Guix container. |
As commented in this Merged PR #140 (comment) , I will try to get hands on it by next week. It doesn't see that trivial to fix. Thanks! |
I've added details about this issue to the OP. Since it's been hit (as expected..) by a couple users already i've added troubleshooting instructions (basically you have to build from source).
Good to hear. A PR for this would be very welcome. But note i do not want to compromise on reproducible and bootstrappable builds, so it has to happen within the Guix toolchain. |
Hi, actually building from source doesn't always work either, I have Ubuntu 20.04 with glib 2.31 and I can build from source, but somehow the gui crash at startup with the following error:
I could reproduce the issue on another machine that runs the same system. It seems that the problem appears when I first build lianad and liana-cli, then build the gui. If I already built the daemon I need to Best I could track so far is that it was an issue with |
Hi @darosior, I have tried to for a while to change the GCC version. I success to install the correct version but it still install the new one and I think is because of Rust packages dependences. I will explain: As you probably know, the different GCC versions uses different glibc versions too. In this line it tries to get the version 10.3.0 and as we can see here we have many other possibilities to get different versions. To reach your goal we need at least the version 9.5.0. So I added [email protected] to the line commented before... Here I saw that you tried to get directly the Glibc version directly and I'm not sure it worked. At the time writing this I noticed that there are another versions... Searcher: https://packages.guix.gnu.org/search/ I'm trying this time to time. Hope all I have written here, helps to push this a bit forward. Regards :) |
look like #523 |
Discussed this with someone much more knowledgeable about Guix and it is indeed non-trivial, for what it's worth. |
any way to link against a static glibc? |
When I helped Rana to have binaries I tried also on that time to build Liana. CLI worked fine, but not GUI. For some reason it needed libc for a rust package as far I remember... Please, take a look what I did just in case you want to try (Is not using Guix as needed here) but is an approach to create the binaries. Hope this help some how to push this a bit forward. Regards |
The release build for Linux is a reproducible and bootstrappable one using Guix (see #140 and the documentation at
contrib/reproducible/
).The glibc this build links against is Guix's
gcc-toolchain
which ships Glibc 2.33. Unfortunately, it's quite recent (February 2021) and some operating systems still only provide older glibc. See https://sourceware.org/glibc/wiki/Release for a table of glibc version per distribution version. I'd like to at least get Ubuntu Focal (Glibc 2.31) and Debian 10 (Glibc 2.28).Unfortunately building against an older Glibc within the Guix container is non-trivial (to me). Another approach could be to link against musl (see #255).
The quickest solution for anyone running into an issue of the type:
Is to compile the project from source. There are instruction at
doc/BUILD.md
on how to do this reasonably. But you can also just use the simple (not really decent) way of installing the Rust toolchain from their website and build Liana like so (example for v1):The text was updated successfully, but these errors were encountered: