<?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>10169</bug_id>
          
          <creation_ts>2016-08-20 03:01:19 +0000</creation_ts>
          <short_desc>Xorg fails to start with musl-libc build</short_desc>
          <delta_ts>2016-08-24 20:48:50 +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>graphics</component>
          <version>2.2</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>9450</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Bill Randle">bill.randle</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</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>65370</commentid>
    <comment_count>0</comment_count>
    <who name="Bill Randle">bill.randle</who>
    <bug_when>2016-08-20 03:01:19 +0000</bug_when>
    <thetext>core-image-sato builds with no errors on the AutoBuilder, but when attempting to run testimage, there are Xorg errors:

[2772687.888] (II) LoadModule: &quot;vbe&quot;
[2772687.888] (II) Loading /usr/lib/xorg/modules/libvbe.so
[2772687.888] (EE) Failed to load /usr/lib/xorg/modules/libvbe.so: Error relocating /usr/lib/xorg/modules/libvbe.so: xf86Int10Axf86Int10AllocPages: symbol not found
[2772687.888] (II) UnloadModule: &quot;vbe&quot;
[2772687.888] (II) Unloading vbe
[2772687.888] (EE) Failed to load module &quot;vbe&quot; (loader failed, 7)

I checked the (unstripped) Xorg executable and the xf86Int10AllocPages is indeed missing. The function is part of libint10.so and is present in that library. However, this library is not installed in /usr/lib for some reason.

This may or may not be related to the root cause, but the Xorg configure script does explicitly check for glibc in several places, and when using musl-libc, the results of those tests indicate glibc is missing.

This the AB rub, from which the above errors were excerpted:
  http://autobuilder.yocto.io:8010/builders/nightly-musl/builds/8/steps/Running%20Sanity%20Tests/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65371</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-08-20 07:40:35 +0000</bug_when>
    <thetext>Khem: We wanted to add basic musl runtime testing but ran into this :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65374</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-08-20 15:03:52 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Khem: We wanted to add basic musl runtime testing but ran into this :(

Just sent a patch to ml, which hopefully should fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65378</commentid>
    <comment_count>3</comment_count>
    <who name="Bill Randle">bill.randle</who>
    <bug_when>2016-08-20 20:12:36 +0000</bug_when>
    <thetext>Patch is only a partial solution. The int10 module is not installed, so X fails when trying to load it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65493</commentid>
    <comment_count>4</comment_count>
    <who name="Bill Randle">bill.randle</who>
    <bug_when>2016-08-24 20:03:59 +0000</bug_when>
    <thetext>Khem, I&apos;ve now verified your latest patch works. (See: https://autobuilder.yoctoproject.org/main/builders/nightly-musl/builds/230). If you would resolve this one, then I can resolve the depended Autobuilder bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>