Bug 3495 - [romley] xf86-video-mga fails to configure
Summary: [romley] xf86-video-mga fails to configure
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-intel (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4 M2
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard: (autobuilder)
Depends on:
Blocks:
 
Reported: 2012-11-27 11:21 UTC by Ross Burton
Modified: 2012-12-06 19:48 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2012-11-27 11:21:57 UTC
Autobuilder log at http://autobuilder.yoctoproject.org:8010/builders/romley/builds/201/steps/shell_32/logs/stdio

do_configure results in:
| configure:18074: checking for /usr/include/xorg/dri.h
| configure:18080: error: cannot check for file existence when cross compiling

The configure.ac does:

if test "x$DRI" != xno; then
        AC_CHECK_FILE([${sdkdir}/dri.h],
                      [have_dri_h="yes"], [have_dri_h="no"])
        AC_CHECK_FILE([${sdkdir}/sarea.h],
                      [have_sarea_h="yes"], [have_sarea_h="no"])
        AC_CHECK_FILE([${sdkdir}/dristruct.h],
                      [have_dristruct_h="yes"], [have_dristruct_h="no"])
fi

Which is Wrong.  Previously we were replacing AC_CHECK_FILE with stubs that always returned true, but that's obviously not The Right Thing To Do so I removed that - almost every driver doesn't use those anymore.

Filed upstream at https://bugs.freedesktop.org/show_bug.cgi?id=57606.
Comment 1 Tom Zanussi 2012-11-28 21:41:01 UTC
This is still breaking the build, so do we need to assign it to the romley maintainer?
Comment 2 Ross Burton 2012-11-29 11:24:05 UTC
As I did an identical fix on the omap driver, I just fixed the -mga driver.  Patch sent to meta-intel@.
Comment 3 Tom Zanussi 2012-11-30 01:49:24 UTC
Fixed in meta-intel/master: ba2cac6f5b1866a788457d4b9b1ab6fb229b547c
Comment 4 Tom Zanussi 2012-11-30 14:17:50 UTC
Reopening since according to Ross there may be additional work to do on this.

Basically, Ross's fix still produced the below do_rootfs dependency error for
xserver-xorg-module-xaa:

ERROR: Function failed: do_rootfs (see /usr/local/dev/yocto/isg-test/build/tmp/work/romley-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.5104 for further information)
ERROR: Logfile of failure stored in: /usr/local/dev/yocto/isg-test/build/tmp/work/romley-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.5104
Log data follows:
| DEBUG: Executing shell function do_rootfs
| Generating solve db for /usr/local/dev/yocto/isg-test/build/tmp/deploy/rpm/romley...
| Generating solve db for /usr/local/dev/yocto/isg-test/build/tmp/deploy/rpm/x86_64...
| Generating solve db for /usr/local/dev/yocto/isg-test/build/tmp/deploy/rpm/all...
|    total:               1      0.000000 MB     32.028527 secs
|    fingerprint:     15279      0.200384 MB      0.915764 secs
|    install:          5093      0.000000 MB     10.695525 secs
|    digest:          10186     45.574370 MB      0.190004 secs
|    signature:       10186      0.000000 MB     15.824291 secs
|    dbadd:            5093      0.000000 MB     10.565355 secs
|    dbget:           74636      0.000000 MB      0.141470 secs
|    dbput:            5093     27.957180 MB      7.158784 secs
|    readhdr:         50931     55.678978 MB      0.102926 secs
|    hdrload:         26383     87.481686 MB      0.149103 secs
|    hdrget:         955873      0.000000 MB      0.829142 secs
| Generating solve db for /usr/local/dev/yocto/isg-test/build/tmp/deploy/rpm/all...
| Processing locale-base-en-us...
| Processing locale-base-en-gb...
| Processing packagegroup-core-ssh-dropbear...
| Processing packagegroup-core-x11-sato-games...
| Processing packagegroup-core-x11-base...
| Processing zypper...
| Processing psplash...
| Processing packagegroup-core-boot...
| Processing packagegroup-base-extended...
| Processing rpm...
| Processing packagegroup-core-x11-sato...
| error: Failed dependencies:
|       xserver-xorg-module-xaa is needed by packagegroup-core-x11-xserver-1.0-r39.romley
| ERROR: Function failed: do_rootfs (see /usr/local/dev/yocto/isg-test/build/tmp/work/romley-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.5104 for further information)
ERROR: Task 7 (/usr/local/dev/yocto/isg-test/meta/recipes-sato/images/core-image-sato.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5361 tasks of which 401 didn't need to be rerun and 1 failed.
No currently running tasks (5361 of 5363)

Summary: 1 task failed:
  /usr/local/dev/yocto/isg-test/meta/recipes-sato/images/core-image-sato.bb, do_rootfs
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

To fix that I added the following commit:

commit b7337857ca740266d2b067e8c89f82e130825a4b
Author: Tom Zanussi <tom.zanussi@intel.com>
Date:   Thu Nov 29 17:21:16 2012 -0600

    meta-intel.inc: remove xaa from matrox XSERVER variable
    
    XAA has been dropped, so we need to drop the xaa module.
    
    Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>

Which fixed that problem and subsequently made things build without error.

But according to Ross: "The driver AFAICS is using the EXA module now, so you'll want to add a dependency on that."

So if that's the case, it should be added, if not, confirm that it's not and this can be closed officially.  Assigning it to the romley maintainer.
Comment 5 Ross Burton 2012-12-06 12:45:11 UTC
Once I'd verified the package name it was a simple patch.  Sent to the BSP list.
Comment 6 kishore 2012-12-06 19:48:39 UTC
Built fine and booted with sato desktop.
So changing the status to Resolved.

Thanks
Kishore.