Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build YouCompleteMe with Clang #45

Closed
jalcine opened this issue Feb 6, 2013 · 1 comment
Closed

Can't build YouCompleteMe with Clang #45

jalcine opened this issue Feb 6, 2013 · 1 comment

Comments

@jalcine
Copy link

jalcine commented Feb 6, 2013

So I had Clang as my default compiler on my system. When I tried to build YouCompleteMe with Clang, it kept failing with it saying it couldn't find a header (<cstddef> to be exact). My result looked something like this (click to expand):

Snapshot of verbose build

I think it's something to do with Clang not using the includes provided by libstdc++6-4.7-dev (the one I use), only GCC seems able to finding this.

The following is my system specifications, just in case someone else runs into this issue.

$ uname -a
Linux laptop.jalcine.me 3.8.0-4-generic 8-Ubuntu SMP Fri Feb 1 18:02:56 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04
Codename: raring

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.2-20ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-20ubuntu1)

$ clang -v
Ubuntu clang version 3.2-1~exp5ubuntu2 (tags/RELEASE_32/final) (based on LLVM 3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix

$ llvm-clang -v
Ubuntu clang version 3.2-1~exp5ubuntu2 (tags/RELEASE_32/final) (based on LLVM 3.2)
Target: llvm
Thread model: posix

@Valloric
Copy link
Member

Valloric commented Feb 6, 2013

Since it seems like a machine-specific/configuration-related issue, I'm closing this. Thanks for posting it though, it might come hand to me or someone eles in the future.

@Valloric Valloric closed this as completed Feb 6, 2013
@hardboydu hardboydu mentioned this issue Jul 4, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants