| Summary: | sys-devel/binutils-config: should add LDPATH to env.d for cross binutils | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Ralph Sennhauser (RETIRED) <sera> |
| Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Please report this issue upstream. (In reply to comment #1) > Please report this issue upstream. > Could you please elaborate why you think it's an upstream issue and whom do you mean by upstream? Gentoo on purpose did not choose the default path( Gentoo: /usr/armv4tl-softfloat-linux-gnueabi/lib ). Cheers. Please explain why this entry is added to ld.so.conf for the host compiler but not for others and why this is supposed to be like that. Reopening for this purpose. Still thinking this is a Gentoo bug. Cheers. target libs have no business being in host ld.so.conf. unfortunately you're confusing CHOST with CTARGET. not a bug in binutils-config *** This bug has been marked as a duplicate of bug 182601 *** |
Using reconcilio, a revdep-rebuild alternative, results in cross gcc being reported as broken. Output: Broken packages: * cross-armv4tl-softfloat-linux-gnueabi/gcc-4.3.4::installed /usr/lib64/gcc/armv4tl-softfloat-linux-gnueabi/4.3.4/libgcc_s.so.1 (requires libc.so.6) /usr/lib64/gcc/armv4tl-softfloat-linux-gnueabi/4.3.4/libstdc++.so.6.0.10 (requires libc.so.6 libm.so.6) Remarkably revdep-rebuild does not complain where it probably should. Might be a bug as well. Adding /usr/armv4tl-softfloat-linux-gnueabi/lib to /etc/ld.so.conf fixes this issue. To make it permanent I added /etc/env.d/05binutils-${CTARGET} for each cross compiler containing LDPATH=/usr/${CTARGET}/lib. I have chosen this layout in analogy to the one of gcc-config and 05gcc-${CTARGET} files. The following comment in binutils-config seems to be relevant here: # hmm, `ld` has this in SEARCH_DIR(), but ld.so does not ... Then adding the above entry for the host system to 05binutils. Reproducible: Always Steps to Reproduce: 1. Build a cross compiler similarly as described in http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO 2. run reconcilio