-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Description
Using GCC 12.1.0 to build LLVM+Clang+LLD on GNU/Linux. Build fails with the following error with GCC 12, when it was fine with GCC 11:
[2478/3646] Building CXX object tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o
FAILED: tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o
/usr/bin/c++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/sources/llvm/LLVM-build/tools/clang/lib/ASTMatchers/Dynamic -I/sources/llvm/tools/clang/lib/ASTMatchers/Dynamic -I/sources/llvm/tools/clang/include -I/sources/llvm/LLVM-build/tools/clang/include -I/sources/llvm/LLVM-build/include -I/sources/llvm/include -flarge-source-files -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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-pessimizing-move -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -Os -DNDEBUG -fno-exceptions -std=c++14 -MD -MT tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o -MF tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o.d -o tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/obj.clangDynamicASTMatchers.dir/Registry.cpp.o -c /sources/llvm/tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
{standard input}: Assembler messages:
{standard input}:132812: Error: unbalanced parenthesis in operand 2.
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
ninja: build stopped: subcommand failed.
Tested with LLVM 14.0.3. I haven't been able to test with a development git checkout, since LLVM takes too long to build to able to test it in other cases, so if it has been fixed upstream already, I apologise. I'll also be happy to provide any additional information if it is needed.