stubs-32.h not found
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
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 thedo_stubstask runs andstubs-64.his present in the sysroot, sostubs-32.hshould have been created by thedo_stubstask. I checked the timestamps on thedo_populate_sysroottask of glibc and it was run afterdo_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
@@ -783,6 +783,7 @@ do_stubs() { } addtask stubs after do_patch before do_configure +do_stubs[depends] += "glibc:do_populate_sysroot" do_configure() {
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
@@ -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() {
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_configureanddo_compile, which should be OK?recipes-extended/xen/xen.inc +0
-0
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.
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_configureanddo_compile, which should be OK?recipes-extended/xen/xen.inc +0
-0@@ -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
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_configureanddo_compile, which should be OK?recipes-extended/xen/xen.inc +0
-0@@ -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