Created attachment 906473 [details] build.log (ppc, 24.7.0) [...] /var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:105: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. b"3des-cbc": (algorithms.TripleDES, 24, modes.CBC), /var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:106: CryptographyDeprecationWarning: Blowfish has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.Blowfish and will be removed from this module in 45.0.0. b"blowfish-cbc": (algorithms.Blowfish, 16, modes.CBC), /var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:110: CryptographyDeprecationWarning: CAST5 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.CAST5 and will be removed from this module in 45.0.0. b"cast128-cbc": (algorithms.CAST5, 16, modes.CBC), /var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:114: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. b"3des-ctr": (algorithms.TripleDES, 24, modes.CTR), /var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:115: CryptographyDeprecationWarning: Blowfish has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.Blowfish and will be removed from this module in 45.0.0. b"blowfish-ctr": (algorithms.Blowfish, 16, modes.CTR), /var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/ssh/transport.py:116: CryptographyDeprecationWarning: CAST5 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.CAST5 and will be removed from this module in 45.0.0. b"cast128-ctr": (algorithms.CAST5, 16, modes.CTR), libEGL warning: MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri) LLVM ERROR: Relocation type not implemented yet! /var/tmp/portage/dev-python/twisted-24.7.0/temp/environment: line 3977: 90 Aborted "${EPYTHON}" -m twisted.trial -j "$(makeopts_jobs)" twisted * ERROR: dev-python/twisted-24.7.0::gentoo failed (test phase):
Created attachment 906474 [details] emerge --info
This is a clang / llvm bug. Can you report it upstream if you can hit it with Clang 19? But first, you will need to try extract whatever command failed and ideally preprocessed sources...
Interesting thing is I didn't even used llvm/clang to build, nor do I know where it would be involved in this python network module testing. On a 2nd look the "LLVM ERROR: Relocation type not implemented yet!" might be connected to the message above "libEGL warning: MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)". But zink is masked on ppc mesa and I don't know what this might have to do with these tests either. Anyhow, I'll take a look at whether updating to llvm-19 changes something here.
Yeah, it must be from Mesa, but I wonder why Mesa is even involvde here.. does Twisted even have GUI tests?
Two insights: 1.) Whether twisted has GUI tests or not it does run tests on it's own display: [...] >>> Test phase: dev-python/twisted-24.7.0 * Starting Xvfb ... * Xvfb started on DISPLAY=:2 * python3_12: running distutils-r1_run_phase python_test 2.) I had 'llvm' flag unmasked via use.mask, so mesa was built with +llvm (which is masked on ppc32). In turn this must have lead to the "LLVM ERROR: Relocation type not implemented yet!" I was getting here. I started scratching my head as this LLVM ERROR suddendly turned up in other testsuits (e.g. pillow)... Now as I deleted the llvm unmasking this LLVM error is gone and I get the regular twisted test failures. Updating bug accordingly...
Created attachment 906607 [details] build.log.xz (ppc, 24.7.0) [...] twisted.web.test.test_tap.ServiceTests.test_HTTPSFailureOnMissingSSL =============================================================================== [FAIL] Traceback (most recent call last): File "/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/test/test_manhole.py", line 237, in finished self._assertBuffer( File "/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/conch/test/test_recvline.py", line 476, in _assertBuffer self.assertEqual(receivedLines, expectedLines) File "/var/tmp/portage/dev-python/twisted-24.7.0/work/twisted-24.7.0-python3_12/install/usr/lib/python3.12/site-packages/twisted/trial/_synctest.py", line 444, in assertEqual super().assertEqual(first, second, msg) File "/usr/lib/python3.12/unittest/case.py", line 885, in assertEqual assertion_func(first, second, msg=msg) File "/usr/lib/python3.12/unittest/case.py", line 1091, in assertListEqual self.assertSequenceEqual(list1, list2, msg, seq_type=list) File "/usr/lib/python3.12/unittest/case.py", line 1073, in assertSequenceEqual self.fail(msg) twisted.trial.unittest.FailTest: Lists differ: [b">>[32 chars]", b'Exception: foo bar baz', b'>>> done', b''[91 chars] b''] != [b">>[32 chars]", b'Traceback (most recent call last):', b' [164 chars] b''] First differing element 1: b'Exception: foo bar baz' b'Traceback (most recent call last):' [b">>> raise Exception('foo bar baz')", + b'Traceback (most recent call last):', + b' File "<console>", line 1, in <module>', b'Exception: foo bar baz', b'>>> done', b'', b'', b'', b'', b'', b'', b'', b'', b'', b'', b'', b'', b'', b'', b'', b'', b'', - b'', - b'', b''] twisted.conch.test.test_manhole.ManholeLoopbackSSHTests.test_ExceptionWithCustomExcepthook twisted.conch.test.test_manhole.ManholeLoopbackTelnetTests.test_Exception twisted.conch.test.test_manhole.ManholeLoopbackTelnetTests.test_ExceptionWithCustomExcepthook twisted.conch.test.test_manhole.ManholeLoopbackSSHTests.test_Exception twisted.conch.test.test_manhole.ManholeLoopbackStdioTests.test_Exception twisted.conch.test.test_manhole.ManholeLoopbackStdioTests.test_ExceptionWithCustomExcepthook ------------------------------------------------------------------------------- Ran 11452 tests in 59.354s FAILED (skips=502, failures=6, successes=10944)
twisted.conch.test.test_manhole ManholeLoopbackSSHTests test_ExceptionWithCustomExcepthook ... [FAIL] twisted.conch.test.test_manhole ManholeLoopbackTelnetTests test_Exception ... [FAIL] twisted.conch.test.test_manhole ManholeLoopbackTelnetTests test_ExceptionWithCustomExcepthook ... [FAIL] ManholeLoopbackSSHTests test_Exception ... [FAIL] twisted.conch.test.test_manhole ManholeLoopbackStdioTests test_Exception ... [FAIL] twisted.conch.test.test_manhole ManholeLoopbackStdioTests test_ExceptionWithCustomExcepthook ... [FAIL]