<?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>12336</bug_id>
          
          <creation_ts>2017-11-11 22:39:06 +0000</creation_ts>
          <short_desc>musl 1.18 fails to build for armv5te</short_desc>
          <delta_ts>2018-01-11 16:08:51 +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>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrea Adami">andrea.adami</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <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>78160</commentid>
    <comment_count>0</comment_count>
    <who name="Andrea Adami">andrea.adami</who>
    <bug_when>2017-11-11 22:39:06 +0000</bug_when>
    <thetext>Hello,

latest musl/1.1.18+gitAUTOINC+eb03bde2f2-r0 fails to build for armv5te:
...
  Error: selected processor does not support `clz r2,r1&apos; in Thumb mode
  Makefile:164: recipe for target &apos;obj/src/math/fma.lo&apos; failed
...

Initially I found the patch fizing the ARM mode:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879190

Then I read about clx:
This ARM instruction is available in ARMv5T and above.
This 32-bit Thumb instruction is available in ARMv6T2 and above.
There is no 16-bit version of this instruction in Thumb.

Ah ha...my fix for the moment has been:

ARM_INSTRUCTION_SET_armv5 = &quot;arm&quot;


Regards
Andrea</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78179</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2017-11-13 17:18:12 +0000</bug_when>
    <thetext>thumb1 is not supported with musl. So your fix is right if added to musl.inc file. Please send it to mailing list also do the same for armv4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78210</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2017-11-15 04:26:36 +0000</bug_when>
    <thetext>https://patchwork.openembedded.org/patch/145852/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79040</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-01-11 16:08:51 +0000</bug_when>
    <thetext>commit d29bd5571187cb30d25f3a885e9e61aa20dd6d7a
Author: Andrea Adami &lt;andrea.adami@gmail.com&gt;
Date:   Tue Nov 14 18:23:13 2017 -0800

    musl: Disable thumb1 ISA
    
    thumb1 is unsupported see http://www.openwall.com/lists/musl/2017/10/20/10
    
    Fix
    [YOCTO #12336]
    
    Signed-off-by: Andrea Adami &lt;andrea.adami@gmail.com&gt;
    Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>