Bug 467

Summary: Poky build fails on F14
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Joshua Lock - Disabled <josh>
Component: meta-yoctoAssignee: Joshua Lock - Disabled <josh>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, ke.yu, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Joshua Lock - Disabled 2010-10-14 10:34:15 UTC
GNU Make 3.82 includes fixes to the Makefile parser that reveal broken behaviour in some packages shipped in Poky, most notably eglibc and busybox.

It's possible to work around this by using BBCLASSEXTEND to build a make-native package, the resulting binary of which will be used by bitbake for any further tasks.

We should document this somewhere (and perhaps push a patch with the BBCLASSEXTEND change to make) for the 0.9 release and ensure it is fixed for 1.0
Comment 1 Richard Purdie 2010-10-14 12:47:19 UTC
Please sent a BBCLASSEXTEND patch for inclusion in 0.9 ASAP.
Comment 2 Joshua Lock - Disabled 2010-10-15 04:28:27 UTC
Workaround implemented with d036f97b6257ef901f9e4466716f9ddc96570e19:

"make: enable make-native
Fedora 14 ships with a version of make which doesn't work with the Makefiles shipped in our busybox and eglibc versions. Enable make native as a workaround."

Should we leave this bug open as a reminder for a "real fix"?
Comment 3 Richard Purdie 2010-10-21 15:49:39 UTC
Just to make things clear here, this means Fedora 14 users need to run "bitbake make-native" before building other bitbake targets. 

This is a workaround until all the Makefiles of the various projects we build can be fixed.
Comment 4 Joshua Lock - Disabled 2010-11-05 03:28:19 UTC
I have a patch to back-port eglibc's fixed Makefile here:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=josh/make-382&id=d36ed5b98911f0054ca76f0b2beb697acea5f080

However I'm inclined to suggest we should handle this by ensuring the problematic recipes are updated to releases with a fixed Makefile.
Comment 5 Joshua Lock - Disabled 2010-11-09 04:19:40 UTC
I'm preparing a tree which includes patches from upstream against our current version of eglibc and busybox.
Comment 6 Joshua Lock - Disabled 2010-11-09 06:11:22 UTC
Fixes for Busybox and Eglibc in http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=josh/make-382
Comment 7 Joshua Lock - Disabled 2010-11-10 03:36:42 UTC
I've merged my branch into master which enables a poky-image-minimal build to complete on Fedora 14.
Comment 8 Joshua Lock - Disabled 2010-11-10 04:33:48 UTC
I can confirm busybox and eglibc in master will build with make 3.82