cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
742 Views
Registered: ‎05-12-2017

package at-spi2-core contains bad RPATH

Hi,

I've created a new PetaLinux 2019.1 project for ZCU104 using the BSP xilinx-zcu104-v2019.1-final.bsp.

source /opt/Xilinx/petalinux/2019.1/settings.sh
cd ~/fpga/ZCU104
petalinux-create -t project -s /data/xilinx-zcu104-v2019.1-final.bsp -n petalinux
cd petalinux

When running:

petalinux-build

this error occurs:

[INFO] building project
[INFO] generating Kconfig for project
[INFO] silentconfig project
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating bbappends for project . This may take time !
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating user layers
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating petalinux-user-image.bb
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |############################################################################################################################################################################| Time: 0:00:13
Parsing of 2777 .bb files complete (0 cached, 2777 parsed). 3812 targets, 150 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#########################################################################################################################################################################| Time: 0:00:10
Checking sstate mirror object availability: 100% |#################################################################################################################################################| Time: 0:00:15
Sstate summary: Wanted 2148 Found 1430 Missed 1436 Current 0 (66% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: at-spi2-core-2.28.0-r0 do_package_qa: QA Issue: package at-spi2-core contains bad RPATH $ORIGIN/../../../../../../../../../../../../../home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/recipe-sysroot/usr/lib in file /home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/packages-split/at-spi2-core/usr/lib/libatspi.so.0.0.1
package at-spi2-core contains bad RPATH $ORIGIN/../../../../../../../../../../../../../home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/recipe-sysroot/usr/lib in file /home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/packages-split/at-spi2-core/usr/lib/libatspi.so.0.0.1
package at-spi2-core contains bad RPATH $ORIGIN/../../../../../../../../../../../../../home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/recipe-sysroot/usr/lib in file /home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/packages-split/at-spi2-core/usr/libexec/at-spi-bus-launcher
package at-spi2-core contains bad RPATH $ORIGIN/../../../../../../../../../../../../../home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/recipe-sysroot/usr/lib in file /home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/packages-split/at-spi2-core/usr/libexec/at-spi-bus-launcher
package at-spi2-core contains bad RPATH $ORIGIN/../atspi:$ORIGIN/../../../../../../../../../../../../../home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/recipe-sysroot/usr/lib in file /home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/packages-split/at-spi2-core/usr/libexec/at-spi2-registryd
package at-spi2-core contains bad RPATH $ORIGIN/../atspi:$ORIGIN/../../../../../../../../../../../../../home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/recipe-sysroot/usr/lib in file /home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/packages-split/at-spi2-core/usr/libexec/at-spi2-registryd [rpaths]
ERROR: at-spi2-core-2.28.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: at-spi2-core-2.28.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/temp/log.do_package_qa.41288
ERROR: Task (/opt/Xilinx/petalinux/2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-support/atk/at-spi2-core_2.28.0.bb:do_package_qa) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6006 tasks of which 4192 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /opt/Xilinx/petalinux/2019.1/components/yocto/source/aarch64/layers/core/meta/recipes-support/atk/at-spi2-core_2.28.0.bb:do_package_qa
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

Attached you can find the mentioned log file. The host OS is Ubuntu 16.04.6 LTS.

Can somebody give me a hint on fixing this error?

Thanks

9 Replies
Highlighted
Explorer
Explorer
587 Views
Registered: ‎03-22-2017

Re: package at-spi2-core contains bad RPATH

Did you fix this issue?

0 Kudos
Observer
Observer
533 Views
Registered: ‎07-17-2019

Re: package at-spi2-core contains bad RPATH

 


@gdg wrote:

Did you fix this issue?


Seconded

0 Kudos
Highlighted
Observer
Observer
500 Views
Registered: ‎05-12-2017

Re: package at-spi2-core contains bad RPATH

Sorry, still no solution found.

0 Kudos
Highlighted
Moderator
Moderator
435 Views
Registered: ‎04-24-2017

Re: package at-spi2-core contains bad RPATH

Hi @stoepsel93 ,

I was unable to repoduce the issues on our machines. Can you use chrpath for all the files corrupted files as shown below.

  1. Create a bbappend file for at-spi2-core in meta-user layer 
    $ mkdir -p <plnx-proj-root>/project-spec/meta-user/recipes-support/atk
    $ touch <plnx-proj-root>/project-spec/meta-user/recipes-support/atk/at-spi2-core_%.bbappend
  2. In at-spi2-core_%.bbapend file add a do_install_append bitbake task function and use chrpath to fix the rpath for all the corrupted files which is mentioned in build log. 
    package at-spi2-core contains bad RPATH $ORIGIN/../atspi:$ORIGIN/../../../../../../../../../../../../../home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/recipe-sysroot/usr/lib in file /home/patrick/fpga/ZCU104/petalinux/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/packages-split/at-spi2-core/usr/libexec/at-spi2-registryd [rpaths]
    

    do_install_append () {
        chrpath -d ${D}${libexecdir}/at-spi2-registryd
    }
  3. Clean sstate for at-spi-core and rebuild the package.
    $ petalinux-build -c at-spi2-core -x cleansstate
    $ petalinux-build -c at-spi2-core
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
Observer
Observer
290 Views
Registered: ‎07-19-2018

Re: package at-spi2-core contains bad RPATH

Thank you for help, but I got the same error after implementing your steps. I only took your solution and replace "do_install_append {" by "do_install_append () {".

Do you have any other solution?

 

Thanks,
Domagoj

0 Kudos
Highlighted
Moderator
Moderator
269 Views
Registered: ‎04-24-2017

Re: package at-spi2-core contains bad RPATH

Hi @dvukadin ,

 

There was a typo mistake I've updated the post, Let me investigate on this one again.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
Observer
Observer
242 Views
Registered: ‎07-19-2018

Re: package at-spi2-core contains bad RPATH

Hi @sandeepg ,

I fixed the error from yesterday, it was not the same as I thought. I had to add a new line "chrpath -d ${D}${libexecdir}/at-spi-bus-launcher".

Now I have similar error and don't know how to fix it:

"package at-spi2-core contains bad RPATH $ORIGIN/../../../../../../../../../../../../../../../../../../home/tiris/work/hp147ad/trunk/software/Linux/petalinux_v2019.1/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/recipe-sysroot/usr/lib in file /home/tiris/work/hp147ad/trunk/software/Linux/petalinux_v2019.1/build/tmp/work/aarch64-xilinx-linux/at-spi2-core/2.28.0-r0/packages-split/at-spi2-core/usr/lib/libatspi.so.0.0.1 [rpaths]"

Added line "chrpath -d ${D}${libexecdir}/libatspi.so.0.0.1" does not help.

Any help would be appreciated.

 

 

0 Kudos
Highlighted
Observer
Observer
227 Views
Registered: ‎07-19-2018

Re: package at-spi2-core contains bad RPATH

just reply to my last post: correct line is "chrpath -d ${D}${libdir}/libatspi.so.0.0.1".

After that, I ran into another similar error.

I think I have much bigger problem. I suspect my python environment is not installed properly. I have Ubuntu 16.04.6 and python2.7 created by anaconda.

Thanks,
dvukadin

0 Kudos
Highlighted
Observer
Observer
187 Views
Registered: ‎07-19-2018

Re: package at-spi2-core contains bad RPATH

I fixed my errors. It seems petalinux or yocto recipes cannot resolve symlinks. Since my project is located on my second disk, I have always tried to access via symbolic link. 

When I access to project through real path and run "petalinux-build", I can build without errors.

Thanks!

 

Regards,

dvukadin

0 Kudos