-
Notifications
You must be signed in to change notification settings - Fork 47
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
fatal error: too many errors emitted, stopping now #313
Comments
@jensen82 Can you see any specific errors reported by Clang in the log? In general these errors can be resolved by adjusting the compilation database, which can be done through the add_compile_flags:
- -I/opt/my_toolchain/include
remove_compile_flags:
- -I/usr/include
- r: "-m.*" Also see here |
Hi, i'm sorry. Did not work. Here are some details:
|
@jensen82 Ok, can you also paste the output of
? |
Of course... This is clang: This is clang-uml: The requirement is fulfilled.... |
@jensen82 Ok, now I see that you've built Your errors:
state that you need to link Or you can try the |
Sorry, i should have seen it. I thought clang 17 is used for runtime... Thank you |
Just for info. I followed your tutorial to build it. Did you ever try it with MinGw on Windows? |
@jensen82 I haven't although I definitely would like to check whether it's possible to use it. Can you describe a little more your setup? What do you use to compile (MSVC or mingw) for each of the following:
? I don't think it's possible to mix so either all three have to be built using mingw or all using MSVC, but I might be wrong... Also, in the end did get it to work or are you still getting some errors? |
Hi, i tried the installer, still a problem. i attached the console output |
Seems like -fPIC is not supported |
Maybe you need more infos, is there an opportunity to log to a file? |
The problem is that Clang fails on the MSVC sources, in particular:
for instance an error like:
means that Clang version to which Could you describe your setup in more detail so that I can try to reproduce it?
|
@jensen82 You can also adjust the compilation database within the remove_compile_flags:
- '-Wall'
- '-pedantic'
- '--std=c++11'
- '-std=c++11'
add_compile_flags:
- '-std=c++20' You can try different C++ versions, but AFAIK c++11 does not allow loops in constexpr functions, so that's probably why the |
I'm trying to generate a class diagram of my project and got the error in the caption. This is the uml-file
diagrams: class_diagram: type: class title: Basic class diagram example include: paths: ['lib/systemlink/include'] comment_parser: clang plantuml: after: - '{% set e=element("A") %} note left of {{ e.alias }} : {{ trim(e.comment.brief.0) }}' - '{% set e=element("clanguml::t00002::B") %} note top of {{ e.alias }} : {{ trim(e.comment.brief.0) }}' - | note right of {{ alias("D") }} {{ comment("D").text }} end note mermaid: after: - '{% set e=element("A") %} note for {{ e.alias }} "{{ trim(e.comment.brief.0) }}"' - '{% set e=element("clanguml::t00002::B") %} note for {{ e.alias }} "{{ trim(e.comment.brief.0) }}"' - 'note for {{ alias("D") }} "{{ comment("D").text }}"'
My compilation database looks like this:
{ "directory": "C:/dev/projects/myclientLib/myclientLib/source/build/lib/systemlink", "command": "C:\\msys64\\ucrt64\\bin\\g++.exe -DFILELOG -DLOG_ENABLED -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\myclientLiblib\\myclientLib.modules.3rdparty.plog\\1.1.10.69\\build\\native\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\myclientLiblib\\myclientLib.modules.3rdparty.boost.headers\\1.85.0.124\\build\\native\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\myclientLiblib\\modules.cpp.myclientLib.TransportLayer.Client.debug-windows-10-x86_64-gnu.13\\1.3.0\\build\\native\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\myclientLiblib\\modules.cpp.googletest.debug-windows-10-x86_64-gnu.13\\1.14.0\\build\\native\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\systemlink\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\build\\lib\\systemlink -Wall -Wno-unused-parameter -pedantic --std=c++11 -fPIC -frtti -g3 -O0 -DDEBUG -std=c++11 -o CMakeFiles\\myclientLibstatic.dir\\src\\ApsThreatAlertData.cpp.obj -c C:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\systemlink\\src\\ApsThreatAlertData.cpp", "file": "C:/dev/projects/myclientLib/myclientLib/source/lib/systemlink/src/ApsThreatAlertData.cpp", "output": "lib/systemlink/CMakeFiles/myclientLibstatic.dir/src/ApsThreatAlertData.cpp.obj" }, { "directory": "C:/dev/projects/myclientLib/myclientLib/source/build/lib/systemlink", "command": "C:\\msys64\\ucrt64\\bin\\g++.exe -DFILELOG -DLOG_ENABLED -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\myclientLiblib\\myclientLib.modules.3rdparty.plog\\1.1.10.69\\build\\native\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\myclientLiblib\\myclientLib.modules.3rdparty.boost.headers\\1.85.0.124\\build\\native\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\myclientLiblib\\modules.cpp.myclientLib.TransportLayer.Client.debug-windows-10-x86_64-gnu.13\\1.3.0\\build\\native\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\myclientLiblib\\modules.cpp.googletest.debug-windows-10-x86_64-gnu.13\\1.14.0\\build\\native\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\systemlink\\include -IC:\\dev\\projects\\myclientLib\\myclientLib\\source\\build\\lib\\systemlink -Wall -Wno-unused-parameter -pedantic --std=c++11 -fPIC -frtti -g3 -O0 -DDEBUG -std=c++11 -o CMakeFiles\\myclientLibstatic.dir\\src\\IDataManagementFeature.cpp.obj -c C:\\dev\\projects\\myclientLib\\myclientLib\\source\\lib\\systemlink\\src\\IDataManagementFeature.cpp", "file": "C:/dev/projects/myclientLib/myclientLib/source/lib/systemlink/src/IDataManagementFeature.cpp", "output": "lib/systemlink/CMakeFiles/myclientLibstatic.dir/src/IDataManagementFeature.cpp.obj" },
What could be the problem? Is the compilation database malformed?
The text was updated successfully, but these errors were encountered: