Yocto:Could not inherit file classes/autotools-brokensep.bbclass

zappy picture zappy · May 8, 2015 · Viewed 13.9k times · Source

I am new to yocto project. I am getting the following error while running the bitbake command

$bitbake gemini-image

ERROR: ParseError at /home/zappy/Desktop/fyocto/meta-ivi/meta-ivi/recipes-extended/persistence-client-library/persistence-client-library_git.bb:18: Could not inherit file classes/autotools-brokensep.bbclass
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

my bblayers.conf file is

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "6"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/zappy/Desktop/fyocto/poky/meta \
  /home/zappy/Desktop/fyocto/poky/meta-yocto \
  /home/zappy/Desktop/fyocto/poky/meta-yocto-bsp \
  /home/zappy/Desktop/fyocto/meta-ivi/meta-ivi \
  /home/zappy/Desktop/fyocto/meta-ti \
  "
BBLAYERS_NON_REMOVABLE ?= " \
  /home/zappy/Desktop/fyocto/poky/meta \
  /home/zappy/Desktop/fyocto/poky/meta-yocto \

And my local.conf file is(edited lines only)

MACHINE?= ”pandaboard”
DISTRO ?= "poky-ivi-systemd"
INCOMPATIBLE_LICENSE = "GPLv3"

any one familiar with these types of errors?? please feel free to ask if any further details is needed to understand the problem

EDIT: This is the persistence-client-library_git.bb file

SUMMARY = "GENIVI Persistence Client Library"
DESCRIPTION = "The Persistence Management is responsible to handle \
persistent data, including all data read and modified often during \
a lifetime of an infotainment system."
HOMEPAGE = "http://projects.genivi.org/persistence-client-library"
BUGTRACKER = "http://bugs.genivi.org/enter_bug.cgi?product=Persistence"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=6161c6840f21a000e9b52af81d2ca823"

DEPENDS = "dlt-daemon dbus libcheck persistence-common-object"

PV = "7.0+git${SRCPV}"

SRC_URI = "git://git.projects.genivi.org/persistence/persistence-client-library.git"
SRCREV  = "441b3ce710ec6b7f1e6360cdf29e5c4243af9f1e"
S = "${WORKDIR}/git"

inherit pkgconfig autotools-brokensep

PARALLEL_MAKE = ""

FILES_${PN} = " \
   ${libdir}/*.so \
   ${libdir}/*.so.* \
   ${sysconfdir} \
"

do_install_append() {
    install -d ${D}${sysconfdir}/dbus-1/system.d
    install -m 0644 ${S}/config/org.genivi.persistence.admin.conf ${D}${sysconfdir}/dbus-1/system.d
}

RDEPENDS_${PN} = "node-state-manager"

Answer

Dilip Kumar picture Dilip Kumar · May 11, 2015

Problem: It is not able to locate the autotools-brokensep.bbclass which is mentioned in your persistence-client-library_git.bb as inherit pkgconfig autotools-brokensep

Solution: Provide the path of the file in bblayers.conf where the file locates, and even check th layers.conf of which the file resides.