[bitbake-devel] Doing 'oerunmake configure' verses just 'configure'

Udayan Bapat uvbapat at gmail.com
Thu Nov 21 15:45:02 UTC 2013


Hi all

I am trying to build a custom recipe that heavily relies on autotools. Due
to some hierarchy (one package building other), I am not able to call
'oe_runmake configure' and 'oe_runmake make' directly from the .bb file.
Instead I manually cd into that directory and then issue ./configure
followed by 'make'

It seems when I try that it is failing on  -

|
/ADT/opensource/poky/build/tmp/sysroots/x86_64-linux/usr/share/automake-1.12/am/
ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
|
| autoreconf: automake failed with exit status: 1

If I try to update configure.ac with -

+AC_CONFIG_MACRO_DIR([m4])
+AM_PROG_AR

then I hit this error -

 aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
| aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
| aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
| configure.ac:25: the top level
| configure.ac:19: error: possibly undefined macro: AM_PROG_AR
|       If this token and others are legitimate, please use
m4_pattern_allow.

Yocto uses automake 1.12.6 so I know it supports AM_PROG_AR



However, if I separate out the package and build it separately with
oe_runmake * it works correctly. It seems when I run manually, it is
skipping some steps (such as running aclocal may be?) so the package runs
into tool incompatibility issues.

Where can I find the script that runs oerunmake configure? Also what can be
done to allow manually ./configure and make? Is there any place where I can
see any guidelines about what care needs to be taken while using manual
build options?

Thanks
Udayan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20131121/cbbd7f38/attachment-0002.html>


More information about the bitbake-devel mailing list