0

I'd like to use Clang's pp-trace tool (on a Kubuntu 16.04 machine)

I already have clang installed. Typing in pp-trace gives me:

The program 'pp-trace' is currently not installed. You can install it by typing:
apt install clang

but ...

$ # apt-get install clang
Reading package lists... Done
Building dependency tree       
Reading state information... Done
clang is already the newest version (1:3.8-33ubuntu3.1).
0 upgraded, 0 newly installed, 0 to remove and 103 not upgraded.

and apt-cache search pp-trace, apt-cache search pptrace also don't yield anything. And, actually,

# ls -la /usr/bin/pp-trace
lrwxrwxrwx 1 root root 28 jun 21 08:33 /usr/bin/pp-trace -> ../lib/llvm-3.8/bin/pp-trace
# ls -la /usr/lib/llvm-3.8/bin/pp-trace
ls: cannot access '/usr/lib/llvm-3.8/bin/pp-trace': No such file or directory

Uninstalling and re-insalling clang-3.8 did not help. What can I do?

16
  • What does dpkg -l clang report? Does it agree with packages.ubuntu.com/xenial/amd64/clang/filelist?
    – muru
    Dec 2 '16 at 15:30
  • @muru: If you meant dpkg -L, then yes, it agrees. If you meant dpkg -l, I've added that.
    – einpoklum
    Dec 2 '16 at 16:45
  • sorry, -L, yes. Since it does, I suppose you should see if /usr/bin/pp-trace is missing and if so, reinstall the clang package.
    – muru
    Dec 2 '16 at 19:58
  • @muru: Serves me right for automating the agreement check rather than actually looking at the list... apparently, my /usr/bin/pp-trace is a dead symlink to ../lib/llvm-3.8/bin/pp-trace.
    – einpoklum
    Dec 2 '16 at 22:51
  • @muru: I uninstalled and reinstalled for the same effect
    – einpoklum
    Dec 2 '16 at 22:55
0

From looking at packages.ubuntu.org, and specifically - the llvm-3.8 package for Xenial Xerus on AMD64, it seems the file is just missing.

This Debian bug may be relevant.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.