[Bug 2029924] Re: [SRU] "Can't locate lcovutil.pm" after updating to 2.0-1

Bas Prins 2029924 at bugs.launchpad.net
Fri Mar 8 18:20:01 UTC 2024


Hi Sudip,

Still trying to get lcov working on and off :).

You asked for the output of apt cache:

bp at bas-hp:~ % apt-cache policy lcov                       
lcov:
  Installed: (none)
  Candidate: 2.0-1
  Version table:
     2.0-1ubuntu0.1 400
        100 http://nl.archive.ubuntu.com/ubuntu mantic-proposed/universe amd64 Packages
        100 http://nl.archive.ubuntu.com/ubuntu mantic-proposed/universe i386 Packages
     2.0-1 500
        500 http://nl.archive.ubuntu.com/ubuntu mantic/universe amd64 Packages
        500 http://nl.archive.ubuntu.com/ubuntu mantic/universe i386 Packages
        100 /var/lib/dpkg/status

So this means I should be able to install 2.0-1 "400" from proposed, and
2.0-1 "500" from universe? Or what exactly is this telling me?

I just tried to :
sudo apt-get install lcov -t mantic-proposed

Which results in:

bp at bas-hp:~ % sudo apt-get install lcov -t mantic-proposed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgstreamer-plugins-bad1.0-0 libgupnp-igd-1.6-0 libnice10
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  lcov
0 upgraded, 1 newly installed, 0 to remove and 76 not upgraded.
Need to get 0 B/177 kB of archives.
After this operation, 744 kB of additional disk space will be used.
Selecting previously unselected package lcov.
(Reading database ... 332568 files and directories currently installed.)
Preparing to unpack .../archives/lcov_2.0-1_all.deb ...
Unpacking lcov (2.0-1) ...
Setting up lcov (2.0-1) ...
Processing triggers for man-db (2.11.2-3) ...


And then when running lcov --version 

bp at bas-hp:~ % lcov --version
Can't locate lcovutil.pm in @INC (you may need to install the lcovutil module) (@INC contains: /usr/local/lib/lcov /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/bin/lcov line 102.
BEGIN failed--compilation aborted at /usr/bin/lcov line 102.

still gives me the same error.

What am I still doing wrong?

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2029924

Title:
  [SRU] "Can't locate lcovutil.pm" after updating to 2.0-1

Status in lcov package in Ubuntu:
  Fix Released
Status in lcov source package in Mantic:
  Confirmed
Status in lcov package in Debian:
  Fix Released

Bug description:
  [ Impact ]

  lcov is completely unusable as it will always give the following error
  when lcov is executed.

  $ lcov --help
  Can't locate lcovutil.pm in @INC (you may need to install the lcovutil module) (@INC contains: /usr/local/lib/lcov /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/bin/lcov line 102.
  BEGIN failed--compilation aborted at /usr/bin/lcov line 102.

  Update:
  The error with lcov --help has been fixed in -proposed but it was noticed in the verification that lcov is still unusable and can not generate report. And the errors seen are same as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1043009#10.

  
  [ Test Plan ]

   * install lcov
   * execute "lcov --help"

  A more detailed test plan to test the functionality:

  1. Use the attached test.c file
  2. cc test.c -fprofile-arcs -ftest-coverage -lgcov
  3. ./a.out
  4. lcov --base-directory . --directory . --capture --output-file i3.info
  5. genhtml -o /tmp/i3-coverage/ i3.info

  
  [ Where problems could occur ]

   * There is no change in the code, it only installs a file which lcov
  expects at runtime. So, user should not see any change in the known
  behaviour.

   * For the incremental diff, its removing two patches for old gcc
  which Debian has already removed. These patches were modifying geninfo
  to add support for old gcc. But since gcc-13 will be installed by
  default in Mantic so these patches were creating new problems.

  Since it is possible to install gcc-9 in Mantic, so lcov will be not
  work in that case. But I have verified that none of the "lcov" package
  in mantic or mantic-proposed works with gcc-9 currently. So removing
  these old patches will not introduce any new regression.

  
  [ Other Info ]

   * There are few more changes apart from installing "lcovutil.pm".
   * Multi threading had to be disabled in the build, otherwise the tests during the build are failing. Debian has disabled the tests for this but it is better to keep the tests enabled. I have also sent the chane to Debian - https://salsa.debian.org/mckinstry/lcov/-/merge_requests/2
   * lcov also needs libcapture-tiny-perl and libdatetime-perl at run time. This has been done in Debian - https://salsa.debian.org/mckinstry/lcov/-/commit/1427b494b40c4e8e23055bd33b0625d341898456

  Update:
  * Debian has removed the old gcc compatibility patches at https://salsa.debian.org/mckinstry/lcov/-/commit/3c952e83b08652ec4233de0b07a1c8b55109831e. 

  [ Original Bug Description ]

  The new lcov version is broken.

  $ lcov
  Can't locate lcovutil.pm in @INC (you may need to install the lcovutil module) (@INC contains: /usr/local/lib/lcov /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/bin/lcov line 102.
  BEGIN failed--compilation aborted at /usr/bin/lcov line 102.

  Reported upstream https://bugs.debian.org/cgi-
  bin/bugreport.cgi?bug=1043009

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/2029924/+subscriptions




More information about the Ubuntu-sponsors mailing list