Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598696 - net-nds/openldap-2.4.38-r2 cross compile fails
Summary: net-nds/openldap-2.4.38-r2 cross compile fails
Status: RESOLVED DUPLICATE of bug 463966
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-11-01 17:49 UTC by James Bates
Modified: 2016-11-10 04:56 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,22.22 KB, text/x-log)
2016-11-01 17:49 UTC, James Bates
Details
armv7a-hardfloat-linux-gnueabi-emerge --info (emerge.info,4.65 KB, text/plain)
2016-11-01 17:50 UTC, James Bates
Details
patch to allow cross-compiling (openldap-2.4.38-r2.ebuild-crosscompile-patch,274 bytes, patch)
2016-11-01 17:54 UTC, James Bates
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***