[LLVMdev] Color diagnostics

Perry Hung perry at leaflabs.com
Mon Mar 30 11:16:22 PDT 2015


Hi,

I'm using the official 3.6 release binaries for x64 Linux. When compiling
with warnings, I don't see any color diagnostics. Explicitly enabling
-fcolor-diagnostics works fine. I have TERM set to xterm-256color. Any idea
why?

For what it's worth, I tried compiling LLVM/clang from trunk and color
diagnostics work fine by default.

Upon further investigation, I saw that the official binaries were not
linked against libtinfo:

Official binaries:
[14:11:05] perry at meepo  ~/test
zsh▸ ldd /home/perry/opt/clang+llvm-3.6.0-x86_64-linux-gnu/bin/clang
linux-vdso.so.1 =>  (0x00007fff7c5fe000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fbda8a56000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbda8852000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbda854b000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007fbda8247000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbda8031000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbda7c6b000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbda8c99000)


Built from trunk:
[14:11:19] perry at meepo  ~/test
zsh▸ ldd ~/src/llvm-git/build/bin/clang
linux-vdso.so.1 =>  (0x00007fffa4ffe000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f146879d000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f1468574000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f1468355000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f146813c000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007f1467e38000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1467b31000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f146791b000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1467556000)
/lib64/ld-linux-x86-64.so.2 (0x00007f14689c6000)

Is this a build issue or user error?

thanks,
-perry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150330/f35608aa/attachment.html>


More information about the llvm-dev mailing list