Bug 3149 - X server fails to start on e-menlow
Summary: X server fails to start on e-menlow
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 1.3.2
Hardware: E-Menlow Multiple
: High critical
Target Milestone: 1.3 M5
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard: (Patch Review)
: 3091 (view as bug list)
Depends on:
Blocks: 2940
  Show dependency tree
 
Reported: 2012-09-21 09:43 UTC by Alexandru Damian
Modified: 2012-10-16 09:17 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
X server log (16.36 KB, text/x-log)
2012-09-21 09:43 UTC, Alexandru Damian
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Damian 2012-09-21 09:43:56 UTC
Created attachment 827 [details]
X server log

After booting http://autobuilder03.jf.intel.com/pub/nightly-meta-intel/CURRENT/machines/emenlow/core-image-sato-sdk-emenlow-20120919181315.hddimg 

The X server fails to start, with a PSB error about not finding the exa module.

Relevant lines:
(**) PSB(0): Shadow framebuffer disabled
(II) Loading sub module "exa"
(II) LoadModule: "exa"
(WW) Warning, couldn't open module exa
(II) UnloadModule: "exa"
(EE) PSB: Failed to load module "exa" (module does not exist, 0)
(II) PSB(0): Debug: psbFreeScreen
(II) PSB(0): Debug: psbDeviceTakeDown
(II) PSB(0): Debug: Taking device down.


Full X log attached.
Comment 1 Ross Burton 2012-09-24 09:28:31 UTC
Patch sent to yocto@ and Tom.
Comment 2 Tom Zanussi 2012-09-25 17:43:37 UTC
I've applied the patch in the hopes of building and testing, but now can't build due to various problems:

NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for virtual/libx11 (libx11, libx11-diet)
NOTE: consider defining a PREFERRED_PROVIDER entry to match virtual/libx11
NOTE: multiple providers are available for runtime libx11-dev (libx11, libx11-diet)
NOTE: consider defining a PREFERRED_PROVIDER entry to match libx11-dev
NOTE: Preparing runqueue
ERROR: Multiple .bb files are due to be built which each provide virtual/xserver-xf86 (/home/trz/yocto/emenlow-test/meta-intel/meta-emenlow/recipes-graphics/xorg-xserver/xserver-psb_1.7.99.2.bb /home/trz/yocto/emenlow-test/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.11.2.bb).
 This usually means one provides something the other doesn't and should.

...

| ERROR: Function failed: do_configure (see /home/trz/yocto/emenlow-test/build/tmp/work/core2-poky-linux/xserver-xorg-2_1.11.2-r8/temp/log.do_configure.6474 for further information)
ERROR: Task 4670 (/home/trz/yocto/emenlow-test/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.11.2.bb, do_configure) failed with exit code '1'
Comment 3 Ross Burton 2012-09-25 19:14:22 UTC
meta-emenlow sets the virtual/libx11 provider to a package that doesn't exist anymore.  My fault, I failed to check meta-intel when I removed libx11-lite.

Patch sent to tomz and yocto@.
Comment 4 Tom Zanussi 2012-09-25 20:30:03 UTC
The latest patch did get rid of the warnings, but the error is still the..

| ERROR: Function failed: do_configure (see /home/trz/yocto/emenlow-test/build/tmp/work/core2-poky-linux/xserver-xorg-2_1.11.2-r8/temp/log.do_configure.3824 for further information)
ERROR: Task 4670 (/home/trz/yocto/emenlow-test/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.11.2.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3828 tasks of which 3762 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/trz/yocto/emenlow-test/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.11.2.bb, do_configure
Comment 5 Ross Burton 2012-09-25 22:13:42 UTC
Sorry about that - stopped reading carefully too soon.

I'll kick off a emenlow build tomorrow but if someone could actually extract the configure log that would help greatly.
Comment 6 Tom Zanussi 2012-09-26 00:05:51 UTC
I don't think the problem is that xserver-xorg configuration fails - it's not needed anyway because the preferred provider is xserver-psb, which seems to no longer be enough:

ERROR: Multiple .bb files are due to be built which each provide virtual/xserver-xf86 (/home/trz/yocto/emenlow-test/meta-intel/meta-emenlow/recipes-graphics/xorg-xserver/xserver-psb_1.7.99.2.bb /home/trz/yocto/emenlow-test/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.11.2.bb).
 This usually means one provides something the other doesn't and should.

Not sure what it needs from xserver-xorg_1.11 but it shouldn't be getting built and not sure why it is now...
Comment 7 Alexandru Damian 2012-09-26 09:16:25 UTC
*** Bug 3091 has been marked as a duplicate of this bug. ***
Comment 8 Alexandru Damian 2012-09-26 09:17:10 UTC
For what is worth, I started the X server by manually coping libexa.so to the target.
Comment 9 Ross Burton 2012-09-26 10:15:28 UTC
Oh, of course. Hm.
Comment 10 Ross Burton 2012-09-26 10:20:32 UTC
Oh, it's probably building it for the exa module, because my previous fix was wrong.
Comment 11 Ross Burton 2012-09-26 11:43:01 UTC
Fixed EXA patch sent (I didn't realise meta-emenlow built its own X server).

I'm now getting rootfs generation failures later on though.
Comment 12 Ross Burton 2012-09-26 12:53:39 UTC
Rootfs failure caused my dbg package installation causing problems.  Odd but not critical.

I've no hardware to test with but with the latest two patches I've mailed, core-image-sato builds now.
Comment 13 Tom Zanussi 2012-10-01 02:45:43 UTC
Still seeing the below multiple .bb files error and the resulting do_configure failure with the following patches applied to poky/master and meta-intel/master.  At this point, I'm not sure I even have the right patches...

----

poky/master: 0b09e50810162a07ef0aecee91ee32b4a36334a3

commit 2bbee04a5bdd9a2599a36ad37172d04f52976574
Author: Ross Burton <ross.burton@intel.com>
Date:   Wed Sep 26 17:08:27 2012 +0100

    xserver-xorg: fix -exa conflicts
    
    Hopefully for good this time!


----

meta-intel/master: 34f561ad87aa2e70140a1d1586b84e9018137a5d


commit df452cca103ca66e8bdac880bd1b077cdf6961a1
Author: Ross Burton <ross.burton@intel.com>
Date:   Tue Sep 25 20:12:26 2012 +0100

    meta-emenlow: don't set virtual/libx11 provider
    
    libx11-trim doesn't exist anymore so setting that as the default isn't going to
    work, resulting in a "multiple providers" error.  Tthe default provider (libx11)
    is good for 99.9% of people, so inherit that from oe-core.
    
    Signed-off-by: Ross Burton <ross.burton@intel.com>
    Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>

commit f34be2eff5e5ce0fd1627a6de44a0837c361cd66
Author: Ross Burton <ross.burton@intel.com>
Date:   Mon Sep 24 10:27:18 2012 +0100

    meta-emenlow: add missing exa dependency
    
    The psb video drivers use the EXA framework, so add a dependency on
    xserver-xorg-module-exa.
    
    [YOCTO #3149]
    
    Signed-off-by: Ross Burton <ross.burton@intel.com>
    Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>

----

ERROR: Multiple .bb files are due to be built which each provide virtual/xserver-xf86 (/home/trz/yocto/emenlow-test/meta-intel/meta-emenlow/recipes-graphics/xorg-xserver/xserver-psb_1.7.99.2.bb /home/trz/yocto/emenlow-test/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.11.2.bb).
 This usually means one provides something the other doesn't and should.


| ERROR: Function failed: do_configure (see /home/trz/yocto/emenlow-test/build/tmp/work/core2-poky-linux/xserver-xorg-2_1.11.2-r8/temp/log.do_configure.13624 for further information)
ERROR: Task 4670 (/home/trz/yocto/emenlow-test/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.11.2.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4021 tasks of which 3907 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/trz/yocto/emenlow-test/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.11.2.bb, do_configure
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Comment 14 Ross Burton 2012-10-02 10:02:41 UTC
I suspect you're using the wrong exa patch, I sent a second version as the first was pulling xserver-xorg.

I've pushed the correct series to meta-intel in the ross/emenlow branch.
Comment 15 Tom Zanussi 2012-10-02 18:29:22 UTC
I've tested and pulled in the ross/emenlow branch - basic testing done - X comes up and glxgears works fine, etc.  Here are the tested commits:

meta-intel/master: 50ac6e8785c167ea4aa4601fd690ef783151853d
poky/master: 0ca8b6248e5d00351e8a35c87037cc47945e436b

poky/master had the following revert in order to get a bootable test image:

    Revert "initrd: Spawn an emergency shell when something goes wrong"
    
    This reverts commit ffb6928f5783e5202d9849c3a185e29be1d41c63.
Comment 16 Laurentiu Serban 2012-10-16 09:17:55 UTC
verified in 1.3 RC4