Open Zentrik opened 2 months ago
Also hit this when compiling llvm only
ninja: job failed: /opt/bin/x86_64-w64-mingw32-libgfortran5-cxx11/x86_64-w64-mingw32-clang++ --target=x86_64-w64-mingw32 --sysroot=/opt/x86_64-w64-mingw32/x86_64-w64-mingw32/sys-root/ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/workspace/build/lib/Target/NVPTX/MCTargetDesc -I/workspace/srcdir/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc -I/workspace/srcdir/llvm-project/llvm/lib/Target/NVPTX -I/workspace/build/lib/Target/NVPTX -I/workspace/build/include -I/workspace/srcdir/llvm-project/llvm/include -isystem /workspace/destdir/include -remap -D__USING_SJLJ_EXCEPTIONS__ -D__CRT__NO_INLINE -pthread -DMLIR_CAPI_ENABLE_WINDOWS_DLL_DECLSPEC -Dmlir_arm_sme_abi_stubs_EXPORTS -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/NVPTX/MCTargetDesc/CMakeFiles/LLVMNVPTXDesc.dir/NVPTXInstPrinter.cpp.obj -MF lib/Target/NVPTX/MCTargetDesc/CMakeFiles/LLVMNVPTXDesc.dir/NVPTXInstPrinter.cpp.obj.d -o lib/Target/NVPTX/MCTargetDesc/CMakeFiles/LLVMNVPTXDesc.dir/NVPTXInstPrinter.cpp.obj -c /workspace/srcdir/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXInstPrinter.cpp
clang-16: warning: argument unused during compilation: '-remap' [-Wunused-command-line-argument]
In file included from /workspace/srcdir/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXInstPrinter.cpp:16:
In file included from /workspace/srcdir/llvm-project/llvm/lib/Target/NVPTX/NVPTXUtilities.h:17:
In file included from /workspace/srcdir/llvm-project/llvm/include/llvm/CodeGen/ValueTypes.h:18:
/workspace/srcdir/llvm-project/llvm/include/llvm/CodeGenTypes/MachineValueType.h:44:10: fatal error: 'llvm/CodeGen/GenVT.inc' file not found
#include "llvm/CodeGen/GenVT.inc"
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
clang-16: warning: argument unused during compilation: '-remap' [-Wunused-command-line-argument]
ninja: subcommand failed
---> ninja -j${nproc} -vv
---> ninja -j${nproc} -vv
We're seeing these errors in all sort of operating systems and architectures, not just those mentioned above. Note that we build with a large-ish parallelism, random failures like this usually suggests that some dependencies aren't tracked correctly in the build system.
Building for windows 32, 64 bit and aarch64 darwin by cross compiling and building the shared libraries I get the error sporadically (log at https://github.com/Zentrik/llvm_windows_tester/actions/runs/10747564963/job/29810161266, full build script described in https://github.com/llvm/llvm-project/issues/106859#issuecomment-2332542772)
I also hit this on freebsd on the 19 rc3 branch, log at https://buildkite.com/julialang/yggdrasil/builds/12323#019126e9-ad77-4ad3-b860-c9fa1ceb61f1. This seems to have started to occur more frequently after 59f8796aaabc1ce400a8698431d3c6bfab4ad1a4.
I applied the following patch,
but then got the following error on the darwin build (log at https://github.com/Zentrik/llvm_windows_tester/actions/runs/10750386811/job/29816468075)
Let me know if I'm missing any information that would be useful.