All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
	Artyom Tarasenko <atar4qemu@gmail.com>,
	Richard Henderson <rth@twiddle.net>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Fam Zheng" <famz@redhat.com>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: [Qemu-devel] sparc64 linux-user status
Date: Mon, 22 May 2017 14:45:46 +0100	[thread overview]
Message-ID: <87h90d3sz9.fsf@linaro.org> (raw)

Hi,

While looking at some of the docker cross-build patches I thought I'd
checkout if I could still bootstrap some Debian linux-user images. I
made some tweaks to allow debootstrap to bootstrap from Debian's ports
to see if I could get the SPARC64 file-system up and running:

 https://github.com/stsquad/qemu/commits/docker/sparc64-linux-user

However when I try to run it:

  make docker-image-debian-sparc64-user V=1

It fails:

  Step 4 : RUN /debootstrap/debootstrap --second-stage
   ---> Running in 2241c809c19f
  *** longjmp causes uninitialized stack frame ***: /bin/sh terminated
  Illegal instruction (core dumped)
  *** longjmp causes uninitialized stack frame ***: /bin/sh terminated
  Illegal instruction (core dumped)
  *** longjmp causes uninitialized stack frame ***: /bin/sh terminated
  Illegal instruction (core dumped)
  I: Keyring file not available at /usr/share/keyrings/debian-archive-keyring.gpg; switching to https mirror https://deb.debian.org/debian
  W: Failure trying to run:  dpkg-deb -f /var/cache/apt/archives/dpkg_1.18.24_sparc64.deb Version
  W: See //debootstrap/debootstrap.log for details
  I: Installing core packages...
  W: Failure trying to run:  dpkg --force-depends --install /var/cache/apt/archives/base-passwd_3.5.43_sparc64.deb
  W: See //debootstrap/debootstrap.log for details
  Illegal instruction (core dumped)
  The command '/bin/sh -c /debootstrap/debootstrap --second-stage' returned a non-zero code: 132

Although I can manually get the shell at least partially running:

  14:43 last:125, alex@zen taken:25, git:docker/sparc64-linux-user, [/home/alex/lsrc/qemu/qemu.git]> docker run --rm -it 1084ed198b00 /bin/sh
  # uname -a
  [1] + Stopped (tty output)       uname -a
  # uname -a | cat
  [2] + Stopped (tty output)       uname -a | cat
  # echo "hello"
  hello
  #

Bringing anything to the foreground hangs the window:

  # fg
  uname -a | cat
  Linux 8cbf3e5e2234 4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 sun4u GNU/Linux
  /bin/sh: 4: fg: Cannot set tty process group (Inappropriate ioctl for device)
  *** longjmp causes uninitialized stack frame ***: /bin/sh terminated

Which makes me think it might be a linux-user bug rather than the main
translation. Is this a tested combination? Any idea what the bug could be?

--
Alex Bennée

             reply	other threads:[~2017-05-22 13:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-22 13:45 Alex Bennée [this message]
2017-05-25  7:43 ` [Qemu-devel] sparc64 linux-user status Mark Cave-Ayland
2017-05-30 10:04   ` Alex Bennée
2017-05-25  7:56 ` Laurent Vivier
2017-05-30  9:49   ` Artyom Tarasenko
2017-05-30 10:40 ` Peter Maydell

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=87h90d3sz9.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=atar4qemu@gmail.com \
    --cc=f4bug@amsat.org \
    --cc=famz@redhat.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.