<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14691</bug_id>
          
          <creation_ts>2022-01-16 16:46:08 +0000</creation_ts>
          <short_desc>Bitbake does not check for all required perl modules to build oe-core</short_desc>
          <delta_ts>2024-02-22 18:07:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Phlip Balister">philip</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>michael.opdenacker</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tgamblin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>92327</commentid>
    <comment_count>0</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2022-01-16 16:46:08 +0000</bug_when>
    <thetext>Doing a clean build on a new install of F35 I found I had to install the following perl modules to culd oe-core. There are more needed for meta-qt5, but they should be specified by that layer. Note, this check really should be driven by the layer, but seems like it is in bitbake today, so this is where I filed the report.

For  autoconf-native

perl-File-Compare
perl-File-Copy

For libxcrypt

perl-locale
perl-open</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94589</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-12-22 16:39:33 +0000</bug_when>
    <thetext>Sakib won&apos;t get to this so moving to unassigned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96066</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-07-26 21:22:00 +0000</bug_when>
    <thetext>Bulk move of 64 bugs to 4.3 M3 after a quick review.
If a bug is actually fixed, please add a commit link and resolve it.
-- Randy for YP bug team.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96481</commentid>
    <comment_count>3</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-09-14 16:45:12 +0000</bug_when>
    <thetext>Moved to M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97064</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:29:10 +0000</bug_when>
    <thetext>Bulk move to 5.0 M1. -- Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97647</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-12-21 21:58:26 +0000</bug_when>
    <thetext>Added Michael to CC in case he&apos;d like to test this as part of the doc work...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97706</commentid>
    <comment_count>6</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2023-12-22 22:24:17 +0000</bug_when>
    <thetext>I have a brand new Fedora 39 install and I am about to do a fresh build of master. Before I do this, any requests how you would like me to collect missing module information?

My process is install some layers and bitbake, run bitbake, install things that bitbake asks for before attempting a build, then debug build failures by installing modules that are not checked for.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97719</commentid>
    <comment_count>7</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2024-01-01 22:08:31 +0000</bug_when>
    <thetext>Documenting my process for getting bitbake/master going on new Fedora 39 install.

[balister@dublin build (master-qemu-next)]$ bitbake gnuradio
ERROR: The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:
  chrpath diffstat g++ lz4c rpcgen

[balister@dublin build (master-qemu-next)]$ sudo dnf install chrpath diffstat g++ lz4c rpcgen
Last metadata expiration check: 3:07:52 ago on Mon 01 Jan 2024 01:16:11 PM EST.
No match for argument: lz4c
Error: Unable to find a match: lz4c

[balister@dublin build (master-qemu-next)]$ sudo dnf install chrpath diffstat g++ lz4 rpcgen

[balister@dublin build (master-qemu-next)]$ bitbake gnuradio
ERROR:  OE-core&apos;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 

[balister@dublin build (master-qemu-next)]$ sudo dnf install perl-Thread-Queue

[balister@dublin build (master-qemu-next)]$ bitbake -c cleansstate autoconf-native
[balister@dublin build (master-qemu-next)]$ bitbake autoconf-native

.....
| BEGIN failed--compilation aborted at ../autoconf-2.72d/lib/Autom4te/FileUtils.pm line 151.
| Compilation failed in require at bin/autom4te line 46.
| BEGIN failed--compilation aborted at bin/autom4te line 46.
| Can&apos;t locate File/Compare.pm in @INC (you may need to install the File::Compare module) (@INC entries checked: ../autoconf-2.72d/lib /usr/local/lib64/perl5/5.38 /usr/local/share/perl5/5.38 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ../autoconf-2.72d/lib/Autom4te/FileUtils.pm line 151.
| BEGIN failed--compilation aborted at ../autoconf-2.72d/lib/Autom4te/FileUtils.pm line 151.

.....
[balister@dublin build (master-qemu-next)]$ sudo dnf install perl-File-Compare
[balister@dublin build (master-qemu-next)]$ bitbake  autoconf-native
....
| BEGIN failed--compilation aborted at bin/autom4te line 46.
| make[1]: *** [Makefile:2046: lib/autotest/autotest.m4f] Error 2
| Can&apos;t locate File/Copy.pm in @INC (you may need to install the File::Copy module) (@INC entries checked: ../autoconf-2.72d/lib /usr/local/lib64/perl5/5.38 /usr/local/share/perl5/5.38 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ../autoconf-2.72d/lib/Autom4te/FileUtils.pm line 152.
.....
[balister@dublin build (master-qemu-next)]$ sudo dnf install perl-File-Copy

[balister@dublin build (master-qemu-next)]$ bitbake -c cleansstate libxcrypt
[balister@dublin build (master-qemu-next)]$ bitbake libxcrypt
....
| Can&apos;t locate open.pm in @INC (you may need to install the open module) (@INC entries checked: /usr/local/lib64/perl5/5.38 /usr/local/share/perl5/5.38 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ../git/build-aux/scripts/expand-selected-hashes line 20.
| BEGIN failed--compilation aborted at ../git/build-aux/scripts/expand-selected-hashes line 20.
....
[balister@dublin build (master-qemu-next)]$ sudo dnf install perl-open
[balister@dublin build (master-qemu-next)]$ bitbake libxcrypt
....
| checking whether all ucontext.h functions are available... yes
| Can&apos;t locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC entries checked: /usr/local/lib64/perl5/5.38 /usr/local/share/perl5/5.38 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ../git/build-aux/scripts/expand-selected-hashes line 24.
| BEGIN failed--compilation aborted at ../git/build-aux/scripts/expand-selected-hashes line 24.
....
[balister@dublin build (master-qemu-next)]$ sudo dnf install perl-FindBin
[balister@dublin build (master-qemu-next)]$ bitbake libxcrypt

After going through methodically, I am wondering if this should be addressed at the recipe level for autoconf-native and libxcrypt?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97979</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-01-25 14:28:42 +0000</bug_when>
    <thetext>Bulk move of bugs owned by &quot;unassigned&quot; from 5.0-M2 to 5.0-M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98029</commentid>
    <comment_count>9</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2024-01-25 15:09:33 +0000</bug_when>
    <thetext>Commit 3d09e759f838a7ce66fd1fb6e6a6653abce9e3a4 should resolve this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98274</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-22 18:07:32 +0000</bug_when>
    <thetext>Thanks Philip, for:

https://git.openembedded.org/openembedded-core/commit/?id=3d09e759f838a7ce66fd1fb6e6a6653abce9e3a4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>