mailing list of musl libc
 help / color / mirror / code / Atom feed
* Illegal instruction in __copy_tls()
@ 2019-06-05 18:16 tenspd137 .
  2019-06-05 18:37 ` Rich Felker
  0 siblings, 1 reply; 13+ messages in thread
From: tenspd137 . @ 2019-06-05 18:16 UTC (permalink / raw)
  To: musl

Hi all

I am using musl 1.1.22 with in a cross toolchain to create static
binaries on my machine.  I am running gentoo linux and used their
crossdev tool to create the cross compiler (x86_64-pc-linux-musl).  I
created a small hello world app:

#include <stdio.h>
int main(int argc, char **argv)
{printf("Hello MUSL\n");}

and compiled with:

x86_64-pc-linux-musl-gcc -v -static -Os -g hello.c

Built and runs fine on local machine, but when I put the binary on
another machine, it dumped the core with an ilegal instruction.  gdb
claims illegal instruction in __copy_tls().

I have been able to compile this program after building the musl-gcc
wrapper and it works on both machines, but I need the cross toolchain
for C++ support.  The -v in the commandline above prints messages that
indicate it is using musl from what I can tell.

Can anyone point me in the right direction or help me figure out what
I am missing?

Thanks!


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

end of thread, other threads:[~2019-06-06  0:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-05 18:16 Illegal instruction in __copy_tls() tenspd137 .
2019-06-05 18:37 ` Rich Felker
2019-06-05 19:53   ` tenspd137 .
2019-06-05 20:07     ` Rich Felker
2019-06-05 21:27       ` tenspd137 .
2019-06-05 21:56         ` Michael Everitt
2019-06-05 23:09           ` tenspd137 .
2019-06-05 23:32             ` tenspd137 .
2019-06-05 23:34               ` Michael Everitt
2019-06-05 23:37                 ` tenspd137 .
2019-06-05 23:41                   ` tenspd137 .
2019-06-06  0:24                   ` Rich Felker
2019-06-06  0:34                     ` tenspd137 .

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