-
Notifications
You must be signed in to change notification settings - Fork 77
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
Error compiling 1.11.0 with LLVM and musl #256
Comments
The incomplete type seems to be Either musl lacks std::pair or it has some bugs, I don't know. I do not officially support musl.. too niche.. and too incomplete. If you can figure out a patch to fix this, it's welcome but I lack the time to support this. Sorry man. |
Thanks, but if i change the step to reproduce to |
Hmm. Ah, interesting. Well one big difference is that 1.11.0 switched the compiler standard to use C++20. Maybe there's something weird/out of spec with musl and C++20? |
Hmm. I wonder if this error might be related to llvm trying to use libstcd++ (gcc's C++ headers and lib) rather than its own libc++ (clang C++ headers and lib)... from the paths in the above error log it looks like that might be what's going on. And it could be that with language standard c++17 it "just worked" but with c++20 somehow that trips things up. You may have to figure out what flags to use to use the llvm/clang headers? No idea man.. this is kind of beyond the scope of my time commitments right now.. but if you do figure it out, patches welcome. |
It's out of my scope too, but I found some possible related problems. Maybe someone could find the issues helpful. llvm/llvm-project#62166 llvm/llvm-project#59966 llvm/llvm-project#59292 |
Seems to be something related to an incomplete type being used in a standard library container, specifically
std::vector<std::pair<QByteArray, (anonymous namespace)::Container>>
located onsrc/Json/Json_Parser.cpp
.Compile just fine with
g++
with the same setup.System:
Compiling flags:
Dependencies:
Steps to reproduce:
Error:
The text was updated successfully, but these errors were encountered: