error in bitbake <target>

while executing bitbake meta-toolchain i got error

ERROR: Error parsing configuration files
Traceback (most recent call last):
File “/fsl-release-bsp/sources/poky/bitbake/lib/bb/cookerdata.py”, line 239, in CookerDataBuilder.parseBaseConfiguration():
try:
> self.parseConfigurationFiles(self.prefiles, self.postfiles)
except SyntaxError:
File “/fsl-release-bsp/sources/poky/bitbake/lib/bb/cookerdata.py”, line 304, in CookerDataBuilder.parseConfigurationFiles(prefiles=[], postfiles=[]):
if data.getVar(“BB_WORKERCONTEXT”, False) is None:
> bb.fetch.fetcher_init(data)
bb.codeparser.parser_cache_init(data)
File “/fsl-release-bsp/sources/poky/bitbake/lib/bb/fetch2/init.py”, line 490, in fetcher_init(d=):
pass
> revs.clear()
else:
File “/fsl-release-bsp/sources/poky/bitbake/lib/bb/persist_data.py”, line 147, in SQLTable.clear():
def clear(self):
> self._execute(“DELETE FROM %s;” % self.table)

File “/fsl-release-bsp/sources/poky/bitbake/lib/bb/persist_data.py”, line 66, in SQLTable._execute(*query=(‘DELETE FROM BB_URI_HEADREVS;’,)):
try:
> return self.cursor.execute(*query)
except sqlite3.OperationalError as exc:
OperationalError: attempt to write a readonly database
how to fix it?

are you able to build regular images? what version of DEY are you using? what platform? I would start from scratch on a clean system.