<div dir="ltr">Source: <font color="#000000">llvmlite</font><div>Version: 0.42.0-1<span style="color:rgb(0,0,0)"><br></span></div><div>Severity: important<br></div><div>Tags: FTBFS, patch<br></div><div><div>User: <a href="mailto:debian-riscv@lists.debian.org" target="_blank">debian-riscv@lists.debian.org</a></div><div>Usertags: riscv64<br></div><div>X-Debbugs-Cc: <a href="mailto:debian-riscv@lists.debian.org" target="_blank">debian-riscv@lists.debian.org</a></div></div><div><br></div><div>Dear llvmlite Maintainer,</div><div>The llvmlite compile failed on riscv64 caused by auto-test failed.The crucial buildd log below:</div><div>```</div><div><pre style="color:rgb(0,0,0)">test_global_ctors_dtors (llvmlite.tests.test_binding.TestGlobalConstructors.test_global_ctors_dtors) ... WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch.
LLVM ERROR: Unsupported code model for lowering
Aborted
E: pybuild pybuild:391: test: plugin distutils failed with: exit code=134: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_llvmlite/build; python3.12 -m unittest discover -v
I: pybuild base:305: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_llvmlite/build; python3.11 -m unittest discover -v
test_function_cfg_on_llvm_value (llvmlite.tests.test_binding.TestAnalysis.test_function_cfg_on_llvm_value) ... ok
test_get_function_cfg_on_ir (llvmlite.tests.test_binding.TestAnalysis.test_get_function_cfg_on_ir) ... ok
test_linux (llvmlite.tests.test_binding.TestDependencies.test_linux) ... skipped 'Distribution-specific test'
test_bad_library (llvmlite.tests.test_binding.TestDylib.test_bad_library) ... ok
test_libm (llvmlite.tests.test_binding.TestDylib.test_libm) ... ok
test_close (llvmlite.tests.test_binding.TestFunctionPassManager.test_close) ... ok
test_initfini (llvmlite.tests.test_binding.TestFunctionPassManager.test_initfini) ... ok
test_run (llvmlite.tests.test_binding.TestFunctionPassManager.test_run) ... ok
test_run_with_remarks (llvmlite.tests.test_binding.TestFunctionPassManager.test_run_with_remarks) ... ok
test_run_with_remarks_filter_in (llvmlite.tests.test_binding.TestFunctionPassManager.test_run_with_remarks_filter_in) ... ok
test_run_with_remarks_filter_out (llvmlite.tests.test_binding.TestFunctionPassManager.test_run_with_remarks_filter_out) ... ok
test_add_module (llvmlite.tests.test_binding.TestGlobalConstructors.test_add_module) ... WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch.
ok
test_add_module_lifetime (llvmlite.tests.test_binding.TestGlobalConstructors.test_add_module_lifetime) ... WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch.
ok
test_add_module_lifetime2 (llvmlite.tests.test_binding.TestGlobalConstructors.test_add_module_lifetime2) ... WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch.
ok
test_close (llvmlite.tests.test_binding.TestGlobalConstructors.test_close) ... WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch.
ok
test_emit_assembly (llvmlite.tests.test_binding.TestGlobalConstructors.test_emit_assembly)
Test TargetMachineRef.emit_assembly() ... WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch.
ok
test_emit_object (llvmlite.tests.test_binding.TestGlobalConstructors.test_emit_object)
Test TargetMachineRef.emit_object() ... WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch.
ok
test_global_ctors_dtors (llvmlite.tests.test_binding.TestGlobalConstructors.test_global_ctors_dtors) ... WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch.
LLVM ERROR: Unsupported code model for lowering
Aborted
E: pybuild pybuild:391: test: plugin distutils failed with: exit code=134: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_llvmlite/build; python3.11 -m unittest discover -v
rm -fr -- /tmp/dh-xdg-rundir-O9hmzrPM
dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" returned exit code 13
make[1]: *** [debian/rules:19: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2</pre></div><div>```</div><div>The full buildd log is here:</div><div><a href="https://buildd.debian.org/status/fetch.php?pkg=llvmlite&arch=riscv64&ver=0.42.0-1&stamp=1709707882&raw=0">https://buildd.debian.org/status/fetch.php?pkg=llvmlite&arch=riscv64&ver=0.42.0-1&stamp=1709707882&raw=0</a><br></div><div><br></div><div>My solution to this issue:</div><div>This problem is similar to issue #917252, so I can modify the file debian/rules to view the auto-test as success. I have test this modification in local, and it work effectively.Please let me know wheather this patch can be accepted. The patch is in the attachment.</div><div>Gui-Yue</div><div>Best Regards</div></div>