cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
164 Views
Registered: ‎11-11-2015

Petalinux error after moving project to another directory

Petalinux 2020, I have been building with no problem but I had to move the project directory. After moving I had to add the PetaLinux files to version control so I followed the instructions in UG1144 and cleaned the project using petalinux-build -x mrproper.

Now when I run pealinux-build I am getting errors.

Here is part of the error. I've attached the full log file. What do I need to do to recover and build my project?

EBUG: Executing python function do_populate_sysroot_setscene
DEBUG: Executing shell function sstate_unpack_package
sysroot-destdir/
sysroot-destdir/sysroot-providers/
sysroot-destdir/sysroot-providers/glibc
sysroot-destdir/sysroot-providers/virtual_libiconv
sysroot-destdir/sysroot-providers/virtual_libc
sysroot-destdir/lib/
sysroot-destdir/lib/libnss_db-2.30.so
sysroot-destdir/lib/libthread_db-1.0.so
sysroot-destdir/lib/libc-2.30.so
sysroot-destdir/lib/libnss_dns-2.30.so
sysroot-destdir/lib/ld-2.30.so
sysroot-destdir/lib/libresolv-2.30.so
sysroot-destdir/lib/libBrokenLocale.so.1
sysroot-destdir/lib/libanl-2.30.so
sysroot-destdir/lib/libresolv.so.2
sysroot-destdir/lib/libmemusage.so
sysroot-destdir/lib/libSegFault.so
sysroot-destdir/lib/libanl.so.1
sysroot-destdir/lib/libnss_compat.so.2
sysroot-destdir/lib/libm.so.6
sysroot-destdir/lib/libnss_compat-2.30.so
sysroot-destdir/lib/libpthread.so.0
sysroot-destdir/lib/librt-2.30.so
sysroot-destdir/lib/libnsl-2.30.so
sysroot-destdir/lib/libBrokenLocale-2.30.so
sysroot-destdir/lib/librt.so.1
sysroot-destdir/lib/libutil.so.1
sysroot-destdir/lib/libdl-2.30.so
sysroot-destdir/lib/libnsl.so.1
sysroot-destdir/lib/libutil-2.30.so
sysroot-destdir/lib/libnss_db.so.2
sysroot-destdir/lib/libpthread-2.30.so

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
WARNING: exit code 2 from a shell command.
ERROR: Error executing a python function in exec_python_func() autogenerated:

0 Kudos
8 Replies
Highlighted
Adventurer
Adventurer
122 Views
Registered: ‎11-11-2015

Any suggestions from Xilinx on this??

0 Kudos
Highlighted
Moderator
Moderator
100 Views
Registered: ‎02-07-2018

HI @mashman 

It is not recommended  to move the petalinux project from one directory to other directory & build.

As all the files/directories will be stored with absolute paths when creating the project. you will see build errors.

if you rename the project directory you need to rum "petalinux-build -x mrproper" and need to build again this will work some times.

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
---------------------------------------------------------------------------------------------

 

0 Kudos
Highlighted
96 Views
Registered: ‎07-23-2019

mrproper has recovered from many weird situations for me

0 Kudos
Highlighted
Adventurer
Adventurer
72 Views
Registered: ‎11-11-2015

I ran petalinux-build -f -x mrproper, and then tried to build with petalinux-build and it failed again. What is the right way to rename a project folder for a PetaLinux project? Do I need to start from scratch?

0 Kudos
Highlighted
61 Views
Registered: ‎07-23-2019

first, will the project, as is, build in the original directory?

0 Kudos
Highlighted
Adventurer
Adventurer
49 Views
Registered: ‎11-11-2015

archangel-lightworks
Fair question, maybe something went wrong with the actual move. I'm doing this on a VM and I have a checkpoint from before the move, I'm going to restore that and try again. What is the proper way to move a PetaLinux project? I need to move it so I can add it to a Git repository and really don't want to start over.

0 Kudos
Highlighted
39 Views
Registered: ‎07-23-2019

VM snapshots are a great thing

I normally don't move PL projects to another folder, why should you? Is just a place where it leaves...

Whenever I had to, I first do a -mrproper clean build, then move the remaining things (allegedly the bare minimum sources).

Petalinux is complex and goes beyond Xilinx hands. It may depend on your settings and add-ons that there is some path hard-coded.

Just a reminder... Xilinx really hates paths with spaces, you don't have that, do you?

0 Kudos
Highlighted
34 Views
Registered: ‎07-23-2019

I wonder if there is a tool kind of 'package project' 'export project' etc. in Petalinux.

Having projects hard-tied to folders make team- and version controlled- work almost impossible.

0 Kudos