Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3390

Get llvm-codegen-test passing on PPC64LE

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: Impala 2.5.0
    • Fix Version/s: None
    • Component/s: Backend
    • Labels:
      None
    • Environment:
      Ubuntu 15.10 PPC64LE

      Description

      LLVM has been upgraded locally to 3.7 as 3.3 is not supported on PPC64LE.

      After upgrading to LLVM 3.7, llvm-codegen-test (ReplaceFnCall) is failing.
      As per comments in this test, this test loads a precompiled IR file (compiled from testdata/llvm/test-loop.cc). I see this precompiled IR file at Impala/llvm-ir/test-loop.bc.

      I think I need to recreate this test-loop.bc on POWER as the one checked-into cdh5-trunk branch is for x86. I did it as below -
      ---- clang -O3 -emit-llvm test-loop.cc -c -o test-loop.bc

      Please let me know if I did it correctly.

      Then real failure I got is

      [ RUN ] LlvmCodeGenTest.ReplaceFnCall

          • Check failure stack trace: ***
            @ 0x1298962c google::LogMessage::Fail()
            @ 0x1298c7ec google::LogMessage::SendToLog()
            @ 0x12988fc4 google::LogMessage::Flush()
            @ 0x1298d364 google::LogMessageFatal::~LogMessageFatal()
            @ 0x10db0f48 impala::LlvmCodegenHandleError()
            @ 0x1288e984 llvm::report_fatal_error()
            @ 0x1288eaf8 llvm::report_fatal_error()
            @ 0x1240b3c8 llvm::MCJIT::emitObject()
            @ 0x1240bc38 llvm::MCJIT::generateCodeForModule()
            @ 0x124061e4 llvm::MCJIT::getPointerToFunction()
            @ 0x10db952c impala::LlvmCodeGen::JitFunction()
            @ 0x10db7c50 impala::LlvmCodeGen::FinalizeModule()
            @ 0x10d9f268 impala::LlvmCodeGenTest::FinalizeModule()
            @ 0x10d94678 impala::LlvmCodeGenTest_ReplaceFnCall_Test::TestBody()
            @ 0x3fff9164d304 testing::internal::HandleExceptionsInMethodIfSupported<>()
            @ 0x3fff916429d4 testing::Test::Run()
            @ 0x3fff91642be8 testing::TestInfo::Run()
            @ 0x3fff91642d34 testing::TestCase::Run()
            @ 0x3fff9164475c testing::internal::UnitTestImpl::RunAllTests()
            @ 0x3fff91644b28 testing::UnitTest::Run()
            @ 0x10d95f18 main
            @ 0x3fff90e43500 (unknown)
            @ 0x3fff90e43734 (unknown)
            @ (nil) (unknown)

      0% tests passed, 1 tests failed out of 1

      Total Test time (real) = 0.16 sec

      The following tests FAILED:
      1 - llvm-codegen-test (OTHER_FAULT)

      Attached log too.

        Attachments

        1. ImpalaLinkingError.txt
          12 kB
          Nishidha

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              npanpaliya Nishidha
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: