Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug build fails on windows OS #901

Open
dezhiAmd opened this issue Nov 13, 2024 · 1 comment
Open

Debug build fails on windows OS #901

dezhiAmd opened this issue Nov 13, 2024 · 1 comment

Comments

@dezhiAmd
Copy link

Step1: Change this line from
"-DCMAKE_BUILD_TYPE=Release"
to
"-DCMAKE_BUILD_TYPE=Debug"
Step2: run build_test_cpp.ps1 to start building

Observe the error below:

[1/12] cmd.exe /C "cd /D C:\develop\iree-amd-aie-dezhi\iree-build\runtime\plugins\AMD-AIE\iree-amd-aie\driver\xrt\cts && C:\develop\iree-amd-aie-dezhi\iree-build\tools\iree-compile.exe --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --compile-mode=hal-executable --iree-hal-dump-executable-files-to=C:/develop/iree-amd-aie-dezhi/iree-build/runtime/plugins/AMD-AIE/iree-amd-aie/driver/xrt/cts --iree-amd-aie-install-dir=C:/develop/iree-amd-aie-dezhi/iree-build --iree-hal-target-backends=amd-aie --iree-amdaie-lower-to-aie-pipeline=air --iree-amdaie-target-device=npu1_4col --iree-amd-aie-peano-install-dir=C:/develop/peano/llvm-aie --iree-amd-aie-vitis-install-dir= --iree-amd-aie-enable-chess=0 --iree-amd-aie-show-invoked-commands --iree-hal-memoization=false --iree-hal-indirect-command-buffers=false C:/develop/iree-amd-aie-dezhi/runtime/src/iree-amd-aie/driver/xrt/cts/executable_cache_test.mlir -o xrt_executable_cache_test.bin --iree-hal-executable-object-search-path=\"C:/develop/iree-amd-aie-dezhi/iree-build\""
FAILED: runtime/plugins/AMD-AIE/iree-amd-aie/driver/xrt/cts/xrt_executable_cache_test.bin C:/develop/iree-amd-aie-dezhi/iree-build/runtime/plugins/AMD-AIE/iree-amd-aie/driver/xrt/cts/xrt_executable_cache_test.bin
cmd.exe /C "cd /D C:\develop\iree-amd-aie-dezhi\iree-build\runtime\plugins\AMD-AIE\iree-amd-aie\driver\xrt\cts && C:\develop\iree-amd-aie-dezhi\iree-build\tools\iree-compile.exe --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --compile-mode=hal-executable --iree-hal-dump-executable-files-to=C:/develop/iree-amd-aie-dezhi/iree-build/runtime/plugins/AMD-AIE/iree-amd-aie/driver/xrt/cts --iree-amd-aie-install-dir=C:/develop/iree-amd-aie-dezhi/iree-build --iree-hal-target-backends=amd-aie --iree-amdaie-lower-to-aie-pipeline=air --iree-amdaie-target-device=npu1_4col --iree-amd-aie-peano-install-dir=C:/develop/peano/llvm-aie --iree-amd-aie-vitis-install-dir= --iree-amd-aie-enable-chess=0 --iree-amd-aie-show-invoked-commands --iree-hal-memoization=false --iree-hal-indirect-command-buffers=false C:/develop/iree-amd-aie-dezhi/runtime/src/iree-amd-aie/driver/xrt/cts/executable_cache_test.mlir -o xrt_executable_cache_test.bin --iree-hal-executable-object-search-path=\"C:/develop/iree-amd-aie-dezhi/iree-build\""
C:/develop/iree-amd-aie-dezhi/runtime/src/iree-amd-aie/driver/xrt/cts/executable_cache_test.mlir:0:0: remark: Executable benchmarks were requested but none were generated. Run with --debug-only=iree-dump-executable-benchmarks for more details.

Please report issues to https://github.com/iree-org/iree/issues and include the crash backtrace.
Stack dump:
0.      Program arguments: C:\\develop\\iree-amd-aie-dezhi\\iree-build\\tools\\iree-compile.exe --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --compile-mode=hal-executable --iree-hal-dump-executable-files-to=C:/develop/iree-amd-aie-dezhi/iree-build/runtime/plugins/AMD-AIE/iree-amd-aie/driver/xrt/cts --iree-amd-aie-install-dir=C:/develop/iree-amd-aie-dezhi/iree-build --iree-hal-target-backends=amd-aie --iree-amdaie-lower-to-aie-pipeline=air --iree-amdaie-target-device=npu1_4col --iree-amd-aie-peano-install-dir=C:/develop/peano/llvm-aie --iree-amd-aie-vitis-install-dir= --iree-amd-aie-enable-chess=0 --iree-amd-aie-show-invoked-commands --iree-hal-memoization=false --iree-hal-indirect-command-buffers=false C:/develop/iree-amd-aie-dezhi/runtime/src/iree-amd-aie/driver/xrt/cts/executable_cache_test.mlir -o xrt_executable_cache_test.bin --iree-hal-executable-object-search-path=\"C:/develop/iree-amd-aie-dezhi/iree-build\"
Exception Code: 0xC0000005
  #0 0x00007ff643df1381 mlir::TypeID::operator==(class mlir::TypeID const &) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\Support\TypeID.h:116:0
  #1 0x00007ff643df133d mlir::TypeID::operator!=(class mlir::TypeID const &) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\Support\TypeID.h:119:0
  #2 0x00007ff643df12ff mlir::OperationName::Impl::isRegistered(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\OperationSupport.h:158:0
  #3 0x00007ff643df129b mlir::OperationName::isRegistered(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\OperationSupport.h:232:0
  #4 0x00007ff643e2f3c9 mlir::OperationName::getRegisteredInfo(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\OperationSupport.h:717:0
  #5 0x00007ff643e2f188 mlir::Operation::getRegisteredInfo(void) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Operation.h:124:0
  #6 0x00007ff64463bef0 mlir::Op<class mlir::vector::TransferReadOp, class mlir::OpTrait::ZeroRegions, class mlir::OpTrait::OneResult, class mlir::OpTrait::OneTypedResult<class mlir::VectorType>::Impl, class mlir::OpTrait::ZeroSuccessors, class mlir::OpTrait::AtLeastNOperands<2>::Impl, class mlir::OpTrait::AttrSizedOperandSegments, class mlir::OpTrait::OpInvariants, struct mlir::BytecodeOpInterface::Trait, struct mlir::VectorTransferOpInterface::Trait, struct mlir::VectorUnrollOpInterface::Trait, struct mlir::vector::MaskableOpInterface::Trait, struct mlir::MemoryEffectOpInterface::Trait, struct mlir::ConditionallySpeculatable::Trait, struct mlir::DestinationStyleOpInterface::Trait>::classof(class mlir::Operation *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\OpDefinition.h:1690:0
  #7 0x00007ff6446425c3 llvm::CastInfo<class mlir::vector::TransferReadOp, class mlir::Operation *, void>::isPossible(class mlir::Operation *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Operation.h:1109:0
  #8 0x00007ff644643315 llvm::DefaultDoCastIfPossible<class mlir::vector::TransferReadOp, class mlir::Operation *, struct llvm::CastInfo<class mlir::vector::TransferReadOp, class mlir::Operation *, void>>::doCastIfPossible(class mlir::Operation *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\Support\Casting.h:311:0
  #9 0x00007ff6446432d5 llvm::dyn_cast<class mlir::vector::TransferReadOp, class mlir::Operation>(class mlir::Operation *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\Support\Casting.h:663:0
 #10 0x00007ff64c62e3df `anonymous namespace'::ShrinkMemrefSizesByAccessPattern::matchAndRewrite C:\develop\iree-amd-aie-dezhi\third_party\mlir-air\mlir\lib\Transform\AIRDependencyScheduleOpt.cpp:4389:0
 #11 0x00007ff644ac0d67 mlir::detail::OpOrInterfaceRewritePatternBase<class mlir::memref::AllocOp>::matchAndRewrite(class mlir::Operation *, class mlir::PatternRewriter &) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\PatternMatch.h:331:0
 #12 0x00007ff64ad5cd5e mlir::PatternApplicator::matchAndRewrite::<lambda_2>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Rewrite\PatternApplicator.cpp:212:0
 #13 0x00007ff64ad5cb93 llvm::function_ref<void ()>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Rewrite\PatternApplicator.cpp:196:9'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #14 0x00007ff643e63b17 llvm::function_ref<(void)>::operator()(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #15 0x00007ff64ad5ea87 mlir::MLIRContext::executeAction<class mlir::ApplyPatternAction, class mlir::Pattern const &>(class llvm::function_ref<(void)>, class llvm::ArrayRef<class mlir::IRUnit>, class mlir::Pattern const &) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\MLIRContext.h:276:0
 #16 0x00007ff64ad5a9d6 mlir::PatternApplicator::matchAndRewrite(class mlir::Operation *, class mlir::PatternRewriter &, class llvm::function_ref<(class mlir::Pattern const &)>, class llvm::function_ref<(class mlir::Pattern const &)>, class llvm::function_ref<(class mlir::Pattern const &)>) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Rewrite\PatternApplicator.cpp:233:0
 #17 0x00007ff64873de8a `anonymous namespace'::GreedyPatternRewriteDriver::processWorklist C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Transforms\Utils\GreedyPatternRewriteDriver.cpp:617:0
 #18 0x00007ff64873d120 `anonymous namespace'::RegionPatternRewriteDriver::simplify::<lambda_8>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Transforms\Utils\GreedyPatternRewriteDriver.cpp:874:0
 #19 0x00007ff64873d0e3 llvm::function_ref<void ()>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Transforms\Utils\GreedyPatternRewriteDriver.cpp:873:9'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #20 0x00007ff643e63b17 llvm::function_ref<(void)>::operator()(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #21 0x00007ff64873c597 mlir::MLIRContext::executeAction<(anonymous namespace)::GreedyPatternRewriteIteration,long long &> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\MLIRContext.h:276:0
 #22 0x00007ff64873a650 `anonymous namespace'::RegionPatternRewriteDriver::simplify C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Transforms\Utils\GreedyPatternRewriteDriver.cpp:887:0
 #23 0x00007ff64873a2ca mlir::applyPatternsAndFoldGreedily(class mlir::Region &, class mlir::FrozenRewritePatternSet const &, class mlir::GreedyRewriteConfig, bool *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Transforms\Utils\GreedyPatternRewriteDriver.cpp:920:0
 #24 0x00007ff6445aebfa mlir::applyPatternsAndFoldGreedily(class mlir::Operation *, class mlir::FrozenRewritePatternSet const &, class mlir::GreedyRewriteConfig, bool *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\Transforms\GreedyPatternRewriteDriver.h:158:0
 #25 0x00007ff64c627036 `anonymous namespace'::AIRSegmentLoopFusion::runPostProcPatterns C:\develop\iree-amd-aie-dezhi\third_party\mlir-air\mlir\lib\Transform\AIRDependencyScheduleOpt.cpp:5172:0
 #26 0x00007ff64c626b19 `anonymous namespace'::AIRSegmentLoopFusion::runOnOperation C:\develop\iree-amd-aie-dezhi\third_party\mlir-air\mlir\lib\Transform\AIRDependencyScheduleOpt.cpp:5218:0
 #27 0x00007ff64403319d mlir::detail::OpToOpPassAdaptor::run::<lambda_7>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:527:0
 #28 0x00007ff644033133 llvm::function_ref<void ()>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:521:7'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #29 0x00007ff643e63b17 llvm::function_ref<(void)>::operator()(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #30 0x00007ff644036627 mlir::MLIRContext::executeAction<class mlir::PassExecutionAction, class mlir::Pass &>(class llvm::function_ref<(void)>, class llvm::ArrayRef<class mlir::IRUnit>, class mlir::Pass &) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\MLIRContext.h:276:0
 #31 0x00007ff64402e629 mlir::detail::OpToOpPassAdaptor::run(class mlir::Pass *, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:532:0
 #32 0x00007ff64402ed90 mlir::detail::OpToOpPassAdaptor::runPipeline(class mlir::OpPassManager &, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int, class mlir::PassInstrumentor *, struct mlir::PassInstrumentation::PipelineParentInfo const *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:592:0
 #33 0x00007ff644033e7b mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl::<lambda_15>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:816:0
 #34 0x00007ff644033b02 mlir::parallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'>::<lambda_1>::operator()<OpPMInfo &> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:120:0
 #35 0x00007ff644033801 mlir::failableParallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir/IR/Threading.h:119:54'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:46:0
 #36 0x00007ff644033651 mlir::parallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:119:0
 #37 0x00007ff644030233 mlir::parallelForEach<std::vector<OpPMInfo,std::allocator<OpPMInfo> > &,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:131:0
 #38 0x00007ff64402fa18 mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:824:0
 #39 0x00007ff64402f4f5 mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:713:0
 #40 0x00007ff644033187 mlir::detail::OpToOpPassAdaptor::run::<lambda_7>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:524:0
 #41 0x00007ff644033133 llvm::function_ref<void ()>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:521:7'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #42 0x00007ff643e63b17 llvm::function_ref<(void)>::operator()(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #43 0x00007ff644036627 mlir::MLIRContext::executeAction<class mlir::PassExecutionAction, class mlir::Pass &>(class llvm::function_ref<(void)>, class llvm::ArrayRef<class mlir::IRUnit>, class mlir::Pass &) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\MLIRContext.h:276:0
 #44 0x00007ff64402e629 mlir::detail::OpToOpPassAdaptor::run(class mlir::Pass *, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:532:0
 #45 0x00007ff64402ed90 mlir::detail::OpToOpPassAdaptor::runPipeline(class mlir::OpPassManager &, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int, class mlir::PassInstrumentor *, struct mlir::PassInstrumentation::PipelineParentInfo const *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:592:0
 #46 0x00007ff644033e7b mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl::<lambda_15>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:816:0
 #47 0x00007ff644033b02 mlir::parallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'>::<lambda_1>::operator()<OpPMInfo &> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:120:0
 #48 0x00007ff644033801 mlir::failableParallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir/IR/Threading.h:119:54'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:46:0
 #49 0x00007ff644033651 mlir::parallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:119:0
 #50 0x00007ff644030233 mlir::parallelForEach<std::vector<OpPMInfo,std::allocator<OpPMInfo> > &,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:131:0
 #51 0x00007ff64402fa18 mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:824:0
 #52 0x00007ff64402f4f5 mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:713:0
 #53 0x00007ff644033187 mlir::detail::OpToOpPassAdaptor::run::<lambda_7>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:524:0
 #54 0x00007ff644033133 llvm::function_ref<void ()>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:521:7'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #55 0x00007ff643e63b17 llvm::function_ref<(void)>::operator()(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #56 0x00007ff644036627 mlir::MLIRContext::executeAction<class mlir::PassExecutionAction, class mlir::Pass &>(class llvm::function_ref<(void)>, class llvm::ArrayRef<class mlir::IRUnit>, class mlir::Pass &) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\MLIRContext.h:276:0
 #57 0x00007ff64402e629 mlir::detail::OpToOpPassAdaptor::run(class mlir::Pass *, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:532:0
 #58 0x00007ff64402ed90 mlir::detail::OpToOpPassAdaptor::runPipeline(class mlir::OpPassManager &, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int, class mlir::PassInstrumentor *, struct mlir::PassInstrumentation::PipelineParentInfo const *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:592:0
 #59 0x00007ff6440330ff mlir::detail::OpToOpPassAdaptor::run::<lambda_6>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:512:0
 #60 0x00007ff644032e0a llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager &, mlir::Operation *)>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:491:34'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #61 0x00007ff6445c94a5 llvm::function_ref<(class mlir::OpPassManager &, class mlir::Operation *)>::operator()(class mlir::OpPassManager &, class mlir::Operation *) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #62 0x00007ff6445c944e mlir::Pass::runPipeline(class mlir::OpPassManager &, class mlir::Operation *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\Pass\Pass.h:200:0
 #63 0x00007ff647951149 mlir::iree_compiler::IREE::HAL::`anonymous namespace'::TranslateTargetExecutableVariantsPass::runOnOperation C:\develop\iree-amd-aie-dezhi\third_party\iree\compiler\src\iree\compiler\Dialect\HAL\Transforms\TranslateExecutables.cpp:68:0
 #64 0x00007ff64403319d mlir::detail::OpToOpPassAdaptor::run::<lambda_7>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:527:0
 #65 0x00007ff644033133 llvm::function_ref<void ()>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:521:7'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #66 0x00007ff643e63b17 llvm::function_ref<(void)>::operator()(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #67 0x00007ff644036627 mlir::MLIRContext::executeAction<class mlir::PassExecutionAction, class mlir::Pass &>(class llvm::function_ref<(void)>, class llvm::ArrayRef<class mlir::IRUnit>, class mlir::Pass &) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\MLIRContext.h:276:0
 #68 0x00007ff64402e629 mlir::detail::OpToOpPassAdaptor::run(class mlir::Pass *, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:532:0
 #69 0x00007ff64402ed90 mlir::detail::OpToOpPassAdaptor::runPipeline(class mlir::OpPassManager &, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int, class mlir::PassInstrumentor *, struct mlir::PassInstrumentation::PipelineParentInfo const *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:592:0
 #70 0x00007ff644033e7b mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl::<lambda_15>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:816:0
 #71 0x00007ff644033b02 mlir::parallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'>::<lambda_1>::operator()<OpPMInfo &> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:120:0
 #72 0x00007ff644033801 mlir::failableParallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir/IR/Threading.h:119:54'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:46:0
 #73 0x00007ff644033651 mlir::parallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:119:0
 #74 0x00007ff644030233 mlir::parallelForEach<std::vector<OpPMInfo,std::allocator<OpPMInfo> > &,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:131:0
 #75 0x00007ff64402fa18 mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:824:0
 #76 0x00007ff64402f4f5 mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:713:0
 #77 0x00007ff644033187 mlir::detail::OpToOpPassAdaptor::run::<lambda_7>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:524:0
 #78 0x00007ff644033133 llvm::function_ref<void ()>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:521:7'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #79 0x00007ff643e63b17 llvm::function_ref<(void)>::operator()(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #80 0x00007ff644036627 mlir::MLIRContext::executeAction<class mlir::PassExecutionAction, class mlir::Pass &>(class llvm::function_ref<(void)>, class llvm::ArrayRef<class mlir::IRUnit>, class mlir::Pass &) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\MLIRContext.h:276:0
 #81 0x00007ff64402e629 mlir::detail::OpToOpPassAdaptor::run(class mlir::Pass *, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:532:0
 #82 0x00007ff64402ed90 mlir::detail::OpToOpPassAdaptor::runPipeline(class mlir::OpPassManager &, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int, class mlir::PassInstrumentor *, struct mlir::PassInstrumentation::PipelineParentInfo const *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:592:0
 #83 0x00007ff6440330ff mlir::detail::OpToOpPassAdaptor::run::<lambda_6>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:512:0
 #84 0x00007ff644032e0a llvm::function_ref<llvm::LogicalResult (mlir::OpPassManager &, mlir::Operation *)>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:491:34'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #85 0x00007ff6445c94a5 llvm::function_ref<(class mlir::OpPassManager &, class mlir::Operation *)>::operator()(class mlir::OpPassManager &, class mlir::Operation *) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #86 0x00007ff6445c944e mlir::Pass::runPipeline(class mlir::OpPassManager &, class mlir::Operation *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\Pass\Pass.h:200:0
 #87 0x00007ff6479521ad mlir::iree_compiler::IREE::HAL::`anonymous namespace'::TranslateExecutablesPass::runOnOperation C:\develop\iree-amd-aie-dezhi\third_party\iree\compiler\src\iree\compiler\Dialect\HAL\Transforms\TranslateExecutables.cpp:108:0
 #88 0x00007ff64403319d mlir::detail::OpToOpPassAdaptor::run::<lambda_7>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:527:0
 #89 0x00007ff644033133 llvm::function_ref<void ()>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:521:7'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
 #90 0x00007ff643e63b17 llvm::function_ref<(void)>::operator()(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
 #91 0x00007ff644036627 mlir::MLIRContext::executeAction<class mlir::PassExecutionAction, class mlir::Pass &>(class llvm::function_ref<(void)>, class llvm::ArrayRef<class mlir::IRUnit>, class mlir::Pass &) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\MLIRContext.h:276:0
 #92 0x00007ff64402e629 mlir::detail::OpToOpPassAdaptor::run(class mlir::Pass *, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:532:0
 #93 0x00007ff64402ed90 mlir::detail::OpToOpPassAdaptor::runPipeline(class mlir::OpPassManager &, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int, class mlir::PassInstrumentor *, struct mlir::PassInstrumentation::PipelineParentInfo const *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:592:0
 #94 0x00007ff644033e7b mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl::<lambda_15>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:816:0
 #95 0x00007ff644033b02 mlir::parallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'>::<lambda_1>::operator()<OpPMInfo &> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:120:0
 #96 0x00007ff644033801 mlir::failableParallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir/IR/Threading.h:119:54'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:46:0
 #97 0x00007ff644033651 mlir::parallelForEach<std::_Vector_iterator<std::_Vector_val<std::_Simple_types<OpPMInfo> > >,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:119:0
 #98 0x00007ff644030233 mlir::parallelForEach<std::vector<OpPMInfo,std::allocator<OpPMInfo> > &,`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:803:37'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\Threading.h:131:0
 #99 0x00007ff64402fa18 mlir::detail::OpToOpPassAdaptor::runOnOperationAsyncImpl(bool) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:824:0
#100 0x00007ff64402f4f5 mlir::detail::OpToOpPassAdaptor::runOnOperation(bool) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:713:0
#101 0x00007ff644033187 mlir::detail::OpToOpPassAdaptor::run::<lambda_7>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:524:0
#102 0x00007ff644033133 llvm::function_ref<void ()>::callback_fn<`lambda at C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:521:7'> C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:45:0
#103 0x00007ff643e63b17 llvm::function_ref<(void)>::operator()(void) const C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:68:0
#104 0x00007ff644036627 mlir::MLIRContext::executeAction<class mlir::PassExecutionAction, class mlir::Pass &>(class llvm::function_ref<(void)>, class llvm::ArrayRef<class mlir::IRUnit>, class mlir::Pass &) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\include\mlir\IR\MLIRContext.h:276:0
#105 0x00007ff64402e629 mlir::detail::OpToOpPassAdaptor::run(class mlir::Pass *, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:532:0
#106 0x00007ff64402ed90 mlir::detail::OpToOpPassAdaptor::runPipeline(class mlir::OpPassManager &, class mlir::Operation *, class mlir::AnalysisManager, bool, unsigned int, class mlir::PassInstrumentor *, struct mlir::PassInstrumentation::PipelineParentInfo const *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:592:0
#107 0x00007ff644030a8d mlir::PassManager::runPasses(class mlir::Operation *, class mlir::AnalysisManager) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:905:0
#108 0x00007ff644030975 mlir::PassManager::run(class mlir::Operation *) C:\develop\iree-amd-aie-dezhi\third_party\iree\third_party\llvm-project\mlir\lib\Pass\Pass.cpp:888:0
#109 0x00007ff643df4fe9 mlir::iree_compiler::embed::`anonymous namespace'::Invocation::runPipeline C:\develop\iree-amd-aie-dezhi\third_party\iree\compiler\src\iree\compiler\API\Internal\CompilerDriver.cpp:997:0
#110 0x00007ff643df4723 ireeCompilerInvocationPipeline C:\develop\iree-amd-aie-dezhi\third_party\iree\compiler\src\iree\compiler\API\Internal\CompilerDriver.cpp:1432:0
#111 0x00007ff643dd3043 mlir::iree_compiler::runIreecMain::<lambda_2>::operator() C:\develop\iree-amd-aie-dezhi\third_party\iree\compiler\src\iree\compiler\Tools\iree_compile_lib.cc:262:0
#112 0x00007ff643dd1dfe mlir::iree_compiler::runIreecMain(int, char **) C:\develop\iree-amd-aie-dezhi\third_party\iree\compiler\src\iree\compiler\Tools\iree_compile_lib.cc:355:0
#113 0x00007ff643dd104b ireeCompilerRunMain C:\develop\iree-amd-aie-dezhi\third_party\iree\compiler\src\iree\compiler\API\Internal\IREECompileToolEntryPoint.cpp:12:0
#114 0x00007ff643dd1023 main C:\develop\iree-amd-aie-dezhi\third_party\iree\tools\iree-compile-main.cc:9:0
#115 0x00007ff651bbf5c9 invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79:0
#116 0x00007ff651bbf6fe __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0
#117 0x00007ff651bbf77e __scrt_common_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0
#118 0x00007ff651bbf79e mainCRTStartup D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0


@dezhiAmd dezhiAmd changed the title xrt HAL driver Debug build fails on windows OS Debug build fails on windows OS Nov 13, 2024
@makslevental
Copy link
Collaborator

You need to build both LLVM and iree-amd-aie in Debug mode for this to work; see here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants