<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2790</bug_id>
          
          <creation_ts>2012-07-18 12:17:08 +0000</creation_ts>
          <short_desc>unpatched make 3.82 breaks eglibc-initial</short_desc>
          <delta_ts>2013-02-08 17:13:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/commit/?id=c8b81e372578b1964bca4aa26d1085162115a2b0</bug_file_loc>
          <status_whiteboard>8 Feb  2013: Resolved</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>radu.moisan</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23211</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-07-18 12:17:08 +0000</bug_when>
    <thetext>This is rather odd.  Build host is Debian Unstable (circa beginning of July) with GNU Make 3.82 from Experimental, and Poky as of 5ed19a.

ERROR: Function failed: do_install (see
/data/nightly-build-Uju/build/tmp/work/i586-poky-linux/eglibc-initial-2.15-r12+svnr19294/temp/log.do_install.10450
for further information)
ERROR: Logfile of failure stored in:
/data/nightly-build-Uju/build/tmp/work/i586-poky-linux/eglibc-initial-2.15-r12+svnr19294/temp/log.do_install.10450
Log data follows:
| DEBUG: SITE files [&apos;endian-little&apos;, &apos;bit-32&apos;, &apos;ix86-common&apos;,
&apos;common-linux&apos;, &apos;common-glibc&apos;, &apos;i586-linux&apos;, &apos;common&apos;]
| DEBUG: Executing shell function do_install
| NOTE: make PARALLELMFLAGS=-j 8 cross-compiling=yes
install_root=/data/nightly-build-Uju/build/tmp/work/i586-poky-linux/eglibc-initial-2.15-r12+svnr19294/image
includedir=/usr/include prefix=/usr install-bootstrap-headers=yes
install-headers
...
| make[1]: Entering directory
`/data/nightly-build-Uju/build/tmp/work/i586-poky-linux/eglibc-initial-2.15-r12+svnr19294/eglibc-2_15/libc&apos;
| /usr/bin/install -c -m 644 include/limits.h /usr/include/limits.h
| /usr/bin/install: cannot remove `/usr/include/limits.h&apos;: Permission denied
| make[1]: *** [/usr/include/limits.h] Error 1
| make[1]: Leaving directory
`/data/nightly-build-Uju/build/tmp/work/i586-poky-linux/eglibc-initial-2.15-r12+svnr19294/eglibc-2_15/libc&apos;
| make: *** [install-headers] Error 2
| ERROR: oe_runmake failed

If I go back to GNU Make 3.81, it works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26122</commentid>
    <comment_count>1</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2012-10-03 12:42:54 +0000</bug_when>
    <thetext>could not reproduce

Build Configuration:
BB_VERSION        = &quot;1.16.0&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20121003&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:7da9f109e8dad5807f3b1d3615c295c349bc7f10&quot;

is this the right configuration configuration?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26233</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-10-04 14:31:13 +0000</bug_when>
    <thetext>| mkdir: cannot create directory `/usr/include/gnu&apos;: Permission denied

I can still replicate with gnu make 3.82.

(almost certainly a make 3.82 bug that is being exposed by eglibc)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26322</commentid>
    <comment_count>3</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2012-10-08 09:38:34 +0000</bug_when>
    <thetext>It seems this is a well known bug. There is already a fix for it in upstream but not in the stable release. In Yocto we already have this patch, added by Dexuan, see expand_MAKEFLAGS.patch
I don&apos;t know what can we do on host machine though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27884</commentid>
    <comment_count>4</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2012-12-03 09:42:37 +0000</bug_when>
    <thetext>Ross, what do we do with this one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27885</commentid>
    <comment_count>5</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2012-12-03 09:43:24 +0000</bug_when>
    <thetext>Changed to NEEDINFO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27890</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-12-03 10:01:55 +0000</bug_when>
    <thetext>I guess we need to document this as known breakage with unpatched GNU Make 3.82.  Presumably everyone who has 3.82 as the default is already carrying that patch.

Re-assigning to the docs.  Scott, the problem is that if the host has unpatched GNU Make 3.82 then eglibc-initial fails to build.  I suspect that every distro that ships 3.82 as the default already has the patch (as otherwise they couldn&apos;t have built the toolchain) but some distributions have 3.82 as an option (Debian, for example) which is unpatched.  Might be worth mentioning this in the release notes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29689</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-02-08 17:13:27 +0000</bug_when>
    <thetext>Created a new section in the ref-manual called &quot;Development Host System Issues&quot; that is within the &quot;Debugging Build Failures.&quot;  This new section can hold bulleted items that call out host issues that mess up a build.  This will be a good place for this information in the mainstream YP docs.

See the http://www.yoctoproject.org/docs/1.4/ref-manual/ref-manual.html#development-host-system-issues for the new section.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>