UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor duane
Visitor
1,135 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
Moderator
Moderator
1,301 Views
Registered: ‎12-04-2016

Re: Recover from moving project directory

Jump to solution

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
Moderator
Moderator
1,302 Views
Registered: ‎12-04-2016

Re: Recover from moving project directory

Jump to solution

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