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

Bug 598696

Summary: net-nds/openldap-2.4.38-r2 cross compile fails
Product: Gentoo Linux Reporter: James Bates <james.h.bates>
Component: Current packagesAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
armv7a-hardfloat-linux-gnueabi-emerge --info
patch to allow cross-compiling

Description James Bates 2016-11-01 17:49:32 UTC
Created attachment 452094 [details]
build.log

After installing cross-toolchain with crossdev, cross-emerge of net-nds/ldap:

[ebuild   R   ] net-nds/openldap-2.4.38-r2 to /usr/armv7a-hardfloat-linux-gnueabi/ USE="berkdb crypt ipv6 minimal ssl syslog tcpd -cxx -debug -experimental -gnutls -icu -iodbc -kerberos -odbc -overlays -perl -samba -sasl (-selinux) -slp -smbkrb5passwd" 

fails during configure, with the following error:

configure: error: crossing compiling: use --with-yielding_select=yes|no|manual

For completeness, I've added the build.log and emerge.info as attachments, although the error cause, and fix in this case seem trivial:

Adding the following, as suggested by the error message, to function multilib_src_configure() in the ebuild, solves the problem:

    if [ "${CHOST}" != "${CBUILD}" ]; then
        myconf+=( --with-yielding_select=yes )
    fi
Comment 1 James Bates 2016-11-01 17:50:36 UTC
Created attachment 452096 [details]
armv7a-hardfloat-linux-gnueabi-emerge --info
Comment 2 James Bates 2016-11-01 17:54:38 UTC
Created attachment 452098 [details, diff]
patch to allow cross-compiling
Comment 3 Jonas Stein gentoo-dev 2016-11-01 18:59:20 UTC
Thank you for the patch
Comment 4 SpanKY gentoo-dev 2016-11-10 04:56:15 UTC

*** This bug has been marked as a duplicate of bug 463966 ***