Why does my BitBake autotools recipe fail during do_configure?

流过昼夜 提交于 2019-12-25 18:20:12

问题


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.



来源:https://stackoverflow.com/questions/34753906/why-does-my-bitbake-autotools-recipe-fail-during-do-configure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!