You are not logged in.

#1 2018-06-29 22:52:40

nbd
Member
Registered: 2014-08-04
Posts: 389

[SOLVED] What happened to Clang?

Hi,

after a recent system update Vim plugin YouCompleteMe stopped working. This plugin uses Clang and needs to be recompiled when a new version of Clang is released.

I recompiled it with the current Arch's Clang version - 6.0 - and YCM still doesn't work. I checked the different versions of libclang.so which YCM has been compiled in the past and see the following:

libclang.so.3.8 - 15356008 bytes
libclang.so.3.9 - 23159680 bytes
libclang.so.4.0 - 25171528 bytes
libclang.so.6.0 - 556032 bytes

I downloaded official precompiled binaries from LLVM website (for Debian, there are no official binaries for Arch) and see that libclang.so.6.0 is more that 70 Mb size.

Is libclang.so.6 for Arch is broken? (Or maybe is compiled with extremely lightweight flags?)

Last edited by nbd (2018-07-01 05:49:37)


bing different

Offline

#2 2018-06-30 21:41:14

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,421

Re: [SOLVED] What happened to Clang?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2018-06-30 21:57:51

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED] What happened to Clang?

Is such difference in size between the official binary for Debian (70 Mb) and Arch's binary (500 Kb) OK? Does someone have YouCompleteMe working with the current Arch's Clang package?

(The whole set of CLang binaries for Debian is more than 1 GB size, so compiling them myself is a last resort.)


bing different

Offline

#4 2018-07-01 04:57:13

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] What happened to Clang?

It's completely okay. The full package is 60 MB worth of shared libraries.

$ mkdir /tmp/clang-6.0.0-1-x86_64.pkg
$bsdtar -xf /var/cache/pacman/pkg/clang-6.0.0-1-x86_64.pkg.tar.xz -C /tmp/clang-6.0.0-1-x86_64.pkg
$ cd /tmp/clang-6.0.0-1-x86_64.pkg/usr/lib
$ du -sh .
60M	.
$ objdump -p libclang.so|grep NEEDED
  NEEDED               libclangAST.so.6
  NEEDED               libclangBasic.so.6
  NEEDED               libclangFrontend.so.6
  NEEDED               libclangIndex.so.6
  NEEDED               libclangLex.so.6
  NEEDED               libclangSema.so.6
  NEEDED               libclangTooling.so.6
  NEEDED               libclangARCMigrate.so.6
  NEEDED               libclangTidyPlugin.so.6
  NEEDED               libclangIncludeFixerPlugin.so.6
  NEEDED               libdl.so.2
  NEEDED               libLLVM-6.0.so
  NEEDED               libstdc++.so.6
  NEEDED               libc.so.6

If YCM doesn't work, it's got nothing to do with the size of libclang.so


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2018-07-01 05:48:58

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED] What happened to Clang?

Thanks! I'll mark this thread solved.


bing different

Offline

Board footer

Powered by FluxBB