[cfe-users] Cannot build Clang etc. on Windows in Debug Mode
Hello List. I hope I have subscribed to the correct List - there are a lot of them :) My Problem is: Since the last 2.5 Weeks I try to compile Clang Release/10.x in Debug Mode. Unfortunately the build always ends with those last Lines: "[1960/5008] C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GNU_SOURCE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools\clang\utils\TableGen -IC:\Dev\GitRepos\llvm-project\clang\utils\TableGen -IC:\Dev\GitRepos\llvm-project\clang\include -Itools\clang\include -Iinclude -IC:\Dev\GitRepos\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4345 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /MDd /Zi /Ob0 /Od /RTC1 /EHsc /GR -std:c++14 /showIncludes /Fotools\clang\utils\TableGen\CMakeFiles\clang-tblgen.dir\ClangSACheckersEmitter.cpp.obj /Fdtools\clang\utils\TableGen\CMakeFiles\clang-tblgen.dir\ /FS -c C:\Dev\GitRepos\llvm-project\clang\utils\TableGen\ClangSACheckersEmitter.cpp [1961/5008] C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GNU_SOURCE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools\clang\utils\TableGen -IC:\Dev\GitRepos\llvm-project\clang\utils\TableGen -IC:\Dev\GitRepos\llvm-project\clang\include -Itools\clang\include -Iinclude -IC:\Dev\GitRepos\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4345 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /MDd /Zi /Ob0 /Od /RTC1 /EHsc /GR -std:c++14 /showIncludes /Fotools\clang\utils\TableGen\CMakeFiles\clang-tblgen.dir\ClangOpcodesEmitter.cpp.obj /Fdtools\clang\utils\TableGen\CMakeFiles\clang-tblgen.dir\ /FS -c C:\Dev\GitRepos\llvm-project\clang\utils\TableGen\ClangOpcodesEmitter.cpp [1962/5008] C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GNU_SOURCE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools\clang\utils\TableGen -IC:\Dev\GitRepos\llvm-project\clang\utils\TableGen -IC:\Dev\GitRepos\llvm-project\clang\include -Itools\clang\include -Iinclude -IC:\Dev\GitRepos\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4345 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /MDd /Zi /Ob0 /Od /RTC1 /EHsc /GR -std:c++14 /showIncludes /Fotools\clang\utils\TableGen\CMakeFiles\clang-tblgen.dir\ClangTypeNodesEmitter.cpp.obj /Fdtools\clang\utils\TableGen\CMakeFiles\clang-tblgen.dir\ /FS -c C:\Dev\GitRepos\llvm-project\clang\utils\TableGen\ClangTypeNodesEmitter.cpp [1963/5008] C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GNU_SOURCE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools\clang\utils\TableGen -IC:\Dev\GitRepos\llvm-project\clang\utils\TableGen -IC:\Dev\GitRepos\llvm-project\clang\include -Itools\clang\include -Iinclude -IC:\Dev\GitRepos\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4345 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /MDd /Zi /Ob0 /Od /RTC1 /EHsc /GR -std:c++14 /showIncludes /Fotools\clang\utils\TableGen\CMakeFiles\clang-
Re: [cfe-users] Cannot build Clang etc. on Windows in Debug Mode
Am 06/07/2020 um 16:38 schrieb Matthew Fernandez: > >> On Jul 6, 2020, at 07:28, Oliver Niebuhr via cfe-users >> wrote: >> >> Hello List. >> >> I hope I have subscribed to the correct List - there are a lot of them :) >> >> My Problem is: >> Since the last 2.5 Weeks I try to compile Clang Release/10.x in Debug >> Mode. Unfortunately the build always ends with those last Lines: > > I think the list you’re after is cfe-dev: > https://lists.llvm.org/mailman/listinfo/cfe-dev > Well it says for "Developers of Clang" but Okay I will try my Luck there Thanks! Olli signature.asc Description: OpenPGP digital signature ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
[cfe-users] LLVM 10.0.1 VS 2019 16.7 Error C2338 with is_trivially_copyable
Hello. With Visual Studio 2019 16.7 I am getting the following Error: [1437/4970] C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib\ExecutionEngine\RuntimeDyld -IC:\Dev\GitRepos\llvm-project\llvm\lib\ExecutionEngine\RuntimeDyld -Iinclude -IC:\Dev\GitRepos\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4345 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /Gw /MD /O2 /Ob2 /DNDEBUG /EHsc /GR -std:c++14 /showIncludes /Folib\ExecutionEngine\RuntimeDyld\CMakeFiles\LLVMRuntimeDyld.dir\RTDyldMemoryManager.cpp.obj /Fdlib\ExecutionEngine\RuntimeDyld\CMakeFiles\LLVMRuntimeDyld.dir\LLVMRuntimeDyld.pdb /FS -c C:\Dev\GitRepos\llvm-project\llvm\lib\ExecutionEngine\RuntimeDyld\RTDyldMemoryManager.cpp FAILED: lib/ExecutionEngine/RuntimeDyld/CMakeFiles/LLVMRuntimeDyld.dir/RTDyldMemoryManager.cpp.obj C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx64\x64\cl.exe /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib\ExecutionEngine\RuntimeDyld -IC:\Dev\GitRepos\llvm-project\llvm\lib\ExecutionEngine\RuntimeDyld -Iinclude -IC:\Dev\GitRepos\llvm-project\llvm\include /DWIN32 /D_WINDOWS /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4345 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /Gw /MD /O2 /Ob2 /DNDEBUG /EHsc /GR -std:c++14 /showIncludes /Folib\ExecutionEngine\RuntimeDyld\CMakeFiles\LLVMRuntimeDyld.dir\RTDyldMemoryManager.cpp.obj /Fdlib\ExecutionEngine\RuntimeDyld\CMakeFiles\LLVMRuntimeDyld.dir\LLVMRuntimeDyld.pdb /FS -c C:\Dev\GitRepos\llvm-project\llvm\lib\ExecutionEngine\RuntimeDyld\RTDyldMemoryManager.cpp Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29110 for x64 Copyright (C) Microsoft Corporation. All rights reserved. C:\Dev\GitRepos\llvm-project\llvm\include\llvm/Support/type_traits.h(181): error C2338: inconsistent behavior between llvm:: and std:: implementation of is_trivially_copyable C:\Dev\GitRepos\llvm-project\llvm\include\llvm/ADT/SmallVector.h(315): note: see reference to class template instantiation 'llvm::is_trivially_copyable' being compiled with [ T=std::pair ] C:\Dev\GitRepos\llvm-project\llvm\include\llvm/ADT/SmallVector.h(837): note: see reference to class template instantiation 'llvm::SmallVectorImpl' being compiled with [ T=std::pair ] C:\Dev\GitRepos\llvm-project\llvm\include\llvm/Support/Allocator.h(378): note: see reference to class template instantiation 'llvm::SmallVector,0>' being compiled C:\Dev\GitRepos\llvm-project\llvm\include\llvm/Support/Allocator.h(435): note: see reference to class template instantiation 'llvm::BumpPtrAllocatorImpl' being compiled C:\Dev\GitRepos\llvm-project\llvm\include\llvm/ADT/SmallVector.h(315): error C2976: 'llvm::SmallVectorTemplateBase': too few template arguments C:\Dev\GitRepos\llvm-project\llvm\include\llvm/ADT/SmallVector.h(179): note: see declaration of 'llvm::SmallVectorTemplateBase' --- END --- CMake: 3.18.0 Ninja: 1.10 LLVM: 10.0.1 Git Branch Works with: VS 2019 16.6.5, 16.6.6 Additional Compiler Flags tested: /std:c++17 (which gets overwritten with /std:c++14 no matter what), /permissive and /permissive- I looked through the Interweb but did only found 2 old LLVM Bug Reports for LLVM 7.x which are closed. Everything points to being an "underwhelming" work around in LLVM. Therefore: Is this a Problem with LLVM or do I need to Report this to the VS Team? Thanks! Oliver signature.asc Description: OpenPGP digital signature ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
[cfe-users] Shared Debug Build MSYS2 MinGW-w64 constant Link Error
Hello. As Static Debug Builds only work with MSVC, I am forced to use Shared-Libs with GCC on MSYS2. The Problem is, it always Fails at this exact stage: FAILED: bin/BugpointPasses.dll cmd.exe /C "cd . && C:\Dev\msys64\mingw64\bin\g++.exe -Wa,-mbig-obj -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -fasynchronous-unwind-tables -finput-charset=utf-8 -fno-lto -fno-omit-frame-pointer -grecord-gcc-switches -pthread -Og -g1 -ggdb -pipe -Wall -Wl,-Og -Wl,--allow-multiple-definition -Wl,--build-id=sha1 -Wl,--dynamicbase -Wl,--enable-auto-image-base -Wl,-fno-lto -Wl,--high-entropy-va -Wl,--nxcompat -Wa,-mbig-obj -Wl,-Bdynamic C:/Dev/Builds/LLVMx64DebugSrc/tools/bugpoint-passes/BugpointPasses.def -shared -o bin\BugpointPasses.dll -Wl,--major-image-version,0,--minor-image-version,0 tools/bugpoint-passes/CMakeFiles/BugpointPasses.dir/TestPasses.cpp.obj lib/libLLVMCore.dll.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ." C:/Dev/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: tools/bugpoint-passes/CMakeFiles/BugpointPasses.dir/TestPasses.cpp.obj: in function `llvm::CallBase::getNumSubclassExtraOperands() const': C:/Dev/GitRepos/llvm-project/llvm/include/llvm/IR/InstrTypes.h:1198: undefined reference to `llvm::llvm_unreachable_internal(char const*, char const*, unsigned int)' collect2.exe: error: ld returned 1 exit status Sys Config: * Windows 10 21H1, x86_64 * MSYS2, MinGW-w64, 10.3.0, x86_64 * CMake 3.20.2 MinGW-w64 prebuilt, x86_64 * Ninja 1.10.2 MinGW-w64 prebuilt, x86_64 * LLVM 12.x Git Source * Building from MSYS2 MinGW64 Shell * Static Release Builds of LLVM/Clang for x86 and x86_64 are working just fine Latest CMake Config Flags tested: cmake ${SYSTEMDRIVE}/Dev/GitRepos/llvm-project/llvm/ ${SYSTEMDRIVE}/Dev/Builds/LLVMx64DebugSrc/ -G'Ninja' -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_C_FLAGS_DEBUG='-fasynchronous-unwind-tables -finput-charset=utf-8 -fno-lto -fno-omit-frame-pointer -grecord-gcc-switches -pthread -Og -g1 -ggdb -pipe -Wall -Wl,-Og -Wl,--allow-multiple-definition -Wl,--build-id=sha1-Wl,--dynamicbase -Wl,--enable-auto-image-base -Wl,-fno-lto -Wl,--high-entropy-va -Wl,--nxcompat -Wa,-mbig-obj -Wl,-Bdynamic' -DCMAKE_CXX_FLAGS_DEBUG='-fasynchronous-unwind-tables -finput-charset=utf-8 -fno-lto -fno-omit-frame-pointer -grecord-gcc-switches -pthread -Og -g1 -ggdb -pipe -Wall -Wl,-Og -Wl,--allow-multiple-definition -Wl,--build-id=sha1 -Wl,--default-image-base-high -Wl,--dynamicbase -Wl,--enable-auto-image-base -Wl,-fno-lto -Wl,--high-entropy-va -Wl,--nxcompat -Wa,-mbig-obj -Wl,-Bdynamic' -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;compiler-rt;lld;lldb;llvm' -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=${SYSTEMDRIVE}/Dev/Binaries/LLVMx64Debug/ -DCMAKE_BUILD_TYPE='Debug' -DLLVM_TARGETS_TO_BUILD='X86' -DBUILD_SHARED_LIBS='ON' -DLLVM_INCLUDE_EXAMPLES='OFF' -DLLVM_INCLUDE_TESTS='OFF' -DLLVM_INCLUDE_DOCS='OFF' -DLLVM_PARALLEL_COMPILE_JOBS=$(nproc) -DLLVM_PARALLEL_LINK_JOBS=$(nproc) -DLLVM_ENABLE_EH='OFF' -DLLVM_ENABLE_RTTI='OFF' -DLLVM_ENABLE_DIA_SDK='OFF' But that does only partially matter(?), because even with the DEFAULT FLAGS IT FAILS at this stage. So it seems I am missing something else. Another Compiler Flag? Another Linker Flag? General incompatibility? Thanks in advance! Olli ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users