-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
The executable files in the sysroot/sbin and sysroot/usr/bin directories of the multilib toolchain are random #1270
Comments
Are you saying that this issue is specific to the use of |
The confusion caused by |
Any update on this issue? |
Do you know if any other multi-arch toolchain (Arm perhaps?) face this issue and deal with it that way? |
Perhaps this issue is what this project is attempting to address?
Seems to me that this issue is one that probably needs to be raised/logged and dealt with in the relevant upstream project(s?) - e.g. gcc, binutils, gdb - where ongoing maintenance (including RISC-V related changes) is now done rather than here? |
I tried that repo but hit build problems:
I'm not sure what upstream projects and build scripts construct the sysroot but it's not the I think that the relevant projects/build scripts would need to be identified and this issue logged upstream against them. |
I tried crosstool-NG to see if that did something different with the organization of the multilib sysroot but it doesn't - presumably because whatever is done in that context is in the upstream gcc et. al project build scripts/makefiles? |
Problem Description
When building a multilib toolchain, there are multiple copies of libraries distributed in the sysroot/libxxx directory, but only one copy of executable files in the sysroot/sbin and sysroot/usr/bin directories. According to the rules for compiling glibc in the Makefile, glibc for different arch and abi combinations can be compiled in parallel. Therefore, the arch and abi of the executable files in sysroot/sbin and sysroot/usr/bin depend on the last glibc installed, it will overwrite the previously installed glibc executable files.
Potential Impact
When using a pre-built multilib toolchain and Yocto to build a Linux distribution, there may be check errors or program runtime errors due to ABI inconsistencies.
The text was updated successfully, but these errors were encountered: