Bug#1071569: llvmlite:FTBFS:compile failed(test: plugin distutils failed with: exit code=134)

Yue Gui yuemeng.gui at gmail.com
Tue May 21 13:08:14 BST 2024


Source: llvmlite
Version: 0.42.0-1
Severity: important
Tags: FTBFS, patch
User: debian-riscv at lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv at lists.debian.org

Dear llvmlite Maintainer,
The llvmlite compile failed on riscv64 caused by auto-test failed.The
crucial buildd log below:
```

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

```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=llvmlite&arch=riscv64&ver=0.42.0-1&stamp=1709707882&raw=0

My solution to this issue:
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.
Gui-Yue
Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20240521/94ef8404/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_build_failure_on_riscv.patch
Type: application/octet-stream
Size: 1069 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20240521/94ef8404/attachment.obj>


More information about the Pkg-llvm-team mailing list