llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.92k stars 11.52k forks source link

polly/lib/External/isl/isl_mat.c:1147: Assertion "pivot >= 0" failed #87005

Open bemerguy opened 5 months ago

bemerguy commented 5 months ago

LTO vmlinux.o

polly/lib/External/isl/isl_mat.c:1147: Assertion "pivot >= 0" failed
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
LLVM ERROR: Failed to rename temporary file .thinlto-cache/Thin-f96c7e.tmp.o to .thinlto-cache/llvmcache-389DFEEEED40E644A071DDBAC427773FB30BEB3F: No such file or directory

LLVM ERROR: Failed to rename temporary file .thinlto-cache/Thin-e69101.tmp.o to .thinlto-cache/llvmcache-8E49F6627357AC66022FFAC54F03D28CE203D5B6: No such file or directory

../scripts/link-vmlinux.sh: line 101: 479688 Aborted                 (core dumped) ${LDFINAL} ${KBUILD_LDFLAGS} -r -o ${1} $(lto_lds) ${objects}
make[1]: *** [/root/newband/Makefile:1310: vmlinux] Error 134

this is GCOV + POLLY enabled and a lot of custom inlining parameters... lol

/usr/lib/llvm-18/bin/ld.lld -mllvm -mcpu=cortex-a55 -EL -maarch64elf -z norelro --lto-O3 -mllvm -polly -mllvm -polly-run-dce -mllvm -polly-run-inliner -mllvm -polly-isl-arg=--no-schedule-serialize-sccs -mllvm -polly-ast-use-context -mllvm -polly-detect-keep-going -mllvm -polly-vectorizer=stripmine -mllvm -polly-invariant-load-hoisting -mllvm -import-instr-limit=5 -mllvm -import-critical-multiplier=30 -mllvm -import-hot-multiplier=15 -mllvm -import-cold-multiplier=2 -mllvm -import-instr-evolution-factor=0.7 -mllvm -inline-threshold=125 -mllvm -inlinehint-threshold=325 -mllvm -inline-instr-cost=12 -mllvm -inline-cold-callsite-threshold=5 -mllvm -inlinecold-threshold=5 -mllvm -hot-callsite-threshold=800 -mllvm -locally-hot-callsite-threshold=300 -mllvm -inline-size-allowance=0 -mllvm -inline-enable-cost-benefit-analysis=true -mllvm -print-instruction-comments=true --thinlto-cache-dir=.thinlto-cache --no-undefined -X -Bsymbolic -z notext --no-apply-dynamic-relocs -pie -z norelro --build-id --pack-dyn-relocs=relr

root@it:~/newband# /usr/lib/llvm-18/bin/clang -v
Ubuntu clang version 18.0.0 (++20240122083514+2d373143ad69-1~exp1~20240122203624.269)
llvmbot commented 5 months ago

@llvm/issue-subscribers-polly

Author: Heiler Bemerguy (bemerguy)

LTO vmlinux.o polly/lib/External/isl/isl_mat.c:1147: Assertion "pivot >= 0" failed PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. LLVM ERROR: Failed to rename temporary file .thinlto-cache/Thin-f96c7e.tmp.o to .thinlto-cache/llvmcache-389DFEEEED40E644A071DDBAC427773FB30BEB3F: No such file or directory LLVM ERROR: Failed to rename temporary file .thinlto-cache/Thin-e69101.tmp.o to .thinlto-cache/llvmcache-8E49F6627357AC66022FFAC54F03D28CE203D5B6: No such file or directory ../scripts/link-vmlinux.sh: line 101: 479688 Aborted (core dumped) ${LDFINAL} ${KBUILD_LDFLAGS} -r -o ${1} $(lto_lds) ${objects} make[1]: *** [/root/newband/Makefile:1310: vmlinux] Error 134 this is GCOV + POLLY enabled and a lot of custom inlining parameters... lol /usr/lib/llvm-18/bin/ld.lld -mllvm -mcpu=cortex-a55 -EL -maarch64elf -z norelro --lto-O3 -mllvm -polly -mllvm -polly-run-dce -mllvm -polly-run-inliner -mllvm -polly-isl-arg=--no-schedule-serialize-sccs -mllvm -polly-ast-use-context -mllvm -polly-detect-keep-going -mllvm -polly-vectorizer=stripmine -mllvm -polly-invariant-load-hoisting -mllvm -import-instr-limit=5 -mllvm -import-critical-multiplier=30 -mllvm -import-hot-multiplier=15 -mllvm -import-cold-multiplier=2 -mllvm -import-instr-evolution-factor=0.7 -mllvm -inline-threshold=125 -mllvm -inlinehint-threshold=325 -mllvm -inline-instr-cost=12 -mllvm -inline-cold-callsite-threshold=5 -mllvm -inlinecold-threshold=5 -mllvm -hot-callsite-threshold=800 -mllvm -locally-hot-callsite-threshold=300 -mllvm -inline-size-allowance=0 -mllvm -inline-enable-cost-benefit-analysis=true -mllvm -print-instruction-comments=true --thinlto-cache-dir=.thinlto-cache --no-undefined -X -Bsymbolic -z notext --no-apply-dynamic-relocs -pie -z norelro --build-id --pack-dyn-relocs=relr root@it:~/newband# /usr/lib/llvm-18/bin/clang -v Ubuntu clang version 18.0.0 (++20240122083514+2d373143ad69-1~exp1~20240122203624.269)
hiraditya commented 4 months ago

You need to add repro file and command line