Building a cross compilation toolchain

1,223 views
Skip to first unread message

Robert Ianovich

unread,
Dec 22, 2013, 2:53:26 PM12/22/13
to beagl...@googlegroups.com
Hello,

I have some problems following this instructions:
http://wind.cs.purdue.edu/doc/crosscompile.html

If I run MACHINE=beaglebone ./oebb.sh bitbake virtual/kernel as root the folowing erro appears:

rocessing openembedded-core: Current branch angstrom-staging-yocto1.4 is up to date.
Using environment-angstrom-v2013.06 to setup needed variables. It is recommended to do '. environment-angstrom-v2013.06' and run 'bitbake something' without using ./oebb.sh as wrapper
Executing: MACHINE=beaglebone bitbake virtual/kernel
Pseudo is not present but is required, building this first before the main build
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Do not use Bitbake as root.
ERROR: Execution of event handler 'check_sanity_eventhandler' failed

Now changing to some other user, another error:

Executing: MACHINE=beaglebone bitbake virtual/kernel
Pseudo is not present but is required, building this first before the main build
ERROR: Error parsing configuration files
Traceback (most recent call last):
  File "/edi/setup-scripts/sources/bitbake/lib/bb/cooker.py", line 201, in BBCooker.loadConfigurationData():
                 self.parseConfigurationFiles(self.configuration.prefile,
    >                                         self.configuration.postfile)
             except SyntaxError:
  File "/edi/setup-scripts/sources/bitbake/lib/bb/cooker.py", line 988, in BBCooker.parseConfigurationFiles(prefiles=[], postfiles=[]):
             if data.getVar("BB_WORKERCONTEXT", False) is None:
    >            bb.fetch.fetcher_init(data)
             bb.codeparser.parser_cache_init(data)
  File "/edi/setup-scripts/sources/bitbake/lib/bb/fetch2/__init__.py", line 465, in fetcher_init(d=<bb.data_smart.DataSmart object at 0x91f162c>):
                 pass
    >        revs.clear()
         else:
  File "/edi/setup-scripts/sources/bitbake/lib/bb/persist_data.py", line 147, in SQLTable.clear():
         def clear(self):
    >        self._execute("DELETE FROM %s;" % self.table)
    
  File "/edi/setup-scripts/sources/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

Any idea ? i work on Linux Mint 16 (kind of ubuntu)
Thanks in advance,








John Syne

unread,
Dec 22, 2013, 3:19:51 PM12/22/13
to beagl...@googlegroups.com


From: Robert Ianovich <riano...@gmail.com>
Reply-To: <beagl...@googlegroups.com>
Date: Sunday, December 22, 2013 at 11:53 AM
To: <beagl...@googlegroups.com>
Subject: [beagleboard] Building a cross compilation toolchain

Hello,

I have some problems following this instructions:
http://wind.cs.purdue.edu/doc/crosscompile.html

If I run MACHINE=beaglebone ./oebb.sh bitbake virtual/kernel as root the folowing erro appears:
Hi Robert,

Do not run this as root. Also, do exactly what the output says. Run the following command first:
. environment-angstrom-v2013.06
Note: there is a space between the dot and environment-angstrom-v2013.06.
Now run the command as a regular user.

Regards,
John

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Robert Ianovich

unread,
Dec 22, 2013, 8:00:24 PM12/22/13
to beagl...@googlegroups.com
Hello John,

I figured out few hours ago :) Indeed, user was the issue :) But the mistake was that I took from repository as root so all the files were with that attribute.
I think we should make a wiki to have all this info together, not spending hours for poor or miss information. The Angstrom site is down... too bad.

Anyhow, on Linux Mint (or Ubuntu it's the same thing) one should start all process under a regular user and use sudo when required.
Before running, apt-get g++ and texinfo.
Then wait to complete... 5 hours and still working on my notebook :)

Thanks very much, great community!

fernand...@gmail.com

unread,
Jul 18, 2016, 9:24:58 AM7/18/16
to BeagleBoard
I had the exact same problem and this post saved me a lot of time

thanks guys
Reply all
Reply to author
Forward
0 new messages