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

Test failure with LLVM-20 #43

Open
SchrodingerZhu opened this issue Jan 13, 2025 · 0 comments
Open

Test failure with LLVM-20 #43

SchrodingerZhu opened this issue Jan 13, 2025 · 0 comments

Comments

@SchrodingerZhu
Copy link
Collaborator

[1/1] cd /home/schrodingerzy/Documents/mlir-gccjit/build/test && /home...jit/run-lit.py -v /home/schrodingerzy/Documents/mlir-gccjit/build/test
FAILED: test/CMakeFiles/check /home/schrodingerzy/Documents/mlir-gccjit/build/test/CMakeFiles/check 
cd /home/schrodingerzy/Documents/mlir-gccjit/build/test && /home/schrodingerzy/Documents/mlir-gccjit/run-lit.py -v /home/schrodingerzy/Documents/mlir-gccjit/build/test
-- Testing: 25 tests, 25 workers --
PASS: MLIR GCCJIT Dialect :: compile/lazy_evaluation.mlir (1 of 25)
PASS: MLIR GCCJIT Dialect :: syntax/basic.mlir (2 of 25)
PASS: MLIR GCCJIT Dialect :: syntax/floating_point.mlir (3 of 25)
PASS: MLIR GCCJIT Dialect :: compile/unary.mlir (4 of 25)
PASS: MLIR GCCJIT Dialect :: syntax/branch.mlir (5 of 25)
PASS: MLIR GCCJIT Dialect :: syntax/extened_asm.mlir (6 of 25)
PASS: MLIR GCCJIT Dialect :: syntax/record.mlir (7 of 25)
PASS: MLIR GCCJIT Dialect :: syntax/function_attrs.mlir (8 of 25)
PASS: MLIR GCCJIT Dialect :: compile/atomic.mlir (9 of 25)
PASS: MLIR GCCJIT Dialect :: syntax/variables.mlir (10 of 25)
PASS: MLIR GCCJIT Dialect :: lowering/alloca.mlir (11 of 25)
PASS: MLIR GCCJIT Dialect :: syntax/hello_world.mlir (12 of 25)
PASS: MLIR GCCJIT Dialect :: lowering/alloc.mlir (13 of 25)
PASS: MLIR GCCJIT Dialect :: lowering/assume_aligned.mlir (14 of 25)
PASS: MLIR GCCJIT Dialect :: compile/union.mlir (15 of 25)
PASS: MLIR GCCJIT Dialect :: compile/hello_world.mlir (16 of 25)
PASS: MLIR GCCJIT Dialect :: compile/bitfield.mlir (17 of 25)
FAIL: MLIR GCCJIT Dialect :: compile/global.mlir (18 of 25)
******************** TEST 'MLIR GCCJIT Dialect :: compile/global.mlir' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.gimple /home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir -mlir-to-gccjit-gimple
+ /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.gimple /home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir -mlir-to-gccjit-gimple
RUN: at line 2: /usr/local/llvm-devel/bin/FileCheck --input-file=/home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.gimple /home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir --check-prefix=CHECK-GIMPLE
+ /usr/local/llvm-devel/bin/FileCheck --input-file=/home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.gimple /home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir --check-prefix=CHECK-GIMPLE
RUN: at line 3: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.exe /home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir -mlir-to-gccjit-executable && chmod +x /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.exe
+ /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.exe /home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir -mlir-to-gccjit-executable
+ chmod +x /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.exe
RUN: at line 4: /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.exe | /usr/local/llvm-devel/bin/FileCheck /home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir --check-prefix=CHECK-OUTPUT
+ /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/global.mlir.tmp.exe
+ /usr/local/llvm-devel/bin/FileCheck /home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir --check-prefix=CHECK-OUTPUT
/home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir:76:19: error: CHECK-OUTPUT: expected string not found in input
 // CHECK-OUTPUT: sum = 45
                  ^
<stdin>:1:1: note: scanning from here
sum = 46
^

Input file: <stdin>
Check file: /home/schrodingerzy/Documents/mlir-gccjit/test/compile/global.mlir

-dump-input=help explains the following input dump.

Input was:
<<<<<<
          1: sum = 46 
check:76     X~~~~~~~~ error: no match found
>>>>>>

--

********************
PASS: MLIR GCCJIT Dialect :: compile/vector.mlir (19 of 25)
FAIL: MLIR GCCJIT Dialect :: lowering/dealloc.mlir (20 of 25)
******************** TEST 'MLIR GCCJIT Dialect :: lowering/dealloc.mlir' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/dealloc.mlir      -lower-affine      -convert-scf-to-cf      -convert-arith-to-gccjit      -convert-memref-to-gccjit      -convert-func-to-gccjit      -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.mlir
+ /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/dealloc.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.mlir
RUN: at line 9: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.mlir -mlir-to-gccjit-executable -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.exe && chmod +x /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.exe
+ /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.mlir -mlir-to-gccjit-executable -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.exe
+ chmod +x /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.exe
RUN: at line 10: /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.exe
+ /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/dealloc.mlir.tmp.exe
This sanitizer is not compatible with enabled ASLR and binaries compiled with PIE

--

********************
PASS: MLIR GCCJIT Dialect :: compile/expression.mlir (21 of 25)
FAIL: MLIR GCCJIT Dialect :: compile/deref_chain.mlir (22 of 25)
******************** TEST 'MLIR GCCJIT Dialect :: compile/deref_chain.mlir' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 1: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.gimple /home/schrodingerzy/Documents/mlir-gccjit/test/compile/deref_chain.mlir -mlir-to-gccjit-gimple
+ /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.gimple /home/schrodingerzy/Documents/mlir-gccjit/test/compile/deref_chain.mlir -mlir-to-gccjit-gimple
RUN: at line 2: /usr/local/llvm-devel/bin/FileCheck --input-file=/home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.gimple /home/schrodingerzy/Documents/mlir-gccjit/test/compile/deref_chain.mlir --check-prefix=CHECK-GIMPLE
+ /usr/local/llvm-devel/bin/FileCheck --input-file=/home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.gimple /home/schrodingerzy/Documents/mlir-gccjit/test/compile/deref_chain.mlir --check-prefix=CHECK-GIMPLE
RUN: at line 3: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.exe /home/schrodingerzy/Documents/mlir-gccjit/test/compile/deref_chain.mlir -mlir-to-gccjit-executable && chmod +x /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.exe
+ /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-translate -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.exe /home/schrodingerzy/Documents/mlir-gccjit/test/compile/deref_chain.mlir -mlir-to-gccjit-executable
+ chmod +x /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.exe
RUN: at line 4: /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.exe | /usr/local/llvm-devel/bin/FileCheck /home/schrodingerzy/Documents/mlir-gccjit/test/compile/deref_chain.mlir --check-prefix=CHECK-OUTPUT
+ /home/schrodingerzy/Documents/mlir-gccjit/build/test/compile/Output/deref_chain.mlir.tmp.exe
+ /usr/local/llvm-devel/bin/FileCheck /home/schrodingerzy/Documents/mlir-gccjit/test/compile/deref_chain.mlir --check-prefix=CHECK-OUTPUT
This sanitizer is not compatible with enabled ASLR and binaries compiled with PIE
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /usr/local/llvm-devel/bin/FileCheck /home/schrodingerzy/Documents/mlir-gccjit/test/compile/deref_chain.mlir --check-prefix=CHECK-OUTPUT

--

********************
FAIL: MLIR GCCJIT Dialect :: lowering/alloca_sum.mlir (23 of 25)
******************** TEST 'MLIR GCCJIT Dialect :: lowering/alloca_sum.mlir' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
RUN: at line 1: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/alloca_sum.mlir      -lower-affine      -convert-scf-to-cf      -convert-arith-to-gccjit      -convert-memref-to-gccjit      -convert-func-to-gccjit      -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/alloca_sum.mlir.tmp.mlir
+ /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/alloca_sum.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/alloca_sum.mlir.tmp.mlir
Assertion failed: (succeeded(result) && "expected ConstantLike op to be foldable"), function match, file /wrkdirs/usr/ports/devel/llvm-devel/work-default/llvm-project-78f04477d658ae3de3cd416947c5bac65262a9ec/mlir/include/mlir/IR/Matchers.h, line 93.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/alloca_sum.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/alloca_sum.mlir.tmp.mlir
 #0 0x000000082fc32469 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/llvm-devel/lib/libLLVM.so.20.0git+0x4a32469)
 #1 0x000000082fc30395 llvm::sys::RunSignalHandlers() (/usr/local/llvm-devel/lib/libLLVM.so.20.0git+0x4a30395)
 #2 0x000000082fc32b38 (/usr/local/llvm-devel/lib/libLLVM.so.20.0git+0x4a32b38)
 #3 0x0000000825587410 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3
 #4 0x00000008255869cb thr_sighandler /usr/src/lib/libthr/thread/thr_sig.c:244:1
 #5 0x00000008240282d3 ([vdso]+0x2d3)
 #6 0x0000000826dbb1ba thr_kill /usr/obj/usr/src/amd64.amd64/lib/libc/thr_kill.S:4:0
 #7 0x0000000826d345d4 _raise /usr/src/lib/libc/gen/raise.c:0:10
 #8 0x0000000826de7b59 abort /usr/src/lib/libc/stdlib/abort.c:70:17
 #9 0x0000000826d177c1 (/lib/libc.so.7+0x947c1)
#10 0x00000000010fc76c mlir::detail::constant_op_binder<mlir::Attribute>::match(mlir::Operation*) AffineOps.cpp:0:0
#11 0x0000000003b3f29d mlir::Operation::fold(llvm::SmallVectorImpl<mlir::OpFoldResult>&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3b3f29d)
#12 0x0000000003aa83b7 mlir::OpBuilder::tryFold(mlir::Operation*, llvm::SmallVectorImpl<mlir::Value>&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3aa83b7)
#13 0x000000000395ee4a (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*, mlir::ConversionPatternRewriter&) DialectConversion.cpp:0:0
#14 0x000000000395e2dd mlir::OperationConverter::convert(mlir::ConversionPatternRewriter&, mlir::Operation*) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x395e2dd)
#15 0x000000000395f3ff mlir::OperationConverter::convertOperations(llvm::ArrayRef<mlir::Operation*>) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x395f3ff)
#16 0x0000000003963804 mlir::applyPartialConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3963804)
#17 0x00000000037fe1cb (anonymous namespace)::ConvertFuncToGCCJITPass::runOnOperation() ConvertFuncToGCCJIT.cpp:0:0
#18 0x00000000039b62d5 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x39b62d5)
#19 0x00000000039b8820 mlir::PassManager::run(mlir::Operation*) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x39b8820)
#20 0x0000000000fa243b performActions(llvm::raw_ostream&, std::__1::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#21 0x0000000000fa20cb llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#22 0x0000000003b6ac54 mlir::splitAndProcessBuffer(std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3b6ac54)
#23 0x0000000000f9a3f1 mlir::MlirOptMain(llvm::raw_ostream&, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xf9a3f1)
#24 0x0000000000f9a6ff mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xf9a6ff)
#25 0x0000000000f9a95a mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xf9a95a)
#26 0x0000000000e56bdd main (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xe56bdd)
#27 0x0000000826d08c3a __libc_start1 /usr/src/lib/libc/csu/libc_start1.c:157:2
/home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/alloca_sum.mlir.script: line 5: 39201 Abort trap              (core dumped) /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/alloca_sum.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/alloca_sum.mlir.tmp.mlir

--

********************
FAIL: MLIR GCCJIT Dialect :: lowering/gemm.mlir (24 of 25)
******************** TEST 'MLIR GCCJIT Dialect :: lowering/gemm.mlir' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
RUN: at line 1: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/gemm.mlir      -lower-affine      -convert-scf-to-cf      -convert-arith-to-gccjit      -convert-memref-to-gccjit      -convert-func-to-gccjit      -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/gemm.mlir.tmp.mlir
+ /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/gemm.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/gemm.mlir.tmp.mlir
Assertion failed: (succeeded(result) && "expected ConstantLike op to be foldable"), function match, file /wrkdirs/usr/ports/devel/llvm-devel/work-default/llvm-project-78f04477d658ae3de3cd416947c5bac65262a9ec/mlir/include/mlir/IR/Matchers.h, line 93.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/gemm.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/gemm.mlir.tmp.mlir
 #0 0x0000000830832469 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/llvm-devel/lib/libLLVM.so.20.0git+0x4a32469)
 #1 0x0000000830830395 llvm::sys::RunSignalHandlers() (/usr/local/llvm-devel/lib/libLLVM.so.20.0git+0x4a30395)
 #2 0x0000000830832b38 (/usr/local/llvm-devel/lib/libLLVM.so.20.0git+0x4a32b38)
 #3 0x00000008250f0410 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3
 #4 0x00000008250ef9cb thr_sighandler /usr/src/lib/libthr/thread/thr_sig.c:244:1
 #5 0x00000008249182d3 ([vdso]+0x2d3)
 #6 0x00000008275931ba thr_kill /usr/obj/usr/src/amd64.amd64/lib/libc/thr_kill.S:4:0
 #7 0x000000082750c5d4 _raise /usr/src/lib/libc/gen/raise.c:0:10
 #8 0x00000008275bfb59 abort /usr/src/lib/libc/stdlib/abort.c:70:17
 #9 0x00000008274ef7c1 (/lib/libc.so.7+0x947c1)
#10 0x00000000010fc76c mlir::detail::constant_op_binder<mlir::Attribute>::match(mlir::Operation*) AffineOps.cpp:0:0
#11 0x0000000003b3f29d mlir::Operation::fold(llvm::SmallVectorImpl<mlir::OpFoldResult>&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3b3f29d)
#12 0x0000000003aa83b7 mlir::OpBuilder::tryFold(mlir::Operation*, llvm::SmallVectorImpl<mlir::Value>&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3aa83b7)
#13 0x000000000395ee4a (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*, mlir::ConversionPatternRewriter&) DialectConversion.cpp:0:0
#14 0x000000000395e2dd mlir::OperationConverter::convert(mlir::ConversionPatternRewriter&, mlir::Operation*) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x395e2dd)
#15 0x000000000395f3ff mlir::OperationConverter::convertOperations(llvm::ArrayRef<mlir::Operation*>) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x395f3ff)
#16 0x0000000003963804 mlir::applyPartialConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3963804)
#17 0x00000000037fe1cb (anonymous namespace)::ConvertFuncToGCCJITPass::runOnOperation() ConvertFuncToGCCJIT.cpp:0:0
#18 0x00000000039b62d5 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x39b62d5)
#19 0x00000000039b8820 mlir::PassManager::run(mlir::Operation*) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x39b8820)
#20 0x0000000000fa243b performActions(llvm::raw_ostream&, std::__1::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#21 0x0000000000fa20cb llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#22 0x0000000003b6ac54 mlir::splitAndProcessBuffer(std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3b6ac54)
#23 0x0000000000f9a3f1 mlir::MlirOptMain(llvm::raw_ostream&, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xf9a3f1)
#24 0x0000000000f9a6ff mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xf9a6ff)
#25 0x0000000000f9a95a mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xf9a95a)
#26 0x0000000000e56bdd main (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xe56bdd)
#27 0x00000008274e0c3a __libc_start1 /usr/src/lib/libc/csu/libc_start1.c:157:2
/home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/gemm.mlir.script: line 6: 41396 Abort trap              (core dumped) /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/gemm.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/gemm.mlir.tmp.mlir

--

********************
FAIL: MLIR GCCJIT Dialect :: lowering/global.mlir (25 of 25)
******************** TEST 'MLIR GCCJIT Dialect :: lowering/global.mlir' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
RUN: at line 1: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/global.mlir      -lower-affine      -convert-scf-to-cf      -convert-arith-to-gccjit      -convert-memref-to-gccjit      -convert-func-to-gccjit      -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/global.mlir.tmp.mlir
+ /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/global.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/global.mlir.tmp.mlir
Assertion failed: (succeeded(result) && "expected ConstantLike op to be foldable"), function match, file /wrkdirs/usr/ports/devel/llvm-devel/work-default/llvm-project-78f04477d658ae3de3cd416947c5bac65262a9ec/mlir/include/mlir/IR/Matchers.h, line 93.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/global.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/global.mlir.tmp.mlir
 #0 0x0000000830a32469 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/llvm-devel/lib/libLLVM.so.20.0git+0x4a32469)
 #1 0x0000000830a30395 llvm::sys::RunSignalHandlers() (/usr/local/llvm-devel/lib/libLLVM.so.20.0git+0x4a30395)
 #2 0x0000000830a32b38 (/usr/local/llvm-devel/lib/libLLVM.so.20.0git+0x4a32b38)
 #3 0x0000000824b07410 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3
 #4 0x0000000824b069cb thr_sighandler /usr/src/lib/libthr/thread/thr_sig.c:244:1
 #5 0x0000000823e532d3 ([vdso]+0x2d3)
 #6 0x000000082a9701ba thr_kill /usr/obj/usr/src/amd64.amd64/lib/libc/thr_kill.S:4:0
 #7 0x000000082a8e95d4 _raise /usr/src/lib/libc/gen/raise.c:0:10
 #8 0x000000082a99cb59 abort /usr/src/lib/libc/stdlib/abort.c:70:17
 #9 0x000000082a8cc7c1 (/lib/libc.so.7+0x947c1)
#10 0x00000000010fc76c mlir::detail::constant_op_binder<mlir::Attribute>::match(mlir::Operation*) AffineOps.cpp:0:0
#11 0x0000000003b3f29d mlir::Operation::fold(llvm::SmallVectorImpl<mlir::OpFoldResult>&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3b3f29d)
#12 0x0000000003aa83b7 mlir::OpBuilder::tryFold(mlir::Operation*, llvm::SmallVectorImpl<mlir::Value>&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3aa83b7)
#13 0x000000000395ee4a (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*, mlir::ConversionPatternRewriter&) DialectConversion.cpp:0:0
#14 0x000000000395e2dd mlir::OperationConverter::convert(mlir::ConversionPatternRewriter&, mlir::Operation*) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x395e2dd)
#15 0x000000000395f3ff mlir::OperationConverter::convertOperations(llvm::ArrayRef<mlir::Operation*>) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x395f3ff)
#16 0x0000000003963804 mlir::applyPartialConversion(llvm::ArrayRef<mlir::Operation*>, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3963804)
#17 0x00000000037fe1cb (anonymous namespace)::ConvertFuncToGCCJITPass::runOnOperation() ConvertFuncToGCCJIT.cpp:0:0
#18 0x00000000039b62d5 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x39b62d5)
#19 0x00000000039b8820 mlir::PassManager::run(mlir::Operation*) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x39b8820)
#20 0x0000000000fa243b performActions(llvm::raw_ostream&, std::__1::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
#21 0x0000000000fa20cb llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
#22 0x0000000003b6ac54 mlir::splitAndProcessBuffer(std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0x3b6ac54)
#23 0x0000000000f9a3f1 mlir::MlirOptMain(llvm::raw_ostream&, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xf9a3f1)
#24 0x0000000000f9a6ff mlir::MlirOptMain(int, char**, llvm::StringRef, llvm::StringRef, mlir::DialectRegistry&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xf9a6ff)
#25 0x0000000000f9a95a mlir::MlirOptMain(int, char**, llvm::StringRef, mlir::DialectRegistry&) (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xf9a95a)
#26 0x0000000000e56bdd main (/home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt+0xe56bdd)
#27 0x000000082a8bdc3a __libc_start1 /usr/src/lib/libc/csu/libc_start1.c:157:2
/home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/global.mlir.script: line 5: 41307 Abort trap              (core dumped) /home/schrodingerzy/Documents/mlir-gccjit/build/bin/gccjit-opt /home/schrodingerzy/Documents/mlir-gccjit/test/lowering/global.mlir -lower-affine -convert-scf-to-cf -convert-arith-to-gccjit -convert-memref-to-gccjit -convert-func-to-gccjit -reconcile-unrealized-casts -mlir-print-debuginfo -o /home/schrodingerzy/Documents/mlir-gccjit/build/test/lowering/Output/global.mlir.tmp.mlir

--

********************
********************
Failed Tests (6):
  MLIR GCCJIT Dialect :: compile/deref_chain.mlir
  MLIR GCCJIT Dialect :: compile/global.mlir
  MLIR GCCJIT Dialect :: lowering/alloca_sum.mlir
  MLIR GCCJIT Dialect :: lowering/dealloc.mlir
  MLIR GCCJIT Dialect :: lowering/gemm.mlir
  MLIR GCCJIT Dialect :: lowering/global.mlir


Testing Time: 0.19s

Total Discovered Tests: 25
  Passed: 19 (76.00%)
  Failed:  6 (24.00%)
ninja: build stopped: subcommand failed.
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

1 participant