On Thu, Jan 3, 2019 at 4:02 PM Burton, Ross <ross.bur...@intel.com> wrote: > > On Thu, 3 Jan 2019 at 23:18, Alistair Francis <alistair.fran...@wdc.com> > wrote: > > Fix the swig build by calling autogen.sh before running configure. > > But... > > > @@ -45,6 +45,7 @@ do_configure() { > > install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub > > ${S}/Tools/config > > install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} > > install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S} > > + (cd ${S} && ./autogen.sh) > > oe_runconf > > Now this is literally just reimplementing the default do_configure > from autotools. The first three lines are gnuconfigize, autogen.sh is > generally just autoreconf in modern systems, and then oe_runconf. > > If do_configure is just deleted, what breaks?
This is the error I see: ERROR: swig-native-3.0.12-r0 do_configure: autoreconf execution failed. ERROR: swig-native-3.0.12-r0 do_configure: Function failed: do_configure (log file is located at /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/temp/log.do_configure.9027) ERROR: Logfile of failure stored in: /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/temp/log.do_configure.9027 Log data follows: | DEBUG: Executing shell function autotools_preconfigure | Previously configured separate build directory detected, cleaning /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/build | DEBUG: Shell function autotools_preconfigure finished | DEBUG: Executing python function autotools_aclocals | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common'] | DEBUG: Python function autotools_aclocals finished | DEBUG: Executing shell function do_configure | automake (GNU automake) 1.16.1 | Copyright (C) 2018 Free Software Foundation, Inc. | License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html> | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. | | Written by Tom Tromey <tro...@redhat.com> | and Alexandre Duret-Lutz <a...@gnu.org>. | AUTOV is 1.16 | NOTE: Executing ACLOCAL="aclocal --system-acdir=/scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/recipe-sysroot-native/usr/share/aclocal/ --automake-acdir=/scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/recipe-sysroot-native/usr/share/aclocal-1.16" autoreconf -Wcross --verbose --install --force --exclude=autopoint | autoreconf: Entering directory `.' | autoreconf: configure.ac: not using Gettext | autoreconf: running: aclocal --system-acdir=/scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/recipe-sysroot-native/usr/share/aclocal/ --automake-acdir=/scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/recipe-sysroot-native/usr/share/aclocal-1.16 --force | autoreconf: configure.ac: tracing | autoreconf: configure.ac: adding subdirectory CCache to autoreconf | autoreconf: Entering directory `CCache' | autoreconf: configure.ac: not using Libtool | autoreconf: running: /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/recipe-sysroot-native/usr/bin/autoconf --force | autoreconf: running: /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/recipe-sysroot-native/usr/bin/autoheader --force | autoreconf: configure.ac: not using Automake | autoreconf: running: gnu-configize | autoreconf: Leaving directory `CCache' | configure.ac:35: error: possibly undefined macro: AC_COMPILE_WARNINGS | If this token and others are legitimate, please use m4_pattern_allow. | See the Autoconf documentation. | configure.ac:2982: error: possibly undefined macro: AC_DEFINE_DIR | autoreconf: /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/recipe-sysroot-native/usr/bin/autoconf failed with exit status: 1 | ERROR: autoreconf execution failed. | WARNING: /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/temp/run.do_configure.9027:1 exit 1 from 'exit 1' | ERROR: Function failed: do_configure (log file is located at /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/x86_64-linux/swig-native/3.0.12-r0/temp/log.do_configure.9027) ERROR: Task (virtual:native:/scratch/alistair/yocto/oe-master/meta/recipes-devtools/swig/swig_3.0.12.bb:do_configure) failed with exit code '1' Alistair > > Ross > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core