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
toolchain/binutils: fix broken build of binutils 2.34 on mips64 #3288
toolchain/binutils: fix broken build of binutils 2.34 on mips64 #3288
Conversation
Commit 53470bd ("toolchain/binutils: Add binutils 2.34") logs refreshed patches, but also adds a typo causing failed builds on mipsel64 platforms, including the malta subtarget. Update the patch to fix this. Fixes: 53470bd ("toolchain/binutils: Add binutils 2.34") Fixes: FS#3276 Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
openembedded has these: https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/binutils/binutils/0012-Detect-64-bit-MIPS-targets.patch?id=7a7667127625244aae2b1ff179e431fc9ad25737 Seems this is already done there. edit: actually...why don't we use their patch instead? It even has a description. |
Pretty sure that I used openembedded as template, LGTM. Thanks |
The openembedded patch is actually slightly different (le vs. be differences). Trying it out now. |
Still panics. Issue is different looks like/ |
You did, but it took me while to catch a small but lethal typo which crept into our version: Since this is clearly just a typo and does fix building, can we cherry-pick/merge this? Or did you want to make further updates to the patch set? I do think keeping the original email headers from the OE patches would be good for traceability/maintenance.
I didn't see any other differences. Could you highlight them? |
edit: note the ++ and -+ |
OK, I forgot I reviewed this, and actually think there's a bug in the OE version of the patch. The general pattern for switching to the mips64 default is to exchange the Our patch does this correctly and the first section of the OE patch does this, but the second OE patch section instead sets: It duplicates |
Thank you for the patch it was applied to master. |
Review/Distribution List: @hauke, @diizzyy (based on similar fixes and commits in the repo)
Compile tested: mips64-le-malta, master branch
Run tested: mips64-le-malta, master branch
Description:
Commit 53470bd ("toolchain/binutils: Add binutils 2.34") logs refreshed patches, but also added a typo causing failed builds on mipsel64 platforms, including the malta subtarget. Update the patch to fix this.
This also fixes FS#3276.
Thanks for your review and any feedback!