Bug 1664 - texinfo do_compile fail due to makedoc binary not executable
Summary: texinfo do_compile fail due to makedoc binary not executable
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.2
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-10-09 09:08 UTC by Jiajun Xu
Modified: 2011-12-15 14:03 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiajun Xu 2011-10-09 09:08:59 UTC
tree/branch: poky/edison
commit: 5ed59ae0f25bf673d514df2371da7e0415b62bb2

The issue blocks all build testing against target "world". When building texinfo, it needs invoke a run-time generated binary - makedoc, which is consistent with the target OS we are building. It will report "cannot execute binary file" when building within yocto.

Error log as below:
##########
NOTE: package texinfo-4.13a-r1: task do_compile: Started
ERROR: Function 'do_compile' failed (see /home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/temp/log.do_compile.28038 for further information)
ERROR: Logfile of failure stored in: /home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/temp/log.do_compile.28038
Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| NOTE: make -j 9
| make  all-recursive
| make[1]: Entering directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13'
| Making all in gnulib/lib
| make[2]: Entering directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/gnulib/lib'
| make  all-am
| make[3]: Entering directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/gnulib/lib'
| make[3]: Nothing to be done for `all-am'.
| make[3]: Leaving directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/gnulib/lib'
| make[2]: Leaving directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/gnulib/lib'
| Making all in lib
| make[2]: Entering directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/lib'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/lib'
| Making all in install-info
| make[2]: Entering directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/install-info'
| Making all in tests
| make[3]: Entering directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/install-info/tests'
| make[3]: Nothing to be done for `all'.
| make[3]: Leaving directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/install-info/tests'
| make[3]: Entering directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/install-info'
| make[3]: Nothing to be done for `all-am'.
| make[3]: Leaving directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/install-info'
| make[2]: Leaving directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/install-info'
| Making all in info
| make[2]: Entering directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/info'
| rm -f doc.c key.c funs.h
| ..//info/makedoc ./session.c ./echo-area.c ./infodoc.c ./m-x.c ./indices.c ./nodemenu.c ./footnotes.c ./variables.c
| ..//info/makedoc: ..//info/makedoc: cannot execute binary file
| make[2]: *** [funs.h] Error 126
| make[2]: Leaving directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13/info'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/texinfo-4.13'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function 'do_compile' failed (see /home/jxu49/osel/poky/lib64-core-image-qemux86-64-rpm/tmp/work/x86_64-poky-linux/texinfo-4.13a-r1/temp/log.do_compile.28038 for further information)
NOTE: package texinfo-4.13a-r1: task do_compile: Failed
ERROR: Task 4 (/home/jxu49/osel/poky/meta/recipes-extended/texinfo/texinfo_4.13a.bb, do_compile) failed with exit code '1'
ERROR: '/home/jxu49/osel/poky/meta/recipes-extended/texinfo/texinfo_4.13a.bb' failed
##########
Comment 1 Saul Wold 2011-10-15 16:10:04 UTC
texinfo is primarily used as a native application, I can see that when it's building the makedoc is build for the target and then used natively, this is clearly incorrect, texinfo has a dependency on texinfo-native and may need to be modified further to find that makedoc native binary
Comment 2 Saul Wold 2011-12-15 09:25:13 UTC
This commit adds the makedoc binary to the native install

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4f0092f7e42cd252573df0ff06ac2cc3573d1237
Comment 3 Saul Wold 2011-12-15 14:03:12 UTC
Second commit, that removed texinfo-native from ASSUME_PROVIDES so we can build the -native version and install the tools needed.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ba006ea934088ae4322909e8f45458755300e591