Mailinglist Archive: opensuse-buildservice (244 mails)

< Previous Next >
[opensuse-buildservice] Re: qemu Cross Compilation Instructions
  • From: Troy Telford <ttelford.groups@xxxxxxxxx>
  • Date: Thu, 21 Jun 2012 10:21:45 -0600
  • Message-id: <jrvhmo$fjv$>
On 2012-06-21 06:36:56 +0000, Adrian Schröter said:

Am Mittwoch, 20. Juni 2012, 16:46:15 schrieb Troy Telford:
On 2012-06-20 02:55:06 +0000, Robert Schiele said:

On Wed, Jun 20, 2012 at 2:35 AM, Troy Telford
<ttelford.groups@xxxxxxxxx> wrote:
So it appears that while OBS is at least attempting to build the package,
I'm not seeing any indication that qemu is being invoked. It seems that the
worker is just trying to execute the ARM-architecture 'rpm' as native x86_64
code - and dies.

In fact it tries to invoke /usr/bin/qemu-arm-binfmt which likely does
not exist in your qemu package.

Yup; qemu-arm exists, but qemu-arm-binfmt does not.

To solve this there are two options:
Either you just use the qemu package from openSUSE or if you prefer to
use the Fedora qemu you might want to create a separate package in
addition that has the qemu-arm-binfmt (taking the source code or
binary from the openSUSE package).

That is very helpful!

I'm nearly there, I think, but I have a few outstanding issues I don't
know how to explain:

1.) My worker nodes (SLES 11SP2) report a warning - I do not get the
warning if a user uses 'osc build' (from an openSUSE 12.1 system).
registering binfmt handlers
Warning: could not register binfmt handlers

That looks like a problem. Are you sure that you have binfmtmisc handler
available here? Some debugging here may give some insight ..

the binfmt_misc kernel module is loaded.

/proc/sys/fs/binfmt_misc exists, and has the expected 'register' and 'status' files.

If I manually register the various binfmt entries (using /usr/lib/build/qemu-reg from an opensuse installation as a guide), it looks like qemu starts running.

However - I don't know why the binfmt_misc handlers aren't being configured by the obs worker -- unless, of course, they aren't configured by the worker at all.

I also don't know where the binfmt_misc handlers are being setup for a worker. Since running them manually works, I'm yet sure what the problem could be - permissions, maybe, but I'm just guessing at this point.

I'll see if I can figure it out, but if I get a pointer in the right direction, I'd be grateful.

the setup works in the same way on local build as on the servers. So
something must be different on your installations.

I have to admit that I have not tested the workers on SP2 yet ...

After manually registering the binfmt_misc handlers, the sp2 worker seems to work - at least, it creates a buildroot & starts the build.
Troy Telford

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups