mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] User mode linux error when compiled with musl
@ 2020-03-30 17:21 Johann Hanne
  2020-03-31 17:42 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Johann Hanne @ 2020-03-30 17:21 UTC (permalink / raw)
  To: musl

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-31 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 17:21 [musl] User mode linux error when compiled with musl Johann Hanne
2020-03-31 17:42 ` Rich Felker

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).