Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852812 - Crossdev MIPSEL3 MUSL GCC stage2 - ld: final link failed: Value too large for defined data type
Summary: Crossdev MIPSEL3 MUSL GCC stage2 - ld: final link failed: Value too large for...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lfs-tracker
  Show dependency tree
 
Reported: 2022-06-17 17:24 UTC by immolo
Modified: 2024-02-06 03:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Failed Build Log (cross-mipsr5900el-unknown-linux-musl-gcc-stage2.log.xz,41.98 KB, application/x-xz)
2022-06-17 17:26 UTC, immolo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description immolo 2022-06-17 17:24:34 UTC
I think have I found a bug when cross compiling mipsel3 32bit MUSL in a x86_64 environment where the ld for the stage2 for gcc fails with the integer being too large.

I've confirmed this works inside a 32bit chroot on my amd64 machine and I have had someone using a PowerPC64 also report no issue. As a side not there is no issue at all when using GLIBC so this only exists with MUSL at the moment.

I've tried to find out as much as I can but as I'm reaching the limits of my knowledge of cross compiling I feel this would be best confirmed by the team here to rule out if I'm the issue or I've found a bug which no one else has run into.

Feel free to ask for more information or testing as I'll be more than help to help.

Reproducible: Always

Steps to Reproduce:
1.crossdev -s4 -t mipsr5900el-unknown-linux-musl
2.
3.
Actual Results:  
Please see attach build log.

Expected Results:  
Built a MUSL cross compiler.
Comment 1 immolo 2022-06-17 17:26:16 UTC
Created attachment 785990 [details]
Failed Build Log
Comment 2 immolo 2022-06-27 18:11:40 UTC
I've been looking further into this and this is now working on x86_64.

I'll do further tests to see if the way I was originally running this was exposing a bug in crossdev but for now this won't cause anyone issue so can be closed.