Why does my BitBake autotools recipe fail during d

2019-09-20 07:46发布

问题:

I am attempting to create a fairly simple BitBake recipe that uses autotools, which you can see here:

SUMMARY = "an example autotools recipe"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

inherit autotools 
SRC_URI = "file://${TOPDIR}/piu/geo_utilities"
S = "${TOPDIR}/piu/geo_utilities"

After starting a BitBake build with this recipe's default package included, do_configure fails with the following:

configure: exit 0
WARNING: /home/presslertj/repos/new-bb-layers/poky-jethro-build/build/tmp/work/x86-poky-linux/geo-utilities/0.1-r0/temp/run.do_configure.48030:1 exit 1 from
  exit 1

which seems contradictory. Here's the full log. What would cause this kind of behavior?

回答1:

"configure: error: source directory already configured; run "make distclean" there first"

This basically means you've changed ${B}, but if you do that with autotools you'll generally need to wipe away the existing build first. At a guess, you've gone from autotools-brokensep to autotools, or you were running configure in the unpacked tree manually.

A quick 'bitbake -c clean geo-utilities' will delete the unpacked source tree, then bitbaking again should work fine.