<?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>11345</bug_id>
          
          <creation_ts>2017-04-12 18:27:08 +0000</creation_ts>
          <short_desc>Support both MUSL and x32 as a build option combination</short_desc>
          <delta_ts>2017-10-01 09:21:20 +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.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>LET</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="sweeaun">swee.aun.khor</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72399</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-04-12 18:27:08 +0000</bug_when>
    <thetext>Currently we have both MUSL and x32 support, but they are independant, MUSL is working on x32 support and is currently experimental.  We should ensure that the meta-data and bbclasses are prepared for being able to build a combination of both.

A starting point would be to build for MUSL and corei7, then test with changing the DEFAULTTUNE

TCLIBC = &quot;musl&quot;
MACHINE=&quot;intel-corei7-64&quot;
#DEFAULTTUNE = &quot;corei7-64-x32&quot;

There will be both infrastructure changes (bbclass) and possible bug fixes to various projects (upstream and recipes).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72506</commentid>
    <comment_count>1</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-04-13 23:33:24 +0000</bug_when>
    <thetext>Need to rework on review comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73438</commentid>
    <comment_count>2</comment_count>
    <who name="sweeaun">swee.aun.khor</who>
    <bug_when>2017-05-23 01:27:13 +0000</bug_when>
    <thetext>Started to look into this issue by referred to gnux32 implementation. 

Made some changes on siteinfo.bbclass and insane.bbclass to support muslx32 for infrastructure change such as osinfo and targetinfo.

Do some fixes on openssl, libffi and perl compilations errors. Currently having systemd-boot do_compile error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77253</commentid>
    <comment_count>3</comment_count>
    <who name="sweeaun">swee.aun.khor</who>
    <bug_when>2017-10-01 09:21:20 +0000</bug_when>
    <thetext>

Able to build core-image-minimal image with muslx32 currently. 
However, there are still couple recipes having compilation error with muslx32 when performed bitbake world. 

Created separate Bugzilla bug to keep track those recipes that failing with muslx32 compilation during bitbake world. 
webkitgtk	 Bug 12118
Boost	         Bug 12119
Gdb     	 Bug 12120
Qat16	         Bug 12121
Systemd-boot	 Bug 12122
acpica  	 Bug 12123</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>