cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
duane
Visitor
Visitor
1,743 Views
Registered: ‎04-03-2018

Recover from moving project directory

Jump to solution

I moved my project directory from one location to another. I could no longer build using petalinux-build. If I start over from the .bsp file, the petalinux-build works properly.

 

What do I need to do in order to use petalinux-build after moving the directory? Is there a "clean" that can be used?

 

The error I received is:

 

$ petalinux-build -v
[INFO] building project
[INFO] sourcing bitbake
ERROR: Failed to source bitbake
ERROR: Failed to build project
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!

 

 

And the build.log contained:

 

$ cat build/build.log
[INFO] building project
[INFO] sourcing bitbake
SDK environment now set up; additionally you may now run devtool to perform development tasks.
Run devtool --help for further details.

### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
core-image-minimal
core-image-sato
meta-toolchain
meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
ERROR: Only one copy of bitbake should be run against a build directory
ERROR: Failed to add meta-plnx-generated layer
ERROR: Failed to source bitbake
ERROR: Failed to build project

 

 

 

0 Kudos
1 Solution

Accepted Solutions
shabbirk
Moderator
Moderator
1,909 Views
Registered: ‎12-04-2016

Hi 

 

It looks from this error message (ERROR: Only one copy of bitbake should be run against a build directory) that alredy you have a running instance of bitbake.

Check to see if you have bitbake.lock file in build/ directory and remove it and also clean the build using petalinux-build -x mrproper and do the rebuild using petalinux-build

 

 

Best Regards

Shabbir

View solution in original post

0 Kudos
1 Reply
shabbirk
Moderator
Moderator
1,910 Views
Registered: ‎12-04-2016

Hi 

 

It looks from this error message (ERROR: Only one copy of bitbake should be run against a build directory) that alredy you have a running instance of bitbake.

Check to see if you have bitbake.lock file in build/ directory and remove it and also clean the build using petalinux-build -x mrproper and do the rebuild using petalinux-build

 

 

Best Regards

Shabbir

View solution in original post

0 Kudos