mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: [musl] User mode linux error when compiled with musl
Date: Tue, 31 Mar 2020 13:42:36 -0400	[thread overview]
Message-ID: <20200331174236.GX11469@brightrain.aerifal.cx> (raw)
In-Reply-To: <d9d3a821b81fd3b92a91b775772b604e@hanne.name>

On Mon, Mar 30, 2020 at 07:21:48PM +0200, Johann Hanne wrote:
> Hi,
> 
> I'm compiling user mode linux (kernel 5.5) against musl (toolchain
> from musl.cc, tried gcc 6 and gcc 9) and getting the following error
> when booting:
> --
> Run /init as init process
> userspace - ptrace set fp regs failed, errno = 14
> Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
> --
> 
> build command: make ARCH=um LD_FLAGS_CMDLINE="-static"
> CROSS_COMPILE=x86_64-linux-musl-
> 
> run command: ./linux initrd=test.cpio.gz
> 
> test.cpio.gz contains a statically linked "Hello world" init, which
> works when UML is built against the host cc with glibc (Ubuntu
> 16.04, gcc 5, also with "-static").
> 
> Any ideas?

Sorry, I don't have any and don't know enough about how UML works to
have a good guess. I'd start by trying to identify exactly where that
error message is coming from (probably somewhere in kernel code) and
look for what leads up to it.

Rich

      reply	other threads:[~2020-03-31 17:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30 17:21 Johann Hanne
2020-03-31 17:42 ` Rich Felker [this message]

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=20200331174236.GX11469@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).