Bug 13737

Summary: race in glibc makefile
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: coreAssignee: Nathan Rossi <nathan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 3.0   
Target Milestone: 3.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2020-01-15 12:52:54 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/52/builds/1439

| /home/pokybuild/yocto-worker/qemux86-world/build/build/tmp/hosttools/install -c -m 644 /home/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-glibc-testsuite/2.30-r0/build-i686-pokymllib32-linux/gnu/lib-names-32.h /home/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-glibc-testsuite/2.30-r0/image/usr/include/gnu/lib-names-32.h
| make -f /home/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-glibc-testsuite/2.30-r0/build-i686-pokymllib32-linux/elf/librtld.mk -f rtld-Rules
| make[2]: *** No rule to make target '/home/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-glibc-testsuite/2.30-', needed by '/home/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-glibc-testsuite/2.30-r0/build-i686-pokymllib32-linux/elf/pldd.o'.  Stop.
| make[2]: *** Waiting for unfinished jobs....
| make[3]: Entering directory '/home/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-glibc-testsuite/2.30-r0/git/elf'
| make subdir=csu -C ../csu ..=../ objdir=/home/pokybuild/yocto-worker/qemux86-world/build/build/tmp/work/x86-pokymllib32-linux/lib32-glibc-testsuite/2.30-r0/build-i686-pokymllib32-linux -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-sysdep.os rtld-check_fds.os rtld-errno.os rtld-divdi3.os'
Comment 1 Nathan Rossi 2020-02-14 06:07:48 UTC
The issue at least from the log appears to be related to the do_install task. This task does not need to be run (and probably does not work correctly anyway) for the glibc-testsuite recipe. I have sent out a patch to oe-core to remove the task, such that the recipe is similar to the binutils-cross-testsuite recipe.

https://patchwork.openembedded.org/patch/170025/

Also I noticed that this recipe is included in world builds, which is unnecessary, additional patch sent to exclude it (since it is a target recipe vs binutils-cross-testsuite being cross).

https://patchwork.openembedded.org/patch/170026/
Comment 2 Richard Purdie 2020-02-14 15:01:40 UTC
Well spotted, thanks Nathan!