<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Regression] Clang fails to compile libclc (both r600 and amdgcn)"
   href="https://bugs.llvm.org/show_bug.cgi?id=33102">33102</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Regression] Clang fails to compile libclc (both r600 and amdgcn)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>OpenCL
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vedran@miletic.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>=== r600 ===

LLVM-CC r600--/lib/workitem/get_work_dim.cl.cedar.bc
clang-5.0: /home/vedranm/workspace/llvm/lib/IR/Instructions.cpp:2658: static
llvm::CastInst* llvm::CastInst::Create(llvm::Instruction::CastOps,
llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion
`castIsValid(op, S, Ty) && "Invalid cast!"' failed.
clang-5.0: /home/vedranm/workspace/llvm/lib/IR/Instructions.cpp:2658: static
llvm::CastInst* llvm::CastInst::Create(llvm::Instruction::CastOps,
llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion
`castIsValid(op, S, Ty) && "Invalid cast!"' failed.
#0 0x00007fe2ce87e55a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfe55a)
#1 0x00007fe2ce87c4c6 llvm::sys::RunSignalHandlers()
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfc4c6)
#2 0x00007fe2ce87c60d SignalHandler(int)
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfc60d)
#3 0x00007fe2ce1d8260 __restore_rt (/lib64/libpthread.so.0+0x12260)
#4 0x00007fe2cca887bb __GI_raise (/lib64/libc.so.6+0x367bb)
#5 0x00007fe2cca8a5d1 __GI_abort (/lib64/libc.so.6+0x385d1)
#6 0x00007fe2cca80e9a __assert_fail_base (/lib64/libc.so.6+0x2ee9a)
#7 0x00007fe2cca80f12 (/lib64/libc.so.6+0x2ef12)
#8 0x00007fe2cf326530 llvm::CastInst::Create(llvm::Instruction::CastOps,
llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*)
(/usr/local/bin/../lib64/libLLVMCore.so.5+0x15c530)
#9 0x00007fe2cdb20a78
clang::CodeGen::CodeGenFunction::EmitLifetimeEnd(llvm::Value*, llvm::Value*)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x150a78)
#10 0x00007fe2cdaf557c EmitCleanup(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::EHScopeStack::Cleanup*,
clang::CodeGen::EHScopeStack::Cleanup::Flags, clang::CodeGen::Address)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12557c)
#11 0x00007fe2cdafb383 clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12b383)
#12 0x00007fe2cdafc861
clang::CodeGen::CodeGenFunction::PopCleanupBlocks(clang::CodeGen::EHScopeStack::stable_iterator,
std::initializer_list<llvm::Value**>)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12c861)
#13 0x00007fe2cdc54023
clang::CodeGen::CodeGenFunction::FinishFunction(clang::SourceLocation)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x284023)
#14 0x00007fe2cdc5a39b
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x28a39b)
#15 0x00007fe2cdc7bc2d
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2abc2d)
#16 0x00007fe2cdc8cd31
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2bcd31)
#17 0x00007fe2cdc8dc70
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2bdc70)
#18 0x00007fe2cdc8e58a
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2be58a)
#19 0x00007fe2cdce5ddd (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x315ddd)
#20 0x00007fe2cdc45f0d
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x275f0d)
#21 0x00007fe2cb290583 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/bin/../lib64/../lib64/libclangParse.so.5+0x2c583)
#22 0x00007fe2cdc4c9d0 clang::CodeGenAction::ExecuteAction()
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x27c9d0)
#23 0x00007fe2cd7a4e1e clang::FrontendAction::Execute()
(/usr/local/bin/../lib64/libclangFrontend.so.5+0xc2e1e)
#24 0x00007fe2cd769da6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/bin/../lib64/libclangFrontend.so.5+0x87da6)
#25 0x00007fe2cd6de682
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/bin/../lib64/libclangFrontendTool.so.5+0x3682)
#26 0x000000000040f638 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/bin/clang-5.0+0x40f638)
#27 0x000000000040c742 main (/usr/local/bin/clang-5.0+0x40c742)
#28 0x00007fe2cca725fe __libc_start_main (/lib64/libc.so.6+0x205fe)
#29 0x000000000040d55a _start (/usr/local/bin/clang-5.0+0x40d55a)
Stack dump:
0.      Program arguments: /usr/local/bin/clang-5.0 -cc1 -triple r600--
-emit-llvm-bc -emit-llvm-uselists -disable-free -main-file-name
get_global_offset.cl -mrelocation-model static -mthread-model posix
-mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases
-target-cpu cedar -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file
/home/vedranm/workspace/libclc/r600--/lib/workitem/get_global_offset.cl.cedar.gcno
-resource-dir /usr/local/lib64/clang/5.0.0 -dependency-file
r600--/lib/workitem/get_global_offset.cl.cedar.bc.d -MT
r600--/lib/workitem/get_global_offset.cl.cedar.bc -I ./r600/lib/workitem -I
./generic/include -D __CLC_INTERNAL -fno-dwarf-directory-asm
-fdebug-compilation-dir /home/vedranm/workspace/libclc -ferror-limit 19
-fmessage-length 190 -fno-builtin -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -o r600--/lib/workitem/get_global_offset.cl.cedar.bc -x cl
./r600/lib/workitem/get_global_offset.cl 
1.      <eof> parser at end of file
2.      ./r600/lib/workitem/get_global_offset.cl:3:15: LLVM IR generation of
declaration 'get_global_offset'
3.      ./r600/lib/workitem/get_global_offset.cl:3:15: Generating code for
declaration 'get_global_offset'
LLVM-CC r600--/lib/atomic/atomic.cl.cedar.bc
LLVM-CC r600--/lib/math/nextafter.cl.cedar.bc
clang-5.0: error: unable to execute command: Aborted (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (<a href="https://github.com/llvm-mirror/clang.git">https://github.com/llvm-mirror/clang.git</a>
4ee33b072b6b54d95cd982aec4946ff886038a6f)
(<a href="https://github.com/llvm-mirror/llvm.git">https://github.com/llvm-mirror/llvm.git</a>
ede5ffa4d3a2e41c7aa71d913e83096ad8fb176a)
Target: r600--
Thread model: posix
InstalledDir: /usr/local/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
#0 0x00007f135366455a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfe55a)
#1 0x00007f13536624c6 llvm::sys::RunSignalHandlers()
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfc4c6)
#2 0x00007f135366260d SignalHandler(int)
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfc60d)
#3 0x00007f1352fbe260 __restore_rt (/lib64/libpthread.so.0+0x12260)
#4 0x00007f135186e7bb __GI_raise (/lib64/libc.so.6+0x367bb)
#5 0x00007f13518705d1 __GI_abort (/lib64/libc.so.6+0x385d1)
#6 0x00007f1351866e9a __assert_fail_base (/lib64/libc.so.6+0x2ee9a)
#7 0x00007f1351866f12 (/lib64/libc.so.6+0x2ef12)
#8 0x00007f135410c530 llvm::CastInst::Create(llvm::Instruction::CastOps,
llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*)
(/usr/local/bin/../lib64/libLLVMCore.so.5+0x15c530)
#9 0x00007f1352906a78
clang::CodeGen::CodeGenFunction::EmitLifetimeEnd(llvm::Value*, llvm::Value*)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x150a78)
#10 0x00007f13528db57c EmitCleanup(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::EHScopeStack::Cleanup*,
clang::CodeGen::EHScopeStack::Cleanup::Flags, clang::CodeGen::Address)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12557c)
#11 0x00007f13528e1383 clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12b383)
#12 0x00007f13528e2861
clang::CodeGen::CodeGenFunction::PopCleanupBlocks(clang::CodeGen::EHScopeStack::stable_iterator,
std::initializer_list<llvm::Value**>)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12c861)
#13 0x00007f1352a3a023
clang::CodeGen::CodeGenFunction::FinishFunction(clang::SourceLocation)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x284023)
#14 0x00007f1352a4039b
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x28a39b)
#15 0x00007f1352a61c2d
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2abc2d)
#16 0x00007f1352a72d31
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2bcd31)
#17 0x00007f1352a73c70
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2bdc70)
#18 0x00007f1352a7458a
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2be58a)
#19 0x00007f1352acbddd (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x315ddd)
#20 0x00007f1352a2bf0d
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x275f0d)
#21 0x00007f1350076583 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/bin/../lib64/../lib64/libclangParse.so.5+0x2c583)
#22 0x00007f1352a329d0 clang::CodeGenAction::ExecuteAction()
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x27c9d0)
#23 0x00007f135258ae1e clang::FrontendAction::Execute()
(/usr/local/bin/../lib64/libclangFrontend.so.5+0xc2e1e)
#24 0x00007f135254fda6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/bin/../lib64/libclangFrontend.so.5+0x87da6)
#25 0x00007f13524c4682
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/bin/../lib64/libclangFrontendTool.so.5+0x3682)
#26 0x000000000040f638 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/bin/clang-5.0+0x40f638)
#27 0x000000000040c742 main (/usr/local/bin/clang-5.0+0x40c742)
#28 0x00007f13518585fe __libc_start_main (/lib64/libc.so.6+0x205fe)
#29 0x000000000040d55a _start (/usr/local/bin/clang-5.0+0x40d55a)
Stack dump:
0.      Program arguments: /usr/local/bin/clang-5.0 -cc1 -triple r600--
-emit-llvm-bc -emit-llvm-uselists -disable-free -main-file-name get_work_dim.cl
-mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno
-no-integrated-as -mconstructor-aliases -target-cpu cedar -dwarf-column-info
-debugger-tuning=gdb -coverage-notes-file
/home/vedranm/workspace/libclc/r600--/lib/workitem/get_work_dim.cl.cedar.gcno
-resource-dir /usr/local/lib64/clang/5.0.0 -dependency-file
r600--/lib/workitem/get_work_dim.cl.cedar.bc.d -MT
r600--/lib/workitem/get_work_dim.cl.cedar.bc -I ./r600/lib/workitem -I
./generic/include -D __CLC_INTERNAL -fno-dwarf-directory-asm
-fdebug-compilation-dir /home/vedranm/workspace/libclc -ferror-limit 19
-fmessage-length 190 -fno-builtin -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -o r600--/lib/workitem/get_work_dim.cl.cedar.bc -x cl
./r600/lib/workitem/get_work_dim.cl 
1.      <eof> parser at end of file
2.      ./r600/lib/workitem/get_work_dim.cl:3:15: LLVM IR generation of
declaration 'get_work_dim'
3.      ./r600/lib/workitem/get_work_dim.cl:3:15: Generating code for
declaration 'get_work_dim'
clang-5.0: error: unable to execute command: Aborted (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (<a href="https://github.com/llvm-mirror/clang.git">https://github.com/llvm-mirror/clang.git</a>
4ee33b072b6b54d95cd982aec4946ff886038a6f)
(<a href="https://github.com/llvm-mirror/llvm.git">https://github.com/llvm-mirror/llvm.git</a>
ede5ffa4d3a2e41c7aa71d913e83096ad8fb176a)
Target: r600--
Thread model: posix
InstalledDir: /usr/local/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/get_global_offset-4f6926.cl
clang-5.0: note: diagnostic msg: /tmp/get_global_offset-4f6926.sh
clang-5.0: note: diagnostic msg: 

********************
make: *** [Makefile:34: r600--/lib/workitem/get_global_offset.cl.cedar.bc]
Greška 254
make: *** Čekanje na završetak nedovršenih poslova....
clang-5.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/get_work_dim-d23c10.cl
clang-5.0: note: diagnostic msg: /tmp/get_work_dim-d23c10.sh
clang-5.0: note: diagnostic msg: 

********************
make: *** [Makefile:61: r600--/lib/workitem/get_work_dim.cl.cedar.bc] Greška
254

=== amdgcn ===

LLVM-CC amdgcn--/lib/workitem/get_local_id.cl.tahiti.bc
clang-5.0: /home/vedranm/workspace/llvm/lib/IR/Instructions.cpp:2658: static
llvm::CastInst* llvm::CastInst::Create(llvm::Instruction::CastOps,
llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion
`castIsValid(op, S, Ty) && "Invalid cast!"' failed.
#0 0x00007fa176c7655a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfe55a)
#1 0x00007fa176c744c6 llvm::sys::RunSignalHandlers()
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfc4c6)
#2 0x00007fa176c7460d SignalHandler(int)
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfc60d)
#3 0x00007fa1765d0260 __restore_rt (/lib64/libpthread.so.0+0x12260)
#4 0x00007fa174e807bb __GI_raise (/lib64/libc.so.6+0x367bb)
#5 0x00007fa174e825d1 __GI_abort (/lib64/libc.so.6+0x385d1)
#6 0x00007fa174e78e9a __assert_fail_base (/lib64/libc.so.6+0x2ee9a)
#7 0x00007fa174e78f12 (/lib64/libc.so.6+0x2ef12)
#8 0x00007fa17771e530 llvm::CastInst::Create(llvm::Instruction::CastOps,
llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*)
(/usr/local/bin/../lib64/libLLVMCore.so.5+0x15c530)
#9 0x00007fa175f18a78
clang::CodeGen::CodeGenFunction::EmitLifetimeEnd(llvm::Value*, llvm::Value*)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x150a78)
#10 0x00007fa175eed57c EmitCleanup(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::EHScopeStack::Cleanup*,
clang::CodeGen::EHScopeStack::Cleanup::Flags, clang::CodeGen::Address)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12557c)
#11 0x00007fa175ef3383 clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12b383)
#12 0x00007fa175ef4861
clang::CodeGen::CodeGenFunction::PopCleanupBlocks(clang::CodeGen::EHScopeStack::stable_iterator,
std::initializer_list<llvm::Value**>)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12c861)
#13 0x00007fa17604c023
clang::CodeGen::CodeGenFunction::FinishFunction(clang::SourceLocation)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x284023)
#14 0x00007fa17605239b
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x28a39b)
#15 0x00007fa176073c2d
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2abc2d)
#16 0x00007fa176084d31
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2bcd31)
#17 0x00007fa176085c70
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2bdc70)
#18 0x00007fa17608658a
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2be58a)
#19 0x00007fa1760ddddd (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x315ddd)
#20 0x00007fa17603df0d
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x275f0d)
#21 0x00007fa173688583 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/bin/../lib64/../lib64/libclangParse.so.5+0x2c583)
#22 0x00007fa1760449d0 clang::CodeGenAction::ExecuteAction()
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x27c9d0)
#23 0x00007fa175b9ce1e clang::FrontendAction::Execute()
(/usr/local/bin/../lib64/libclangFrontend.so.5+0xc2e1e)
#24 0x00007fa175b61da6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/bin/../lib64/libclangFrontend.so.5+0x87da6)
#25 0x00007fa175ad6682
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/bin/../lib64/libclangFrontendTool.so.5+0x3682)
#26 0x000000000040f638 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/bin/clang-5.0+0x40f638)
#27 0x000000000040c742 main (/usr/local/bin/clang-5.0+0x40c742)
#28 0x00007fa174e6a5fe __libc_start_main (/lib64/libc.so.6+0x205fe)
#29 0x000000000040d55a _start (/usr/local/bin/clang-5.0+0x40d55a)
Stack dump:
0.      Program arguments: /usr/local/bin/clang-5.0 -cc1 -triple amdgcn--
-emit-llvm-bc -emit-llvm-uselists -disable-free -main-file-name
get_global_offset.cl -mrelocation-model static -mthread-model posix
-mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases
-target-cpu tahiti -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file
/home/vedranm/workspace/libclc/amdgcn--/lib/workitem/get_global_offset.cl.tahiti.gcno
-resource-dir /usr/local/lib64/clang/5.0.0 -dependency-file
amdgcn--/lib/workitem/get_global_offset.cl.tahiti.bc.d -MT
amdgcn--/lib/workitem/get_global_offset.cl.tahiti.bc -I ./amdgcn/lib/workitem
-I ./generic/include -D __CLC_INTERNAL -fno-dwarf-directory-asm
-fdebug-compilation-dir /home/vedranm/workspace/libclc -ferror-limit 19
-fmessage-length 190 -fno-builtin -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -o amdgcn--/lib/workitem/get_global_offset.cl.tahiti.bc -x
cl ./amdgcn/lib/workitem/get_global_offset.cl 
1.      <eof> parser at end of file
2.      ./amdgcn/lib/workitem/get_global_offset.cl:3:17: LLVM IR generation of
declaration 'get_global_offset'
3.      ./amdgcn/lib/workitem/get_global_offset.cl:3:17: Generating code for
declaration 'get_global_offset'
LLVM-AS amdgcn--/lib/workitem/get_local_size.ll.tahiti.bc
LLVM-AS amdgcn--/lib/workitem/get_num_groups.ll.tahiti.bc
clang-5.0: error: unable to execute command: Aborted (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (<a href="https://github.com/llvm-mirror/clang.git">https://github.com/llvm-mirror/clang.git</a>
4ee33b072b6b54d95cd982aec4946ff886038a6f)
(<a href="https://github.com/llvm-mirror/llvm.git">https://github.com/llvm-mirror/llvm.git</a>
ede5ffa4d3a2e41c7aa71d913e83096ad8fb176a)
Target: amdgcn--
Thread model: posix
InstalledDir: /usr/local/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
LLVM-CC amdgcn--/lib/workitem/get_work_dim.cl.tahiti.bc
LLVM-CC amdgcn--/lib/atomic/atomic.cl.tahiti.bc
LLVM-CC amdgcn--/lib/math/nextafter.cl.tahiti.bc
clang-5.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/get_global_offset-ff8527.cl
clang-5.0: note: diagnostic msg: /tmp/get_global_offset-ff8527.sh
clang-5.0: note: diagnostic msg: 

********************
make: *** [Makefile:39: amdgcn--/lib/workitem/get_global_offset.cl.tahiti.bc]
Greška 254
make: *** Čekanje na završetak nedovršenih poslova....
clang-5.0: /home/vedranm/workspace/llvm/lib/IR/Instructions.cpp:2658: static
llvm::CastInst* llvm::CastInst::Create(llvm::Instruction::CastOps,
llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion
`castIsValid(op, S, Ty) && "Invalid cast!"' failed.
#0 0x00007f9eca8ce55a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfe55a)
#1 0x00007f9eca8cc4c6 llvm::sys::RunSignalHandlers()
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfc4c6)
#2 0x00007f9eca8cc60d SignalHandler(int)
(/usr/local/bin/../lib64/libLLVMSupport.so.5+0xfc60d)
#3 0x00007f9eca228260 __restore_rt (/lib64/libpthread.so.0+0x12260)
#4 0x00007f9ec8ad87bb __GI_raise (/lib64/libc.so.6+0x367bb)
#5 0x00007f9ec8ada5d1 __GI_abort (/lib64/libc.so.6+0x385d1)
#6 0x00007f9ec8ad0e9a __assert_fail_base (/lib64/libc.so.6+0x2ee9a)
#7 0x00007f9ec8ad0f12 (/lib64/libc.so.6+0x2ef12)
#8 0x00007f9ecb376530 llvm::CastInst::Create(llvm::Instruction::CastOps,
llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*)
(/usr/local/bin/../lib64/libLLVMCore.so.5+0x15c530)
#9 0x00007f9ec9b70a78
clang::CodeGen::CodeGenFunction::EmitLifetimeEnd(llvm::Value*, llvm::Value*)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x150a78)
#10 0x00007f9ec9b4557c EmitCleanup(clang::CodeGen::CodeGenFunction&,
clang::CodeGen::EHScopeStack::Cleanup*,
clang::CodeGen::EHScopeStack::Cleanup::Flags, clang::CodeGen::Address)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12557c)
#11 0x00007f9ec9b4b383 clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12b383)
#12 0x00007f9ec9b4c861
clang::CodeGen::CodeGenFunction::PopCleanupBlocks(clang::CodeGen::EHScopeStack::stable_iterator,
std::initializer_list<llvm::Value**>)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x12c861)
#13 0x00007f9ec9ca4023
clang::CodeGen::CodeGenFunction::FinishFunction(clang::SourceLocation)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x284023)
#14 0x00007f9ec9caa39b
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x28a39b)
#15 0x00007f9ec9ccbc2d
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2abc2d)
#16 0x00007f9ec9cdcd31
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2bcd31)
#17 0x00007f9ec9cddc70
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2bdc70)
#18 0x00007f9ec9cde58a
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x2be58a)
#19 0x00007f9ec9d35ddd (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x315ddd)
#20 0x00007f9ec9c95f0d
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef)
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x275f0d)
#21 0x00007f9ec72e0583 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/bin/../lib64/../lib64/libclangParse.so.5+0x2c583)
#22 0x00007f9ec9c9c9d0 clang::CodeGenAction::ExecuteAction()
(/usr/local/bin/../lib64/libclangCodeGen.so.5+0x27c9d0)
#23 0x00007f9ec97f4e1e clang::FrontendAction::Execute()
(/usr/local/bin/../lib64/libclangFrontend.so.5+0xc2e1e)
#24 0x00007f9ec97b9da6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/bin/../lib64/libclangFrontend.so.5+0x87da6)
#25 0x00007f9ec972e682
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/bin/../lib64/libclangFrontendTool.so.5+0x3682)
#26 0x000000000040f638 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/bin/clang-5.0+0x40f638)
#27 0x000000000040c742 main (/usr/local/bin/clang-5.0+0x40c742)
#28 0x00007f9ec8ac25fe __libc_start_main (/lib64/libc.so.6+0x205fe)
#29 0x000000000040d55a _start (/usr/local/bin/clang-5.0+0x40d55a)
Stack dump:
0.      Program arguments: /usr/local/bin/clang-5.0 -cc1 -triple amdgcn--
-emit-llvm-bc -emit-llvm-uselists -disable-free -main-file-name get_work_dim.cl
-mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno
-no-integrated-as -mconstructor-aliases -target-cpu tahiti -dwarf-column-info
-debugger-tuning=gdb -coverage-notes-file
/home/vedranm/workspace/libclc/amdgcn--/lib/workitem/get_work_dim.cl.tahiti.gcno
-resource-dir /usr/local/lib64/clang/5.0.0 -dependency-file
amdgcn--/lib/workitem/get_work_dim.cl.tahiti.bc.d -MT
amdgcn--/lib/workitem/get_work_dim.cl.tahiti.bc -I ./amdgcn/lib/workitem -I
./generic/include -D __CLC_INTERNAL -fno-dwarf-directory-asm
-fdebug-compilation-dir /home/vedranm/workspace/libclc -ferror-limit 19
-fmessage-length 190 -fno-builtin -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -o amdgcn--/lib/workitem/get_work_dim.cl.tahiti.bc -x cl
./amdgcn/lib/workitem/get_work_dim.cl 
1.      <eof> parser at end of file
2.      ./amdgcn/lib/workitem/get_work_dim.cl:3:15: LLVM IR generation of
declaration 'get_work_dim'
3.      ./amdgcn/lib/workitem/get_work_dim.cl:3:15: Generating code for
declaration 'get_work_dim'
clang-5.0: error: unable to execute command: Aborted (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (<a href="https://github.com/llvm-mirror/clang.git">https://github.com/llvm-mirror/clang.git</a>
4ee33b072b6b54d95cd982aec4946ff886038a6f)
(<a href="https://github.com/llvm-mirror/llvm.git">https://github.com/llvm-mirror/llvm.git</a>
ede5ffa4d3a2e41c7aa71d913e83096ad8fb176a)
Target: amdgcn--
Thread model: posix
InstalledDir: /usr/local/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/get_work_dim-615736.cl
clang-5.0: note: diagnostic msg: /tmp/get_work_dim-615736.sh
clang-5.0: note: diagnostic msg: 

********************
make: *** [Makefile:66: amdgcn--/lib/workitem/get_work_dim.cl.tahiti.bc] Greška
254</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>