Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [autobuild.buildroot.net] Build results for 2017-05-11
Date: Mon, 15 May 2017 09:23:50 +0200	[thread overview]
Message-ID: <20170515092350.3ca282a9@free-electrons.com> (raw)
In-Reply-To: <CANQCQpa=9ATKZvQtdunYZ35pPm8tc4GvJ3qeRqeYDhEJDWK1bg@mail.gmail.com>

Hello,

On Sun, 14 May 2017 22:03:27 -0500, Matthew Weber wrote:

> > Well this is interesting and I'll have to dig around some more but
> > here's what I've found after doing a build.  It looks like I have
> > SPARC ELF ABI compatibility on my x86_64 Ubuntu 14.04.1 machine.  I
> > can execute the test app since it's statically linked.
> >
> > # ./tryancilautoclose
> > Unsupported ancillary data: 65535/1
> > # echo $?
> > 111
> > # file tryancilautoclose
> > tryancilautoclose: ELF 32-bit MSB  executable, SPARC version 1 (SYSV),
> > statically linked, with unknown capability 0x41000000 = 0xf676e75,
> > with unknown capability 0x10000 = 0x70403, not stripped
> 
> Ok, didn't realize the qemu-user-static will automatically hook-up
> support for executing the arch it supports seamlessly.  When I straced
> I noticed the call into qemu-sparc-static.  Since removing that
> package, I now observe what would be expected.

Wow, ok. Thanks a lot for investigating this issue.

> # ./tryancilautoclose
> bash: ./tryancilautoclose: cannot execute binary file: Exec format error
> # echo $?
>  11126
> 
> Sorry about that one Eric, it's fixed now on that machine and shouldn't reoccur.
> 
> Thomas, should there be a check or warning added as part of
> buildroot's package/host checking which would catch a case where
> qemu-user-static is installed and may adversely affect the build?

Yes, we should definitely do something about that. Ideally, Buildroot
should do something to prevent binfmt_misc from kicking off the
execution of foreign binaries. I have no idea if this is possible. If
not, at the very least, we should warn/error out, but I really hate
when a build system/tool asks me to change my system-wide configuration
to operate correctly.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2017-05-15  7:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12  6:29 [Buildroot] [autobuild.buildroot.net] Build results for 2017-05-11 Thomas Petazzoni
2017-05-14 17:45 ` Eric Le Bihan
2017-05-14 19:19   ` Thomas Petazzoni
2017-05-15  1:09     ` Matthew Weber
2017-05-15  2:53       ` Matthew Weber
2017-05-15  3:03         ` Matthew Weber
2017-05-15  7:23           ` Thomas Petazzoni [this message]
2017-05-24  1:54             ` Matthew Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170515092350.3ca282a9@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox