Among other things LLVM/Clang needs GCC's C++ library (libstdc++). However, there's also libc++, alternative C++ library from LLVM team, but it's still under development (to test it, install libcxx-svn and libcxxabi-svn from AUR and compile like "clang++ -stdlib=libc++ -lc++abi test.cpp"). Probably that's why llvm/clang package maintainer decided to use libstdc++ as default C++ library for Clang.
Why libcxx-svn depends on gcc-libs?
]]>falcongg wrote:The clang from extra repo depends on gcc, you can remove it with
pacman -Rddn
but clang will not work thus it needs gcc linker. I don't know why in the world author of clang package made it completely gcc dependable. It's hell. I'm looking for a way to run clang/llvm without gcc at all. Will post results if I achieve this.
That's weird... clang can (should) use the llvm linker insteand of gcc...
The words "linker" and "gcc" or "clang" do not go together...
]]>The clang from extra repo depends on gcc, you can remove it with
pacman -Rddn
but clang will not work thus it needs gcc linker. I don't know why in the world author of clang package made it completely gcc dependable. It's hell. I'm looking for a way to run clang/llvm without gcc at all. Will post results if I achieve this.
That's weird... clang can (should) use the llvm linker insteand of gcc...
]]>That, is insane!
]]>pacman -Rddn
but clang will not work thus it needs gcc linker. I don't know why in the world author of clang package made it completely gcc dependable. It's hell. I'm looking for a way to run clang/llvm without gcc at all. Will post results if I achieve this.
]]>$ sudo pacman -R gcc
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: clang: requires gcc=4.6.2
:: libtool: requires gcc=4.6.2
$
Any ideas?
]]>