auditwheel icon indicating copy to clipboard operation
auditwheel copied to clipboard

Unable to audit powerpc libraries due to OS reporting as ppc

Open hpckurt opened this issue 9 months ago • 1 comments

A bit of an odd issue. the ppc32 port of debian reports as ppc, but gcc generates powerpc libraries. They're interchangeable with each other, but auditwheel will fail with the following error:

INFO:auditwheel.main_repair:Invalid binary wheel: no ELF executable or shared library file (including compiled Python C extension) with a 'ppc' architecure found. The following ELF files were found:
	_multiarray_tests.cpython-313-powerpc-linux-gnu.so
	_umath_tests.cpython-313-powerpc-linux-gnu.so
	_rational_tests.cpython-313-powerpc-linux-gnu.so
	_struct_ufunc_tests.cpython-313-powerpc-linux-gnu.so
        <etc.>

There isn't an issue with the actual wheel, it can run on ppc32 systems just fine.

Any help figuring out a fix would be helpful.

hpckurt avatar Apr 08 '25 20:04 hpckurt

ppc32 is not a supported by auditwheel. It's not supposed to go this far in the repair process so my best guess is that you're using a patched version of auditwheel but the patch is missing an update to lddtree._get_platform.

mayeut avatar Apr 12 '25 03:04 mayeut