cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
460 Views
Registered: ‎08-04-2017

Required perl module(s) not found: Thread::Queue

Jump to solution

I'm trying to build PetaLinux v2020.1 for the UltraZed-EV on Ubuntu 18.04 LTS.  Since there is no Avnet PetaLinux v2020.1 BSP available yet, I have to create the project using the zynqMP template.  The following two commands run without problems:

 

$ petalinux-create --type project --template zynqMP --name plnx
INFO: Create project: plnx
INFO: New project successfully created in /home/jchang/envision/v4/ultrazed-ev/system/plnx

$ petalinux-config --get-hw-description=../sdk/
INFO: sourcing build tools
INFO: Getting hardware description...
INFO: Rename cc_wrapper.xsa to system.xsa
[INFO] generating Kconfig for project
[INFO] menuconfig project
configuration written to /home/jchang/envision/v4/ultrazed-ev/system/plnx/project-spec/configs/config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] extracting yocto SDK to components/yocto
[INFO] sourcing build environment
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating plnxtool conf
[INFO] generating user layers
[INFO] generating workspace directory

 

 

Then I run petalinux-build and I get the following error:

 

$ petalinux-build 
INFO: sourcing build tools
[INFO] building project
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-image-minimal
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:

    Required perl module(s) not found: Thread::Queue 

 

 

How do I fix this error?

1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
286 Views
Registered: ‎08-04-2017

My issue appears be that I had run:

 

$ source /opt/petalinux/2020.1/environment-setup-aarch64-xilinx-linux

 

which caused the wrong perl binary from PetaLinux to be used:

 

$ which perl
/opt/petalinux/2020.1/sysroots/x86_64-petalinux-linux/usr/bin/perl

 

 

Opening up a new terminal and running the following used the correct perl binary and allowed me to build PetaLinux:

 

$ source /tools/Xilinx/Vivado/2020.1/settings64.sh
$ source /opt/pkg/petalinux/2020.1/settings.sh
$ which perl
/usr/bin/perl

 

View solution in original post

5 Replies
Highlighted
Moderator
Moderator
432 Views
Registered: ‎04-24-2017

Hi @jchang_endiag ,

Which Linux distribution OS are you using Ubuntu, CentOS etc.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
Adventurer
Adventurer
403 Views
Registered: ‎08-04-2017

Hi @sandeepg,

 

Thanks for replying.  I am using Ubuntu 18.04 LTS.

 

Best Regards,

Joseph

Highlighted
Visitor
Visitor
328 Views
Registered: ‎10-05-2020

Hello, I also have a problem with that. 

I use Ubuntu 18.04.05... Vitis 2020.1 .. 

please let me know if you have any suggestions.

 

 

0 Kudos
Highlighted
Adventurer
Adventurer
297 Views
Registered: ‎08-04-2017

I tried to install the Thread::Queue perl module and I got:

$ sudo apt-get install libthread-queue-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'perl-modules-5.26' instead of 'libthread-queue-perl'
perl-modules-5.26 is already the newest version (5.26.1-6ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

 

It seems that the Thread::Queue perl module is already installed as part of the perl-modules-5.26 package according to perl-modules-5.26_5.26.1-6_all.deb.  So it seems like the OE-core's config sanity checker is not properly recognizing that the Thread::Queue is already installed as part of perl-modules-5.26.

Any suggestions on how to fix this?

Highlighted
Adventurer
Adventurer
287 Views
Registered: ‎08-04-2017

My issue appears be that I had run:

 

$ source /opt/petalinux/2020.1/environment-setup-aarch64-xilinx-linux

 

which caused the wrong perl binary from PetaLinux to be used:

 

$ which perl
/opt/petalinux/2020.1/sysroots/x86_64-petalinux-linux/usr/bin/perl

 

 

Opening up a new terminal and running the following used the correct perl binary and allowed me to build PetaLinux:

 

$ source /tools/Xilinx/Vivado/2020.1/settings64.sh
$ source /opt/pkg/petalinux/2020.1/settings.sh
$ which perl
/usr/bin/perl

 

View solution in original post