Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 299346

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 systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ralph Sennhauser (RETIRED) gentoo-dev 2010-01-02 13:13:24 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-01-29 05:10:03 UTC
Please report this issue upstream.
Comment 2 Ralph Sennhauser (RETIRED) gentoo-dev 2010-02-01 17:37:00 UTC
(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.
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2010-02-11 11:28:54 UTC
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.
Comment 4 SpanKY gentoo-dev 2010-03-07 16:29:22 UTC
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 ***