Skip to contentSkip to conversation

stubs-32.h not found

DISCUSSION M. Gregory 2 participants 6 messages Feb 2, 2016 – Feb 12, 2016

lore
Share & tools
lore

M. Gregory

author
#0 lore raw

I am working with the Xen recipes and I getting an odd behavior. The build will sometimes fail compiling Xen. The failure is a result of the absence of stubs-32.h (see error below). If I run a bitbake -c clean xen and build xen again everything builds as expected. According to the logs the do_stubs task runs and stubs-64.h is present in the sysroot, so stubs-32.h should have been created by the do_stubs task. I checked the timestamps on the do_populate_sysroot task of glibc and it was run after do_stubs, which indicates a dependence problem. I thought that adding glibc to the DEPENDS would fix the problem, but it did not. Any ideas? -Machon

fatal error: gnu/stubs-32.h: No such file or directory

author
#1 lore raw
Quoted 11 lines · M. Gregory

I am working with the Xen recipes and I getting an odd behavior. The build will sometimes fail compiling Xen. The failure is a result of the absence of stubs-32.h (see error below). If I run a bitbake -c clean xen and build xen again everything builds as expected. According to the logs the do_stubs task runs and stubs-64.h is present in the sysroot, so stubs-32.h should have been created by the do_stubs task. I checked the timestamps on the do_populate_sysroot task of glibc and it was run after do_stubs, which indicates a dependence problem. I thought that adding glibc to the DEPENDS would fix the problem, but it did not. Any ideas? -Machon

Quoted 2 lines

fatal error: gnu/stubs-32.h: No such file or directory

So I read the Yocto manual and I understand why adding glibc to the DEPENDS does not work. Specifically, DEPENDS only ensures "all the dependencies listed have been built and have their contents in the appropriate sysroots before the recipe's configure task is executed." The do_stubs tasks running before configure. Adding the the line below seems to fix the problem. Is this the correct solution?

recipes-extended/xen/xen.inc +1 -0
index 5555ed3..192bbee 100644
@@ -783,6 +783,7 @@ do_stubs() {
 }
 
 addtask stubs after do_patch before do_configure
+do_stubs[depends] += "glibc:do_populate_sysroot"
 
 do_configure() {
 
#2 lore raw

I repro'd this with a fresh tree. Instead of the depends approach, I simply moved the step between do_configure and do_compile, which should be OK?

recipes-extended/xen/xen.inc +1 -1
index 5555ed3..d35bc3f 100644
@@ -782,7 +782,7 @@ do_stubs() {
     fi
 }
 
-addtask stubs after do_patch before do_configure
+addtask stubs after do_configure before do_compile
 
 do_configure() {
 
author
#3 lore raw
Quoted 9 lines · Chris Patterson

I repro'd this with a fresh tree. Instead of the depends approach, I simply moved the step between do_configure and do_compile, which should be OK?

recipes-extended/xen/xen.inc +0 -0
index 5555ed3..d35bc3f 100644

recipes-extended/xen/xen.inc do_stubs() { · line 787

Quoted 7 lines
recipes-extended/xen/xen.inc +1 -1
@@ -782,7 +782,7 @@ do_stubs() {
     fi
 }
 
-addtask stubs after do_patch before do_configure
+addtask stubs after do_configure before do_compile
 
 do_configure() {

yes.

author
#4 lore raw
Quoted 13 lines · M. Gregory
Quoted 12 lines · Chris Patterson

I repro'd this with a fresh tree. Instead of the depends approach, I simply moved the step between do_configure and do_compile, which should be OK?

recipes-extended/xen/xen.inc +0 -0
index 5555ed3..d35bc3f 100644
@@ -782,7 +782,7 @@ do_stubs() {
     fi
 }
 
Quoted 5 lines

recipes-extended/xen/xen.inc do_stubs() { · line 787

Quoted 4 lines
recipes-extended/xen/xen.inc +1 -1
-addtask stubs after do_patch before do_configure
+addtask stubs after do_configure before do_compile
 
 do_configure() {

yes.

Can you submit this as a patch?
-Machon

#5 lore raw

Sure thing. :)

Quoted 28 lines · M. Gregory
Quoted 13 lines · M. Gregory
Quoted 12 lines · Chris Patterson

I repro'd this with a fresh tree. Instead of the depends approach, I simply moved the step between do_configure and do_compile, which should be OK?

recipes-extended/xen/xen.inc +0 -0
index 5555ed3..d35bc3f 100644
@@ -782,7 +782,7 @@ do_stubs() {
     fi
 }
 
Quoted 5 lines

recipes-extended/xen/xen.inc do_stubs() { · line 787

Quoted 4 lines
recipes-extended/xen/xen.inc +1 -1
-addtask stubs after do_patch before do_configure
+addtask stubs after do_configure before do_compile
 
 do_configure() {

yes.

Can you submit this as a patch?
-Machon
--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization