Debian Bug report logs - #941614
/usr/share/clang/scan-build-8/bin/scan-build: scan-build fails to find scan-view

version graph

Package: clang-tools-8; Maintainer for clang-tools-8 is LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>;

Affects: src:wireguard

Reported by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Date: Wed, 2 Oct 2019 20:33:02 UTC

Severity: normal

Found in version llvm-toolchain-8/1:8.0.1-3

Fixed in version 1:8.0.1-10+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, dkg@fifthhorseman.net, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>:
Bug#941614; Package clang-tools-8. (Wed, 02 Oct 2019 20:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Daniel Kahn Gillmor <dkg@fifthhorseman.net>:
New Bug report received and forwarded. Copy sent to dkg@fifthhorseman.net, LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>. (Wed, 02 Oct 2019 20:33:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /usr/share/clang/scan-build-8/bin/scan-build: scan-build fails to find scan-view
Date: Wed, 02 Oct 2019 16:12:23 -0400
Package: clang-tools-8
Version: 1:8.0.1-3+b1
Severity: normal
File: /usr/share/clang/scan-build-8/bin/scan-build
Control: affects -1 src:wireguard

I'm running scan-build as part of "make check" in src/ of the
wireguard package.  It terminates with this message:

    Use of uninitialized value $ScanView in exec at /usr/bin/scan-build line 1920.
    Can't exec "": No such file or directory at /usr/bin/scan-build line 1920.

As far as i can tell, this is due to weird path shenanigans:

   1917       my $ScanView = Cwd::realpath("$RealBin/scan-view");
   1918       if (! -x $ScanView) { $ScanView = "scan-view"; }
   1919       if (! -x $ScanView) { $ScanView = Cwd::realpath("$RealBin/../../scan-view/bin/scan-view"); }
   1920       exec $ScanView, "$Options{OutputDir}";

Note that debian puts these binaries in places that don't necessarily
line up with the above due to injected version numbers:

0 dkg@alice:~$ for x in build view; do printf '%s: %s\n' scan-$x $(readlink -f $(which scan-$x) ); done
scan-build: /usr/share/clang/scan-build-8/bin/scan-build
scan-view: /usr/share/clang/scan-view-8/bin/scan-view
0 dkg@alice:~$ 

Can't it just search in $PATH?

Thanks for maintaining clang-tools in debian!

       --dkg

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages clang-tools-8 depends on:
ii  clang-8      1:8.0.1-3+b1
ii  libc6        2.29-2
ii  libclang1-8  1:8.0.1-3+b1
ii  libgcc1      1:9.2.1-8
ii  libllvm8     1:8.0.1-3+b1
ii  libstdc++6   9.2.1-8
ii  python3      3.7.3-1

clang-tools-8 recommends no packages.

clang-tools-8 suggests no packages.

-- no debconf information



Added indication that 941614 affects src:wireguard Request was from Daniel Kahn Gillmor <dkg@fifthhorseman.net> to submit@bugs.debian.org. (Wed, 02 Oct 2019 20:33:04 GMT) (full text, mbox, link).


Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Sun, 08 Nov 2020 21:48:03 GMT) (full text, mbox, link).


Notification sent to Daniel Kahn Gillmor <dkg@fifthhorseman.net>:
Bug acknowledged by developer. (Sun, 08 Nov 2020 21:48:03 GMT) (full text, mbox, link).


Message #12 received at 941614-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 941614-done@bugs.debian.org,944990-done@bugs.debian.org,949191-done@bugs.debian.org,970029-done@bugs.debian.org,
Cc: llvm-toolchain-8@packages.debian.org
Subject: Bug#973479: Removed package(s) from unstable
Date: Sun, 08 Nov 2020 21:45:53 +0000
Version: 1:8.0.1-10+rm

Dear submitter,

as the package llvm-toolchain-8 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/973479

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Joerg Jaspert (the ftpmaster behind the curtain)



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 07 Dec 2020 07:25:27 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Dec 17 22:09:40 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.