Bug 7227 - Fail to build mesa for qemuppc on 32-bit host
Summary: Fail to build mesa for qemuppc on 32-bit host
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.8
Assignee: Ross Burton
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-01-22 02:33 UTC by Yi Zhao
Modified: 2015-02-10 11:41 UTC (History)
6 users (show)

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


Attachments
log.do_compile (1.47 MB, application/octet-stream)
2015-01-22 02:33 UTC, Yi Zhao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2015-01-22 02:33:24 UTC
Created attachment 2357 [details]
log.do_compile

Git rev: master/d9d5b8b499af3ae01a1e33d0d3969c54c2d4ab1b

The mesa build failed for qemuppc on 32 bit fedora 21 (with fresh update) :
####################
cc1: out of memory allocating 1208940 bytes after a total of 55308288 bytes
Makefile:2251: recipe for target 'format_utils.lo' failed
make[4]: *** [format_utils.lo] Error 1
make[4]: Leaving directory '/buildarea/poky/build/tmp/work/ppc7400-poky-linux/mesa/2_10.3.4-r0/build/src/mesa'
Makefile:3960: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/buildarea/poky/build/tmp/work/ppc7400-poky-linux/mesa/2_10.3.4-r0/build/src/mesa'
Makefile:1394: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/buildarea/poky/build/tmp/work/ppc7400-poky-linux/mesa/2_10.3.4-r0/build/src/mesa'
Makefile:511: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/buildarea/poky/build/tmp/work/ppc7400-poky-linux/mesa/2_10.3.4-r0/build/src'
Makefile:580: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
ERROR: oe_runmake failed
WARNING: /buildarea/poky/build/tmp/work/ppc7400-poky-linux/mesa/2_10.3.4-r0/temp/run.do_compile.23971:1 exit 1 from
  exit 1
###################

Please see the attachment for the full log.

Qemux86, qemux86-64, qemuarm and qemumips don't have this issue on the same platform.

This issue doesn't happen on Fedora 21 x86_64
Comment 1 Yi Zhao 2015-01-22 06:18:16 UTC
Update: I can reproduced this issue on 32 bit centos 6.6 and debian 7. I'm afraid this issue exists on all 32 bit host.
Comment 2 Ross Burton 2015-01-22 15:42:41 UTC
Huh.  Is it always the same file in mesa (src/mesa/format_utils in this log) that the build fails on?
Comment 3 Yi Zhao 2015-01-23 05:00:21 UTC
(In reply to comment #2)
> Huh.  Is it always the same file in mesa (src/mesa/format_utils in this log)
> that the build fails on?

Yes. I checked all logs in different hosts, They all failed with format_utils.
Comment 4 Yi Zhao 2015-02-06 02:03:29 UTC
Still exists in 1.8 M2 rc2.
git rev: master/22c38e2d8a058619e3d05534b5e830b750aa4241
Comment 5 Ross Burton 2015-02-06 20:12:49 UTC
Works for me. Fedora 21, MACHINE=qemuppc:

[ross@baldrick build]$ rm tmp/ -rf ; MACHINE=qemuppc bitbake mesa
WARNING: Host distribution "Fedora-21" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |################################################################################################| Time: 00:00:54
Parsing of 886 .bb files complete (0 cached, 886 parsed). 1281 targets, 62 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.25.0"
BUILD_SYS         = "i686-linux"
NATIVELSBSTRING   = "Fedora-21"
TARGET_SYS        = "powerpc-poky-linux"
MACHINE           = "qemuppc"
DISTRO            = "poky"
DISTRO_VERSION    = "1.7"
TUNE_FEATURES     = "m32 fpu-hard ppc7400 altivec"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "mut:36b3cb431a0dd06b898b5f1d50bc22a60ffd14f7"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1333 tasks of which 826 didn't need to be rerun and all succeeded.
Comment 6 Yi Zhao 2015-02-09 08:46:42 UTC
I re-tested with latest commit: master/870323cac1e40e8f95ea7bd6f425a85dcfbab612
The issue really disappeared. I noticed there is a commit to upgrade the mesa:

commit 16a01784245ef0e9806f88f8a55d5d3a73c7ce35
Author: Pengyu Ma <pengyu.ma@windriver.com>
Date:   Tue Feb 3 10:11:08 2015 +0800

    mesa: Upgrade to 10.4.3
    
    flags for EGL and GBM Gallium had been removed in 10.4,
    so remove these flags, files or packages.
    
    (From OE-Core rev: ba079975fa984f53fde5b4e8131d0f3877323e6c)
    
    Signed-off-by: Pengyu Ma <pengyu.ma@windriver.com>
    Tested-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
    Signed-off-by: Ross Burton <ross.burton@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

I will test it on more i686 platforms to ensure the issue has been fixed.
Comment 7 Yi Zhao 2015-02-10 07:24:19 UTC
I re-tested it with latest master branch on 32 bit Fedora21, centos 6.6 and debian 7. The issue doesn't exist. We can close this bug.
Comment 8 Ross Burton 2015-02-10 11:41:02 UTC
Resolving worksforme as the problem can't be replicated with current master.