Le 24/10/2022 à 20:17, Joel Rosdahl a écrit :
On Mon, Oct 24, 2022, at 15:26, Raphaël Halimi wrote:
Install pbuilder on an amd64 host and prepare an i386 chroot. Then, try to
build a package in it (I was rebuilding timidity). It should hang during the
configure phase.
I've never used pbuilder before, but I've tried creating an i386 chroot now,
setting CCACHEDIR according to pbuilderrc(5).
I then built timidity multiple times with "pdebuild --architecture i386", but it
works fine for me every time. I've checked that ccache 4.7.1-1 is being used and
that the ccache directory is being utilized. I'm afraid I'll need more help to
track this down.
That's weird. Before filing the bug, I tried to recreate my build
environment in a brand new VM, and I observed the same behavior. Maybe
the problem lies in my configuration ? Regarding ccache, I just set it
to /var/cache/pbuilder/ccache (some packages failed to build when I
initially put it in ~/.ccache, permissions problems I think, because
pbuilder makes files in there owned by 1234).
1. When you say that it systematically hangs, can you check which process is
hanging and what it hangs on, e.g. using strace?
I don't know how to use strace. Could you please direct me ?
2. Would it be possible for you to set CCACHE_LOGFILE (or log_file in
ccache.conf in the ccache directory) to a file inside the pbuilder chroot
and
then publish the created log file?
I'll try to do that. The file does not exist on my machine; do I just
need to create /var/cache/pbuilder/ccache/ccache.conf containing a
single line "log_file=..." or is there something else to do ?
Regards,
--
Raphaël Halimi