Bug 12715

Summary: cross compiler for 'mips64 + libn32' cannot work correctly inside SDK
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Chen Qi <Qi.Chen>
Component: devtools / tool chainAssignee: Unassigned <unassigned>
Status: RESOLVED OBSOLETE QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, raj.khem, randy.macleod, stephano
Version: 2.5   
Target Milestone: 5.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Chen Qi 2018-04-26 03:11:37 UTC
How to reproduce:
1. Add in local.conf
MACHINE = "qemumips64"
require conf/multilib.conf
MULTILIBS = "multilib:libn32"
DEFAULTTUNE_virtclass-multilib-libn32 = " mip64-n32"
MULTILIB_GLOBAL_VARIANTS_append = " libn32"
INHERIT += "testsdk"

2. bitbake core-image-minimal -c populate_sdk
3. bitbake core-image-minimal -c testsdk

The problem is that in the generated SDK, the cross compiler (CC and CXX) cannot work correctly.
Error message is like below:
.../libm.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Comment 1 Randy MacLeod 2023-10-24 14:24:54 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 2 Randy MacLeod 2026-01-29 16:12:44 UTC
MIPS is obsolete / tier-three.