From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 86D31E0055C for ; Wed, 20 Nov 2013 05:46:33 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.5) with ESMTP id rAKDkUmh007681 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 20 Nov 2013 05:46:30 -0800 (PST) Received: from [128.224.146.67] (128.224.146.67) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.2.347.0; Wed, 20 Nov 2013 05:46:30 -0800 Message-ID: <528CBD30.9070904@windriver.com> Date: Wed, 20 Nov 2013 08:46:24 -0500 From: Bruce Ashfield User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Zhenhua Luo , References: <1384943915-4695-1-git-send-email-zhenhua.luo@freescale.com> In-Reply-To: <1384943915-4695-1-git-send-email-zhenhua.luo@freescale.com> Cc: b40290@freescale.com, b40527@freescale.com Subject: Re: [meta-cloud-services][PATCH v2] erlang: skip the host library path check to fix cross-compile issue X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Nov 2013 13:46:36 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 13-11-20 05:38 AM, Zhenhua Luo wrote: > Below is the error message: > ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. > Rerun configure task after fixing this. In your previous revision, you also had: EXTRA_OECONF_append_powerpc = " --disable-smp-support --disable-hipe" I had asked for it to be a separate patch. Is that part no longer required for your builds ? Bruce > > Signed-off-by: Zhenhua Luo > --- > .../erlang/erlang-fix-build-issue-in-Yocto.patch | 25 ++++++++++++++++++++++ > .../recipes-devtools/erlang/erlang_R15B.bb | 1 + > 2 files changed, 26 insertions(+) > create mode 100644 meta-openstack/recipes-devtools/erlang/erlang/erlang-fix-build-issue-in-Yocto.patch > > diff --git a/meta-openstack/recipes-devtools/erlang/erlang/erlang-fix-build-issue-in-Yocto.patch b/meta-openstack/recipes-devtools/erlang/erlang/erlang-fix-build-issue-in-Yocto.patch > new file mode 100644 > index 0000000..2d4b7b5 > --- /dev/null > +++ b/meta-openstack/recipes-devtools/erlang/erlang/erlang-fix-build-issue-in-Yocto.patch > @@ -0,0 +1,25 @@ > +Upstream-Status: Inappropriate [The fix is specific to Yocto build env] > + > +Skip host library path check to fix following Yocto insane check issue: > +ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. > +Rerun configure task after fixing this. > + > +Signed-off-by: Zhenhua Luo > + > +--- otp_src_R15B/erts/configure.in.orig 2011-12-14 04:22:11.000000000 -0600 > ++++ otp_src_R15B/erts/configure.in 2013-11-19 04:15:33.694334610 -0600 > +@@ -1469,10 +1469,10 @@ > + # ln -s libdlpi.so.1 $try_dlpi_lib/libdlpi.so > + ]) > + fi > +- LDFLAGS="-L$try_dlpi_lib -R$try_dlpi_lib $LDFLAGS" > +- unset -v try_dlpi_lib > +- AC_MSG_NOTICE([Extending the search to include /lib]) > +- AC_CHECK_LIB(dlpi, dlpi_open) > ++# LDFLAGS="-L$try_dlpi_lib -R$try_dlpi_lib $LDFLAGS" > ++# unset -v try_dlpi_lib > ++# AC_MSG_NOTICE([Extending the search to include /lib]) > ++# AC_CHECK_LIB(dlpi, dlpi_open) > + if test x"$ac_cv_lib_dlpi_dlpi_open" = x"no"; then > + LDFLAGS="$save_ldflags" > + fi > diff --git a/meta-openstack/recipes-devtools/erlang/erlang_R15B.bb b/meta-openstack/recipes-devtools/erlang/erlang_R15B.bb > index 68d144b..d7fd310 100644 > --- a/meta-openstack/recipes-devtools/erlang/erlang_R15B.bb > +++ b/meta-openstack/recipes-devtools/erlang/erlang_R15B.bb > @@ -55,5 +55,6 @@ FILES_${PN}-staticdev += "${libdir}/*/*/*/*.a ${libdir}/*/*/*/*/*.a ${libdir}/*/ > > FILES_${PN}-libs-dbg += " ${libdir}/erlang/*/.debug ${libdir}/erlang/*/*/.debug ${libdir}/erlang/*/*/*/.debug ${libdir}/erlang/*/*/*/*/.debug ${libdir}/erlang/*/*/*/*/*/.debug " > > +SRC_URI += "file://erlang-fix-build-issue-in-Yocto.patch" > SRC_URI[md5sum] = "dd6c2a4807551b4a8a536067bde31d73" > SRC_URI[sha256sum] = "5bc34fc34fc890f84bae7ff1f7c81fbec2c9aa28a0ef51a57d7a8192204d8aa2" >