Bug 10169 - Xorg fails to start with musl-libc build
Summary: Xorg fails to start with musl-libc build
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Khem Raj
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 9450
  Show dependency tree
 
Reported: 2016-08-20 03:01 UTC by Bill Randle
Modified: 2016-08-24 20:48 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.