| Summary: | host-e2fsprogs: tune2fs incompatibility on older glibc version | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Ryan Barnett <ryan.barnett> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED WONTFIX | ||
| Severity: | normal | CC: | buildroot |
| Priority: | P5 | ||
| Version: | 2019.02.9 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Ryan Barnett
2020-03-02 21:00:01 UTC
Hi Ryan, I'm not sure we can do anything. Glibc guaranties only old binaries compatible with newer version of Glibc. If you build an application with newer glibc symbols than the version available in your host, it's not going to work. For example, linaro toolchains needs glibc >= 2.14 because of API changes to glibc’s memcpy API [1] I guess it's a similar problem here for Glibc 2.25... [1] https://releases.linaro.org/components/toolchain/binaries/latest-7/ Best regards, Romain Hi Romain, Thank you for the prompt reply. Based on what you said, in order to solve the problem buildroot would need to support specify a custom "host" toolchain which would be used to compile all of the host binaries? I'd imagine that would be outside of the scope of what buildroot is designed to do. Thanks, -Ryan (In reply to Ryan Barnett from comment #2) Hi Ryan, I would recommend to build your SDK from ubuntu 16.04 and deploy it to ubuntu 18.04 or later. It's far easier than building a host native toolchain ;) Best regards, Romain Unfortunately, this is not something that we can really solve. You have to build your SDK in a host that is equal or older to the host machines where the SDK will be used. https://stackoverflow.com/a/2858996/643208 has a possible solution, but it requires making ugly changing to the source code of packages. https://stackoverflow.com/a/52550158/643208 proposes to build your own glibc. Hm, https://github.com/wheybags/glibc_version_header seems interesting though, but it says that it doesn't work for C++, "If you want C++, you'll need to build libstdc++ with this enabled. That can be a little involved, but I'm working on a solution, to be available "soon"". pthread also might be causing problems, you must use -pthread and not -lpthread. So, this seems like a potential source of great pain :-/ |