Coder Social home page Coder Social logo

Multiprocess compile about llvm-utils HOT 8 CLOSED

zufuliu avatar zufuliu commented on June 11, 2024
Multiprocess compile

from llvm-utils.

Comments (8)

zufuliu avatar zufuliu commented on June 11, 2024

Clang doesn't support the /MP switch (it relis on external build system to do job control, e.g. -jN for make).
I seems saw Clang-CL extension handled multi-process switch differently, will try to test and incorporate their changes.

from llvm-utils.

zufuliu avatar zufuliu commented on June 11, 2024

476ab9f added MultiProcessorCompilation support for VS 2019 and 2022 (v142 and v143 toolsets), it still not work for VS2017 (v141 and v141_xp toolsets).

from llvm-utils.

MohitSethi99 avatar MohitSethi99 commented on June 11, 2024

Build failing with errors:

9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>error: unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>fatal error: PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\LLVM\LLVM.MultiTask_v160.targets(32,5): error MSB6006: "clang-cl.exe" exited with code 1.
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : error : unable to read PCH file ..\bin-int\Dist-windows-x86_64\Arc\Arc.pch: 'no such file or directory'
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>TRACKEDEXEC : fatal error : PCH file '..\bin-int\Dist-windows-x86_64\Arc\Arc.pch' not found: module file not found
9>Done building project "Arc.vcxproj" -- FAILED.

Basically precompiled headers not being compiled before everything else.

from llvm-utils.

zufuliu avatar zufuliu commented on June 11, 2024

I reverted commit cdd750a, which cause build failure when MultiProcessorCompilation is not enabled (e.g. first two attempts at https://github.com/zufuliu/notepad2/actions/runs/3915327216), please test again.

from llvm-utils.

zufuliu avatar zufuliu commented on June 11, 2024

Support for VS 2017 (v141 and v141_xp toolsets) added by 635ea74. however v141 and v141_xp toolsets may fails on VS 2019, see https://github.com/zufuliu/notepad2/actions/runs/3912278824/jobs/6695584999#step:6:7

Not planed for early versions as I no longer have access to them.

from llvm-utils.

MohitSethi99 avatar MohitSethi99 commented on June 11, 2024

I reverted commit cdd750a, which cause build failure when MultiProcessorCompilation is not enabled (e.g. first two attempts at https://github.com/zufuliu/notepad2/actions/runs/3915327216), please test again.

Build Error:

Build started...
1>------ Build started: Project: yaml-cpp, Configuration: Debug x64 ------
2>------ Build started: Project: optick, Configuration: Debug x64 ------
3>------ Build started: Project: ImGui, Configuration: Debug x64 ------
4>------ Build started: Project: Glad, Configuration: Debug x64 ------
5>------ Build started: Project: GLFW, Configuration: Debug x64 ------
6>------ Build started: Project: Box2D, Configuration: Debug x64 ------
7>------ Build started: Project: Arc-ScriptCore, Configuration: Debug x64 ------
7>  Arc-ScriptCore -> D:\CPP\ArcGameEngine\Arc-Editor\Resources\Scripts\Arc-ScriptCore.dll
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1555,5): warning MSB8012: TargetPath(D:\CPP\ArcGameEngine\Arc\vendor\yaml-cpp\bin\Debug-windows-x86_64\yaml-cpp\yaml-cpp.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
4>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1555,5): warning MSB8012: TargetPath(D:\CPP\ArcGameEngine\Arc\vendor\Glad\bin\Debug-windows-x86_64\Glad\Glad.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
3>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1555,5): warning MSB8012: TargetPath(D:\CPP\ArcGameEngine\Arc\vendor\imgui\bin\Debug-windows-x86_64\ImGui\ImGui.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
4>Glad.vcxproj -> D:\CPP\ArcGameEngine\Arc\vendor\Glad\bin\Debug-windows-x86_64\Glad\Glad.lib
1>yaml-cpp.vcxproj -> D:\CPP\ArcGameEngine\Arc\vendor\yaml-cpp\bin\Debug-windows-x86_64\yaml-cpp\yaml-cpp.lib
3>ImGui.vcxproj -> D:\CPP\ArcGameEngine\Arc\vendor\imgui\bin\Debug-windows-x86_64\ImGui\ImGui.lib
1>Done building project "yaml-cpp.vcxproj".
3>Done building project "ImGui.vcxproj".
4>Done building project "Glad.vcxproj".
6>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1555,5): warning MSB8012: TargetPath(D:\CPP\ArcGameEngine\Arc\vendor\box2d\bin\Debug-windows-x86_64\Box2D\Box2D.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
6>Box2D.vcxproj -> D:\CPP\ArcGameEngine\Arc\vendor\box2d\bin\Debug-windows-x86_64\Box2D\Box2D.lib
6>Done building project "Box2D.vcxproj".
5>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1555,5): warning MSB8012: TargetPath(D:\CPP\ArcGameEngine\Arc\vendor\GLFW\bin\Debug-windows-x86_64\GLFW\GLFW.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
5>GLFW.vcxproj -> D:\CPP\ArcGameEngine\Arc\vendor\GLFW\bin\Debug-windows-x86_64\GLFW\GLFW.lib
5>Done building project "GLFW.vcxproj".
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1555,5): warning MSB8012: TargetPath(D:\CPP\ArcGameEngine\Arc\vendor\optick\bin\Debug-windows-x86_64\optick\optick.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
2>optick.vcxproj -> D:\CPP\ArcGameEngine\Arc\vendor\optick\bin\Debug-windows-x86_64\optick\optick.lib
2>Done building project "optick.vcxproj".
8>------ Build started: Project: JoltPhysics, Configuration: Debug x64 ------
8>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1555,5): warning MSB8012: TargetPath(D:\CPP\ArcGameEngine\Arc\vendor\JoltPhysics\bin\Debug-windows-x86_64\JoltPhysics\JoltPhysics.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
8>JoltPhysics.vcxproj -> D:\CPP\ArcGameEngine\Arc\vendor\JoltPhysics\bin\Debug-windows-x86_64\JoltPhysics\JoltPhysics.lib
8>Done building project "JoltPhysics.vcxproj".
9>------ Build started: Project: Arc, Configuration: Debug x64 ------
9>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1555,5): warning MSB8012: TargetPath(D:\CPP\ArcGameEngine\bin\Debug-windows-x86_64\Arc\Arc.lib) does not match the Library's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile).
9>Arc.vcxproj -> D:\CPP\ArcGameEngine\bin\Debug-windows-x86_64\Arc\Arc.lib
9>================ Post-Build: Copying dependencies ================
9>Done building project "Arc.vcxproj".
10>------ Build started: Project: Arc-Editor, Configuration: Debug x64 ------
10>lld-link : error : undefined symbol: public: static void __cdecl ArcEngine::Log::Init(void)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc\src\Arc\Core\EntryPoint.h:8
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\ArcEditorApp.obj:(main)
10>
10>lld-link : error : undefined symbol: private: void __cdecl ArcEngine::Application::Run(void)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc\src\Arc\Core\EntryPoint.h:10
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\ArcEditorApp.obj:(main)
10>
10>lld-link : error : undefined symbol: public: __cdecl ArcEngine::Application::Application(class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> const &)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\ArcEditorApp.cpp:13
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\ArcEditorApp.obj:(public: __cdecl ArcEngine::ArcEditor::ArcEditor(void))
10>
10>lld-link : error : undefined symbol: public: void __cdecl ArcEngine::Application::PushLayer(class ArcEngine::Layer *) const
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\ArcEditorApp.cpp:14
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\ArcEditorApp.obj:(public: __cdecl ArcEngine::ArcEditor::ArcEditor(void))
10>
10>lld-link : error : undefined symbol: public: virtual __cdecl ArcEngine::Application::~Application(void)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\ArcEditorApp.cpp:15
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\ArcEditorApp.obj:(int `public: __cdecl ArcEngine::ArcEditor::ArcEditor(void)'::`1'::dtor$7)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\ArcEditorApp.cpp:17
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\ArcEditorApp.obj:(public: virtual __cdecl ArcEngine::ArcEditor::~ArcEditor(void))
10>
10>lld-link : error : undefined symbol: public: __cdecl ArcEngine::Layer::Layer(class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> const &)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:29
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: __cdecl ArcEngine::EditorLayer::EditorLayer(void))
10>
10>lld-link : error : undefined symbol: private: static class std::shared_ptr<class spdlog::logger> ArcEngine::Log::s_CoreLogger
10>>>> referenced by D:\CPP\ArcGameEngine\Arc\src\Arc\Core\Log.h:27
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: static class std::shared_ptr<class spdlog::logger> & __cdecl ArcEngine::Log::GetCoreLogger(void))
10>>>> referenced by ..\bin-int\Debug-windows-x86_64\Arc-Editor\AssetPanel.obj
10>>>> referenced by ..\bin-int\Debug-windows-x86_64\Arc-Editor\PropertiesPanel.obj
10>
10>lld-link : error : undefined symbol: struct ImGuiStyle & __cdecl ImGui::GetStyle(void)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:146
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:154
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:265
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced 29 more times
10>
10>lld-link : error : undefined symbol: void __cdecl ImGui::SetColorEditOptions(int)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\Utils\EditorTheme.h:208
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: static void __cdecl ArcEngine::EditorTheme::SetStyle(void))
10>
10>lld-link : error : undefined symbol: public: static class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl ArcEngine::FileDialogs::OpenFile(char const *)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:842
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(private: void __cdecl ArcEngine::EditorLayer::OpenProject(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\Panels\PropertiesPanel.cpp:527
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\PropertiesPanel.obj:(public: <auto> __cdecl `private: void __cdecl ArcEngine::PropertiesPanel::DrawComponents(class ArcEngine::Entity)'::`1'::<lambda_4>::operator()(struct ArcEngine::MeshComponent &) const)
10>
10>lld-link : error : undefined symbol: public: static void __cdecl ArcEngine::Renderer2D::ResetStats(void)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:74
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnUpdate(class ArcEngine::Timestep))
10>
10>lld-link : error : undefined symbol: public: static void __cdecl ArcEngine::Renderer3D::ResetStats(void)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:75
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnUpdate(class ArcEngine::Timestep))
10>
10>lld-link : error : undefined symbol: struct ImGuiViewport * __cdecl ImGui::GetMainViewport(void)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:140
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:512
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:593
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(private: void __cdecl ArcEngine::EditorLayer::BeginDockspace(char const *) const)
10>
10>lld-link : error : undefined symbol: float __cdecl ImGui::GetFrameHeight(void)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:147
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:156
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:622
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(private: void __cdecl ArcEngine::EditorLayer::BeginDockspace(char const *) const)
10>>>> referenced 38 more times
10>
10>lld-link : error : undefined symbol: void __cdecl ImGui::PushStyleVar(int, struct ImVec2 const &)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:148
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:155
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:161
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced 32 more times
10>
10>lld-link : error : undefined symbol: void __cdecl ImGui::PushStyleVar(int, float)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:149
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:273
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:288
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced 10 more times
10>
10>lld-link : error : undefined symbol: bool __cdecl ImGui::BeginViewportSideBar(char const *, struct ImGuiViewport *, int, float, int)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:157
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:330
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:431
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>
10>lld-link : error : undefined symbol: bool __cdecl ImGui::BeginMenuBar(void)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:159
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:337
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:436
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>
10>lld-link : error : undefined symbol: bool __cdecl ImGui::BeginMenu(char const *, bool)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:163
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:179
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:195
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced 33 more times
10>
10>lld-link : error : undefined symbol: bool __cdecl ImGui::MenuItem(char const *, char const *, bool, bool)
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:167
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:169
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced by D:\CPP\ArcGameEngine\Arc-Editor\src\EditorLayer.cpp:171
10>>>>               ..\bin-int\Debug-windows-x86_64\Arc-Editor\EditorLayer.obj:(public: virtual void __cdecl ArcEngine::EditorLayer::OnImGuiRender(void))
10>>>> referenced 137 more times
10>
10>lld-link : error : too many errors emitted, stopping now (use /errorlimit:0 to see all errors)
10>Done building project "Arc-Editor.vcxproj" -- FAILED.
Build has been canceled.
========== Elapsed 01:08.620 ==========

Projects build report:
  Status    | Project [Config|platform]
 -----------|---------------------------------------------------------------------------------------------------
  Succeeded | Arc-ScriptCore [Debug|x64]
  Succeeded | yaml-cpp [Debug|x64]
  Succeeded | ImGui [Debug|x64]
  Succeeded | Glad [Debug|x64]
  Succeeded | Box2D [Debug|x64]
  Succeeded | GLFW [Debug|x64]
  Succeeded | optick [Debug|x64]
  Succeeded | JoltPhysics [Debug|x64]
  Succeeded | Arc [Debug|x64]
  Failed    | Arc-Editor [Debug|x64]

Build time 01:08:630
Build ended at 14-01-2023 11:59:46

Was still facing some issues with cross referenced projects within the solution compiled with any of these options enabled: lld-link, llvm-lib, llvm-rc. #12 fixes it.

from llvm-utils.

zufuliu avatar zufuliu commented on June 11, 2024

Hi @MohitSethi99, can we mark this as resolved or are still testing other projects? I'd like to tag v23.01 for recent changes.

from llvm-utils.

MohitSethi99 avatar MohitSethi99 commented on June 11, 2024

It works fine for me as I'm using VS2022 with v143 toolset. Closing the issue, thanks :)

from llvm-utils.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.