mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Johann Hanne <jml@hanne.name>
To: musl@lists.openwall.com
Subject: [musl] User mode linux error when compiled with musl
Date: Mon, 30 Mar 2020 19:21:48 +0200	[thread overview]
Message-ID: <d9d3a821b81fd3b92a91b775772b604e@hanne.name> (raw)

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?

Regards,
   Johann


             reply	other threads:[~2020-03-30 17:22 UTC|newest]

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

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=d9d3a821b81fd3b92a91b775772b604e@hanne.name \
    --to=jml@hanne.name \
    --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).