简体   繁体   中英

Why does my BitBake autotools recipe fail during do_configure?

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?

"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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM