Python failure in poudriere on arm64 (via qemu-user-static cross compiling)

From: Guido Falsi <mad_at_madpilot.net>
Date: Wed, 24 Jan 2024 21:10:56 UTC
Hi,

I recently see a strange failure with python 3.9 in poudriere, it was 
not happening a few weeks ago.

I'm building in poudriere on a head machine running amd64, with a 
poudriere jail for arm64, via qemu-user-static. The jail is running 14.0.

I'm not sure what is going on.

It fails in the packaging phase with a bunch of errors like:

===========================================================================
=======================<phase: package        >============================
===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash 
ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 
'PKG_NOTE_build_timestamp=2024-01-24T17:07:52+0000' 
'PKG_NOTE_ports_top_git_hash=0816fdcb6ce8' 
'PKG_NOTE_ports_top_checkout_unclean=no' 
'PKG_NOTE_port_git_hash=0816fdcb6ce8' 
'PKG_NOTE_port_checkout_unclean=no' 
'PKG_NOTE_built_by=poudriere-git-3.4.1' NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building packages for python39-3.9.18
===>   Building python39-3.9.18
pkg-static: Unable to access file 
/wrkdirs/usr/ports/lang/python39/work/stage/usr/local/lib/python3.9/__pycache__/imaplib.cpython-39.opt-2.pyc:No 
such file or directory
pkg-static: Unable to access file 
/wrkdirs/usr/ports/lang/python39/work/stage/usr/local/lib/python3.9/__pycache__/imghdr.cpython-39.opt-2.pyc:No 
such file or directory
pkg-static: Unable to access file 
/wrkdirs/usr/ports/lang/python39/work/stage/usr/local/lib/python3.9/__pycache__/imp.cpython-39.opt-2.pyc:No 
such file or directory
pkg-static: Unable to access file 
/wrkdirs/usr/ports/lang/python39/work/stage/usr/local/lib/python3.9/__pycache__/inspect.cpython-39.opt-2.pyc:No 
such file or directory
pkg-static: Unable to access file 
/wrkdirs/usr/ports/lang/python39/work/stage/usr/local/lib/python3.9/__pycache__/io.cpython-39.opt-2.pyc:No 
such file or directory
pkg-static: Unable to access file 
/wrkdirs/usr/ports/lang/python39/work/stage/usr/local/lib/python3.9/__pycache__/ipaddress.cpython-39.opt-2.pyc:No 
such file or directory
pkg-static: Unable to access file 
/wrkdirs/usr/ports/lang/python39/work/stage/usr/local/lib/python3.9/__pycache__/mailbox.cpython-39.opt-2.pyc:No 
such file or directory
pkg-static: Unable to access file 
/wrkdirs/usr/ports/lang/python39/work/stage/usr/local/lib/python3.9/__pycache__/mailcap.cpython-39.opt-2.pyc:No 
such file or directory
pkg-static: Unable to access file 
/wrkdirs/usr/ports/lang/python39/work/stage/usr/local/lib/python3.9/__pycache__/mimetypes.cpython-39.opt-2.pyc:No 
such file or directory



(it's all about 'opt-2.pyc' files)


What could have changed? Maybe I'm doing something wrong? Maybe I'm 
hitting some qemu-user-static issue on head?


Any help appreciated.


(full log available if needed)

-- 
Guido Falsi <mad@madpilot.net>