<?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>8438</bug_id>
          
          <creation_ts>2015-10-03 09:29:37 +0000</creation_ts>
          <short_desc>uclibc needs patch for gcc 5.x</short_desc>
          <delta_ts>2015-11-18 16:08:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Markus Volk">f_l_k</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54951</commentid>
    <comment_count>0</comment_count>
    <who name="Markus Volk">f_l_k</who>
    <bug_when>2015-10-03 09:29:37 +0000</bug_when>
    <thetext>the uclibc recipe in recipes-core needs the following patch for gcc 5.x


http://git.buildroot.org/buildroot/tree/package/uclibc/0.9.33.2/0071-Fix-libgcc_s_resume-issue.patch?id=6c7f3b28e694da032a80cc5f55ef124f2c6e81ee</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55086</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-08 16:58:08 +0000</bug_when>
    <thetext>Even with that patch uclibc doesn&apos;t build for me using gcc5:

| /data/poky-master/tmp/work/core2-64-poky-linux-uclibc/uclibc/0.9.33+gitAUTOINC+ca1c74d67d-r9/git/libc/sysdeps/linux/x86_64/brk.c:27: undefined reference to `__stack_chk_guard&apos;
| /data/poky-master/tmp/work/core2-64-poky-linux-uclibc/uclibc/0.9.33+gitAUTOINC+ca1c74d67d-r9/git/libc/sysdeps/linux/x86_64/brk.c:44: undefined reference to `__stack_chk_fail&apos;

Did I do something bad (I just did TCLIBC=uclibc), or are there other patches needed too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55088</commentid>
    <comment_count>2</comment_count>
    <who name="Markus Volk">f_l_k</who>
    <bug_when>2015-10-08 18:42:04 +0000</bug_when>
    <thetext>I am stuck with an old kernel version (3.10.70), because I have to use some binary blob drivers. Therefore, some modifications had been necessary in order to build for my set-top box

I didn&apos;t need any further patches. 

This is my uclibc config.

https://github.com/neutrino-hd/meta-neutrino/tree/master/recipes-custom/uclibc/uclibc

The local.conf i am using is this one

https://github.com/neutrino-hd/meta-coolstream/blob/master/example/local.conf

Please consider the fact that I am not a real developer and only do this for fun 

Is UCLIBC_HAS_SSP set in your uclibc config? 

I will try this out with a clean yocto build as soon as i find some time</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55129</commentid>
    <comment_count>3</comment_count>
    <who name="Markus Volk">f_l_k</who>
    <bug_when>2015-10-09 17:03:22 +0000</bug_when>
    <thetext>I tried to reproduce your error message and startet with a clean jethro branch. I only changed to tclibc = &quot;uclibc&quot; in local.conf and was able to build uclibc for machine &quot;qemux86&quot; without errors. 

Then i pulled in meta-raspberrypi, because it is very close to the architecture i am building for and stumbled across the same errors i had, when i first tried to build uclibc for my machine. So i used the uclibc.bbappend posted above and was able to complete the build for machine &quot;raspberrypi2&quot; (fix-libgcc_s_resume-issue.patch was also needed)

The patch seems only be needed for arm architecture or at least for armv7a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55690</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-23 16:06:53 +0000</bug_when>
    <thetext>Khem posted a series to make uclibc work with current master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55831</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-27 13:59:12 +0000</bug_when>
    <thetext>Fixed as of oe-core 5c515a1c7a86c510b6ae4f99c5b2e20d52622543.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55862</commentid>
    <comment_count>6</comment_count>
    <who name="Markus Volk">f_l_k</who>
    <bug_when>2015-10-27 18:49:05 +0000</bug_when>
    <thetext>Thanks for the fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56589</commentid>
    <comment_count>7</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-11-18 16:05:06 +0000</bug_when>
    <thetext>Verified on master fc45deac89ef63ca1c44e763c38ced7dfd72cbe1
for passing the UTMP error I added 
UCLIBC_HAS_UTMP=y
/meta/recipes-core/uclibc/uclibc-git/uClibc.distro</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>