On 07/17/2015 12:45 PM, Khem Raj wrote:
On Mon, Jul 13, 2015 at 3:02 AM, Robert Yang <liezhi.y...@windriver.com> wrote:
The current warning is:
WARNING: glibc: unable to generate header for spray.x

Which is easier to debug than:
WARNING: unable to generate header for spray.x

And remove the file before generate it again to fix the warning when
recompile:
file `bootparam_prot.h' already exists and may be overwritten
WARNING: unable to generate header for bootparam_prot.x
file `nlm_prot.h' already exists and may be overwritten
WARNING: unable to generate header for nlm_prot.x
[snip]

Signed-off-by: Robert Yang <liezhi.y...@windriver.com>
---
  meta/recipes-core/glibc/glibc_2.21.bb |    3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/glibc/glibc_2.21.bb 
b/meta/recipes-core/glibc/glibc_2.21.bb
index 8197c29..30f1937 100644
--- a/meta/recipes-core/glibc/glibc_2.21.bb
+++ b/meta/recipes-core/glibc/glibc_2.21.bb
@@ -135,7 +135,8 @@ do_compile () {
                 cd ${S}/sunrpc/rpcsvc
                 for r in ${rpcsvc}; do
                         h=`echo $r|sed -e's,\.x$,.h,'`
-                       rpcgen -h $r -o $h || bbwarn "unable to generate header for 
$r"
+                       rm -f $h

it quashes the warning but doesnt fix underlying problem. this doesnt
seem to be right thing to do in cross builds. We use cross-rpcgen to
generate these files so this whole rpcgen run should be removed
instead. Please test such a patch and correct it.


Hi Khem,

I will be on vacation the whole next week, will do when I come back.

// Robert

+                       rpcgen -h $r -o $h || bbwarn "${PN}: unable to generate 
header for $r"
                 done
         )
         echo "Adjust ldd script"
--
1.7.9.5

--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to