mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Po-yi Wang <player@vcn.bc.ca>
To: musl@lists.openwall.com
Subject: any one managed to compile and run xz-5.0.8 or xz-5.2.3 ?
Date: Wed, 24 Jan 2018 16:18:59 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.64.1801241607030.8859@vcn.bc.ca> (raw)

hi

any one managed to compile and run xz with musl on ppc target ?
i've managed to compile and run "xz --version" on i486 and arm targets, 
but not on ppc target. i've tried gcc-3.4.5 and gcc-4.1.2.
gcc-3.4.5 version simply hangs, while gcc-4.1.2 version seg faults --
with seg fault, i can at least use gdb to get some info out. i do not know 
how to use gdb to trace a hanged program. anyway, this is the output for 
gcc-4.1.2 compiled version. (xz-5.0.8):

gdb src/xz/xz

GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from src/xz/xz...done.
(gdb) run --version
Starting program: /tmp/build/xz-5.0.8/src/xz/xz --version

Program received signal SIGSEGV, Segmentation fault.
0x4806fab8 in _dlstart_c (sp=0xbffff4a0, dynv=0x480b2ae4) at 
ldso/dlstart.c:146
146             GETFUNCSYM(&dls2, __dls2, base+dyn[DT_PLTGOT]);
(gdb) bt
#0  0x4806fab8 in _dlstart_c (sp=0xbffff4a0, dynv=0x480b2ae4)
     at ldso/dlstart.c:146
#1  0x480778ec in _dlstart () from /lib/ld-musl-powerpc-sf.so.1
(gdb) quit
A debugging session is active.

         Inferior 1 [process 22188] will be killed.

Quit anyway? (y or n) y




             reply	other threads:[~2018-01-25  0:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-25  0:18 Po-yi Wang [this message]
2018-01-25  0:29 ` Rich Felker
2018-01-25  1:21   ` Po-yi Wang
2018-01-25  1:37   ` Po-yi Wang
2018-01-25  2:04     ` Will Dietz
2018-01-25  2:27       ` Po-yi Wang
2018-01-25  1:13 ` A. Wilcox

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=Pine.LNX.4.64.1801241607030.8859@vcn.bc.ca \
    --to=player@vcn.bc.ca \
    --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).