Bug 10169

Summary: Xorg fails to start with musl-libc build
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Bill Randle <bill.randle>
Component: graphicsAssignee: Khem Raj <raj.khem>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, richard.purdie
Version: 2.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 9450    

Description Bill Randle 2016-08-20 03:01:19 UTC
core-image-sato builds with no errors on the AutoBuilder, but when attempting to run testimage, there are Xorg errors:

[2772687.888] (II) LoadModule: "vbe"
[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: "vbe"
[2772687.888] (II) Unloading vbe
[2772687.888] (EE) Failed to load module "vbe" (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
Comment 1 Richard Purdie 2016-08-20 07:40:35 UTC
Khem: We wanted to add basic musl runtime testing but ran into this :(
Comment 2 Khem Raj 2016-08-20 15:03:52 UTC
(In reply to comment #1)
> Khem: We wanted to add basic musl runtime testing but ran into this :(

Just sent a patch to ml, which hopefully should fix it.
Comment 3 Bill Randle 2016-08-20 20:12:36 UTC
Patch is only a partial solution. The int10 module is not installed, so X fails when trying to load it.
Comment 4 Bill Randle 2016-08-24 20:03:59 UTC
Khem, I'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.