fabalthazar n00b
Joined: 26 May 2015 Posts: 28 Location: France
|
Posted: Fri Nov 15, 2024 2:53 pm Post subject: Building for an outdated x86_64 Linux target machine |
|
|
Hi,
I am designing a C++ app to run on an outdated embedded Linux system (GCC 9, binutils 2.34, kernel 5.4, glibc 2.31) that I cannot change.
The app built with the up-to-date toolchain from my host PC refuses to run on the target because of Glibc versions incompatibilities.
My first approach was to generate a toolchain with crossdev with fixed outdated tools versions. This works quite good except the toolchain refuses to be multilib and I would like it to be.
Code: |
$ sudo crossdev --portage "--buildpkg" --binutils "=2.34-r2" --gcc "=10.5.0" --kernel "=5.4-r2" --libc "=2.31-r7" --target x86_64-yocto231-linux-gnu
|
Another approach was to install specific tools in dedicated slots but glibc is not slotted...
Any advice for setting up such an "isolated" toolchain or dev environment?
Thanks! |
|