[yocto] Help with cleaning/rebuidling

Edward Wingate edwingate8 at gmail.com
Mon Jan 28 09:18:13 PST 2019


The first time I did a build, my mosquitto recipe worked.  Then I did
a 'bitbake -ccleanall mosquitto', and now when I do 'bitbake
mosquitto', I get this error:

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32',
'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
'common']
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing python function autotools_copy_aclocals
DEBUG: Python function autotools_copy_aclocals finished
DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32',
'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
'common']
DEBUG: Executing shell function do_configure
CMake Error: The source directory
"/mnt/drive/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/mosquitto/1.5.5-r0/mosquitto-1.5.5"
does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_configure (log file is located at
/mnt/drive/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/mosquitto/1.5.5-r0/temp/log.do_configure.37839)

It seems like it doesn't fetch/unpack the source before do_configure.
I tried to do 'bitbake -c fetch mosquitto' and 'bitbake -c unpack
mosquitto', and they both say all tasks didn't need to be rerun. I
forced it by adding '-f', but that didn't help either.

I'm still using jethro and my mosquitto_1.5.5.bb recipe is this:

=== BEGIN RECIPE ===
SUMMARY = "MQTT 3.1 compliant library"
HOMEPAGE = "https://mosquitto.org"
MAINTAINER = "Robert Lehmann <robert.lehmann at sitec-systems.de>"

LICENSE = "EPL-1.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62ddc846179e908dc0c8efec4a42ef20"

SRC_URI = "https://mosquitto.org/files/source/mosquitto-${PV}.tar.gz"
SRC_URI[md5sum] = "a17dffc6f63b2a4ab2eb5c51139e60e9"
SRC_URI[sha256sum] =
"fcdb47e340864c545146681af7253399cc292e41775afd76400fda5b0d23d668"

DEPENDS = "openssl"
RDEPENDS_${PN} = "util-linux"

inherit cmake

# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE = " -DCMAKE_SKIP_RPATH=ON "
=== END RECIPE ===

Can anyone help with this?

Thanks,
Ed


More information about the yocto mailing list