Bug 741 - Building of gtk+-2.22.1 fails
Summary: Building of gtk+-2.22.1 fails
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.0 M4
Assignee: Scott Garman
QA Contact:
URL:
Whiteboard:
Depends on: 748
Blocks:
  Show dependency tree
 
Reported: 2011-02-20 04:44 UTC by Wolfgang Denk
Modified: 2011-02-24 17:24 UTC (History)
7 users (show)

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


Attachments
Workaround/fix (396 bytes, patch)
2011-02-23 06:28 UTC, Joshua Lock - Disabled
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Denk 2011-02-20 04:44:32 UTC
OE Build Configuration:
BB_VERSION        = "1.11.0"
METADATA_BRANCH   = "master"
METADATA_REVISION = "0a8f4f45b66ad5d51dea91a406a17555252dfe42"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "poky"
DISTRO_VERSION    = "0.9+snapshot-20110220"
TARGET_FPU        = "soft"

A build from scratch results if gtk+ build failures:

| make[3]: Entering directory `/opt/poky/build/mainline-2011-02-20-0a8f4f4/tmp/work/armv5te-poky-linux-gnueabi/gtk+-2.22.1-r1/gtk+-2.22.1/docs/tutorial'
| if test -w .; then \
|   (cd .; \
|    db2html gtk-tut.sgml; \
|    test -d html && rm -r html; \
|    mkdir html; \
|    mv *.html html; \
|    mkdir html/images; \
|    cp images/*.png html/images); \
| fi
| grep: character class syntax is [[:space:]], not [:space:]
| grep: character class syntax is [[:space:]], not [:space:]
| jw: There is no frontend called "/docbook/utils-0.6.14/frontends/docbook".
...
| FATAL: oe_runmake failed
NOTE: package gtk+-2.22.1-r1: task do_compile: Failed
ERROR: Task 2477 (/home/wd/git/poky/work/meta/recipes-gnome/gtk+/gtk+_2.22.1.bb, do_compile) failed with exit code '1'


The patch "gtk+: add BASE_RRECOMMANDS_poky-lsb for gtk+" (see http://thread.gmane.org/gmane.linux.embedded.poky/3676/focus=3677) does NOT fix this problem.
Comment 1 Saul Wold 2011-02-20 21:18:43 UTC
This may be fixed by the series of fixed from Scott.
 
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=40ed2718177b022c85fe9cd54e1cb7b424023302

Can you please verify this.
Comment 2 Wolfgang Denk 2011-02-20 21:30:19 UTC
No, 40ed271 "gtk+: Fix build of documentation" doe snot help, as this was included in my build. As reposted, I was building commit ID 0a8f4f4, which includes 40ed271:

==>  (HEAD, origin/master, origin/HEAD, master)
0a8f4f4   2011-02-18 20:51:30 -0800   rpm: Increase the number of solvedb's allowed
^^^^^^^--------------------------------------------------------------------------------
9f0f7c4   2011-02-18 20:51:30 -0800   documentation/kernel-manual/kernel-how-to.xml: Changes to sectio
n 3.4.4 and new 3.4.5
07c159f   2011-02-18 20:51:30 -0800   documentation/kernel-manual/kernel-how-to.xml: fix to step 3 and
 4 of section 3.4.4
6500cef   2011-02-18 20:51:30 -0800   documentation/kernel-manual/kernel-how-to.xml: Fix to step 3 of 
section 3.4.4
7c06c4f   2011-02-18 20:51:30 -0800   documentation/kernel-manual/kernel-how-to.xml: Fix to step 1 of 
section 3.4.4
==>  (origin/bernard)
c168c52   2011-02-18 18:14:50 +0000   meta/lib/oe/path: Use check_output for subprocess so we can see 
error info. Import code to be python 2.6 compatible.
8048b71   2011-02-18 15:52:02 +0000   local.conf.sample: Handle the case the user incomments a machine
 entry and expects it to override the default
673abd9   2011-02-18 15:36:06 +0000   conf/machine: Drop older machines with no recent updates
fed61be   2011-02-18 15:20:01 +0000   local.conf.sample: Update MACHINE list to match our website and 
documented supported list
359a4d8   2011-02-18 11:54:28 +0000   bitbake/runqueue.py: Move SIGCHLD handler to wrap none server sl
eep call
1575113   2011-02-17 17:25:22 -0800   gstreamer: reenable PARALLEL_MAKE
3810796   2011-02-17 17:25:22 -0800   openssl: fix parallel make
c35d910   2011-02-17 17:25:21 -0800   connman-gnome: Enable config menu popup even services are not av
ailable
6f286cc   2011-02-17 17:25:21 -0800   recipe-core/meta/meta-toolchain.bb: Set correct value for CONFIG
_SITE.
6dc50b1   2011-02-17 17:25:21 -0800   toolchain-script/populate_sdk/meta-toolchain: moving common code
.
f09f8f4   2011-02-17 17:25:21 -0800   toolchain-scripts.bbclass: Added libtool sysroot support.
40ed271   2011-02-18 01:16:26 +0000   gtk+: Fix build of documentation
^^^^^^^-----------------------------------------------------------------
Comment 3 Saul Wold 2011-02-20 21:38:28 UTC
There may be a problem with some dependency and a cleanall of the the documentation packages. Scott may be able to give a more definitive list.

There was a previous email:


These commands should clean out most of the suspect docbook-related utilities:

bitbake docbook-utils-native -c cleanall
bitbake openjade-native -c cleanall
bitbake opensp-native -c cleanall
bitbake docbook-dsssl-stylesheets-native -c cleanall

Then do a bitbake docbook-utils-native and see if it builds this time.
Comment 4 Wolfgang Denk 2011-02-20 22:04:16 UTC
I confirm that at commit ID
265bd1c   2011-02-17 23:19:39 +0000   perl-native: fix parallel build
the tree still builds fine, so it must be one of the later commits:

0a8f4f4   2011-02-18 20:51:30 -0800   rpm: Increase the number of solvedb's allowed
9f0f7c4   2011-02-18 20:51:30 -0800   documentation/kernel-manual/kernel-how-to.xml: Changes to section 3.4.4 and new 3.4.5
07c159f   2011-02-18 20:51:30 -0800   documentation/kernel-manual/kernel-how-to.xml: fix to step 3 and 4 of section 3.4.4
6500cef   2011-02-18 20:51:30 -0800   documentation/kernel-manual/kernel-how-to.xml: Fix to step 3 of section 3.4.4
7c06c4f   2011-02-18 20:51:30 -0800   documentation/kernel-manual/kernel-how-to.xml: Fix to step 1 of section 3.4.4
==>  (origin/bernard)
c168c52   2011-02-18 18:14:50 +0000   meta/lib/oe/path: Use check_output for subprocess so we can see error info. Import code to be python 2.6 compatible.
8048b71   2011-02-18 15:52:02 +0000   local.conf.sample: Handle the case the user incomments a machine entry and expects it to override the default
673abd9   2011-02-18 15:36:06 +0000   conf/machine: Drop older machines with no recent updates
fed61be   2011-02-18 15:20:01 +0000   local.conf.sample: Update MACHINE list to match our website and documented supported list
359a4d8   2011-02-18 11:54:28 +0000   bitbake/runqueue.py: Move SIGCHLD handler to wrap none server sleep call
1575113   2011-02-17 17:25:22 -0800   gstreamer: reenable PARALLEL_MAKE
3810796   2011-02-17 17:25:22 -0800   openssl: fix parallel make
c35d910   2011-02-17 17:25:21 -0800   connman-gnome: Enable config menu popup even services are not available
6f286cc   2011-02-17 17:25:21 -0800   recipe-core/meta/meta-toolchain.bb: Set correct value for CONFIG_SITE.
6dc50b1   2011-02-17 17:25:21 -0800   toolchain-script/populate_sdk/meta-toolchain: moving common code.
f09f8f4   2011-02-17 17:25:21 -0800   toolchain-scripts.bbclass: Added libtool sysroot support.
40ed271   2011-02-18 01:16:26 +0000   gtk+: Fix build of documentation
0bc7de5   2011-02-18 01:16:26 +0000   docbook-utils-native: set SGML_EXTRA_CATALOGS in jw
6547f62   2011-02-18 01:16:26 +0000   openjade-native: Set datadir explicitly
561c7a8   2011-02-18 01:16:26 +0000   docbook-dsssl-stylesheets-native: add missing files to install
Comment 5 Paul Eggleton 2011-02-22 04:22:55 UTC
Searching for the grep error suggests that this is a result of a change introduced in grep 2.7 which no longer accepts [:space:] in place of [[:space:]] (the former has apparently always been incorrect).
Comment 6 Joshua Lock - Disabled 2011-02-23 06:28:21 UTC
Created attachment 94 [details]
Workaround/fix

I "fixed" this by removing the faq and tutorials from the build targets. Arguably we don't want/need them.
Comment 7 Joshua Lock - Disabled 2011-02-23 06:33:26 UTC
Note, in latest Gtk+ these documentation items are removed anyway.
See:
http://git.gnome.org/browse/gtk+/tree/docs
http://git.gnome.org/browse/gtk+/tree/docs/Makefile.am
Comment 8 Scott Garman 2011-02-23 19:25:12 UTC
Wolfgang,

Could you please try this commit and report back if it fixes the problem for you?:

http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=sgarman/gtk-doc-fix&id=9b177c869f6d93f95dd6163de4e13a6667745476
Comment 9 Wolfgang Denk 2011-02-24 12:41:33 UTC
I confirm that the commit 9b177c8 from poky-contrib fixes the build issue for me.
Comment 10 Scott Garman 2011-02-24 17:24:09 UTC
This was fixed with commit 2f6b66b9bbba66e4157a8008b67ff18a14435f66

http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=2f6b66b9bbba66e4157a8008b67ff18a14435f66