[cfe-dev] Building clang 5 (for coroutines)
Kirit Sælensminde via cfe-dev
cfe-dev at lists.llvm.org
Wed Jun 14 23:27:43 PDT 2017
On 14/06/17 23:41, Tim Northover wrote:
> The actual errors are pretty uninspiring (same as before: libstdc++
> not being used). The compile command that's actually failing would be
> useful. You can get that by running "make VERBOSE=1".
>
> My best suspicion at the moment is that whatever docker is, it's
> providing a weird toolchain that only links statically, which means
> that the order of libraries matters more during the link phase and
> libstdc++ might be too early. But we need to know exactly what's being
> compiled to work out where to change the CMake scripts so it works.
I've now tried this on some other machines (no builds are done in
docker, but I think that's what I'm going to try next) and I get the
same error on all of them, all against subversion trunk.
What I don't really understand is if I'm building libc++ why would it
want to link against libstdc++? Why wouldn't it link against the copy of
libcxxabi that I'm also building? Isn't that what it should do for a
self-contained build?
I've found the cxx and cxxabi targets in the make and have tried to
build cxxabi first (which works fine), but the cxx target still doesn't
work.
What it looks like to me is that the cmake configuration just doesn't
have libcxxabi as a dependency for libcxx.
Kirit
More information about the cfe-dev
mailing list