[llvm-bugs] [Bug 47303] New: llvm/lib/IR/DebugInfoMetadata.cpp fails to compile on sparcv9-sun-solaris2.11

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 25 00:50:46 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47303

            Bug ID: 47303
           Summary: llvm/lib/IR/DebugInfoMetadata.cpp fails to compile on
                    sparcv9-sun-solaris2.11
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: Sparc
          Assignee: unassignedbugs at nondot.org
          Reporter: ro at gcc.gnu.org
                CC: llvm-bugs at lists.llvm.org

Created attachment 23889
  --> https://bugs.llvm.org/attachment.cgi?id=23889&action=edit
preprocessed source and run script

Within roughly the last month a 2-stage RelWithDebInfo build on
sparcv9-sun-solaris2.11
began to fail compiling llvm/lib/IR/DebugInfoMetadata.cpp and
llvm/lib/IR/Metadata.cpp in stage 2.

A Release build works, while a Debug build fails for different reasons.

Both compilations fail with

fatal error: error in backend: Do not know how to scalarize the result of this
operator!

Stack dump:
0.      Program arguments:
/var/llvm/local-sparcv9-relwithdebinfo-stage2-A/./bin/clang++
-DGTEST_HAS_RTTI=0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/IR
-I/vol/llvm/src/llvm-project/local/llvm/lib/IR -Iinclude
-I/vol/llvm/src/llvm-project/local/llvm/include
-I/vol/llvm/src/llvm-project/local/llvm/include/llvm/Support/Solaris -fPIC
-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 -fdiagnostics-color -ffunction-sections
-fdata-sections -O2 -g -DNDEBUG -fno-exceptions -fno-rtti -std=c++14 -MD -MT
lib/IR/CMakeFiles/LLVMCore.dir/DebugInfoMetadata.cpp.o -MF
lib/IR/CMakeFiles/LLVMCore.dir/DebugInfoMetadata.cpp.o.d -o
lib/IR/CMakeFiles/LLVMCore.dir/DebugInfoMetadata.cpp.o -c
/vol/llvm/src/llvm-project/local/llvm/lib/IR/DebugInfoMetadata.cpp
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/vol/llvm/src/llvm-project/local/llvm/lib/IR/DebugInfoMetadata.cpp'.
4.      Running pass 'SPARC DAG->DAG Pattern Instruction Selection' on function
'@_ZN4llvm10MDNodeInfoINS_15DICompositeTypeEE12getHashValueEPKS1_'
0  clang-12 0x000000010455a2c0 llvm::sys::PrintStackTrace(llvm::raw_ostream&) +
32
1  clang-12 0x0000000104559324 llvm::sys::RunSignalHandlers() + 68
2  clang-12 0x00000001044e60ec llvm::CrashRecoveryContext::HandleExit(int) +
144
3  clang-12 0x0000000104554dc8 llvm::sys::Process::Exit(int) + 20
4  clang-12 0x000000010289ad78 LLVMErrorHandler(void*,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, bool) + 280
5  clang-12 0x00000001044eb61c llvm::report_fatal_error(llvm::Twine const&,
bool) + 104
6  clang-12 0x00000001044eb750 llvm::report_fatal_error(char const*, bool) + 40
7  clang-12 0x00000001051902b8
llvm::DAGTypeLegalizer::ScalarizeVectorResult(llvm::SDNode*, unsigned int) +
184
8  clang-12 0x000000010515cab4 llvm::DAGTypeLegalizer::run() + 1616
9  clang-12 0x000000010515ce98 llvm::SelectionDAG::LegalizeTypes() + 600
10 clang-12 0x000000010510a308 llvm::SelectionDAGISel::CodeGenAndEmitDAG() +
340
11 clang-12 0x000000010510d248
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1804
12 clang-12 0x000000010510f828
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (.part.0)
+ 1316
13 clang-12 0x0000000103bd6d24
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) + 1732
14 clang-12 0x0000000103f195d8
llvm::FPPassManager::runOnFunction(llvm::Function&) + 724
15 clang-12 0x0000000103f19d34 llvm::FPPassManager::runOnModule(llvm::Module&)
+ 40
16 clang-12 0x0000000103f183e8
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 832
17 clang-12 0x00000001047643d4 (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) + 976
18 clang-12 0x00000001047658d4
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions
const&, clang::CodeGenOptions const&, clang::TargetOptions const&,
clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*,
clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) + 588
19 clang-12 0x00000001052079c4
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 1004
20 clang-12 0x0000000105d27d34 clang::ParseAST(clang::Sema&, bool, bool) + 1184
21 clang-12 0x0000000104c45b74 clang::FrontendAction::Execute() + 148
22 clang-12 0x0000000104c04af8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1356
23 clang-12 0x0000000104ceaa04
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1748
24 clang-12 0x000000010289c414 cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 1848
25 clang-12 0x0000000102896a2c ExecuteCC1Tool(llvm::SmallVectorImpl<char
const*>&) + 704
26 clang-12 0x0000000104b033dc void llvm::function_ref<void
()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const::'lambda'()>(long) + 16
27 clang-12 0x00000001044e5f48
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 56
28 clang-12 0x0000000104b041c4
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, bool*) const (.part.0) + 248
29 clang-12 0x0000000104adfa40
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const + 152
30 clang-12 0x0000000104adff78
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const +
108
31 clang-12 0x0000000104ae9980
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) + 128
32 clang-12 0x00000001028996d0 main + 7284
33 clang-12 0x0000000102895c64 _start + 100

I've tried to reduce the input with creduce, but so far this hasn't gained
much.

I mean to try a reghunt to identify the responsible revision, but that's going
to
take some time.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200825/da208a02/attachment-0001.html>


More information about the llvm-bugs mailing list