mailing list of musl libc
 help / color / mirror / code / Atom feed
From: LM <lmemsm@gmail.com>
To: musl@lists.openwall.com
Subject: re: musl setup attempt
Date: Thu, 14 Mar 2013 07:02:16 -0400	[thread overview]
Message-ID: <CAFipMOFH4E-9yPaUBSvrJO7Yv7e02sM0RNXG4Cvgoj0WBUoV9g@mail.gmail.com> (raw)

John Spencer wrote:
>please see http://wiki.musl-libc.org/Getting_started .
>it has detailed instructions about how to use musl from /home.
>after installation, the key point is to use "CC=musl-gcc" when running configure scripts.

I am using a custom, portable build system that sets up the
environment, automates the
builds and handles install and uninstall of packages to a specified
location (in this case
within my home directory).  The build system settings include
CC=musl-gcc, CPP=musl-gcc and
CFLAGS and LDFLAGS are set to only point to the paths where the musl
include and library files
are located.  I'm also use -static.

Some of the applications, like diffh, diction, bzip2 are building and
running fine with musl.
If I check objdump -p, I see a different library when built with musl
than I do when I build
them with gcc.

>also note that many programs need patches because they're using non-portable constructs.
>here you can find build instructions for some programs:
>https://github.com/rofl0r/sabotage/tree/master/pkg

Not seeing any patches referenced for xz:
https://github.com/rofl0r/sabotage/blob/master/pkg/xz

Isaac Dunham wrote:
>If that were the issue, you could not run anything. The loader is specified by the specfile
>musl-gcc uses, and it's what make the program run.  If libraries are missing, the program will >generally fail to run (depending on your settings). So it's probably something else.

The applications that are showing errors on my system include programs from xz,
wavpack, libpaper and speex.

Some programs do appear to be running, so likely it is something else.

>...but it would probably be most helpful if you installed strace...

Am not very familiar with strace, but I ran it on some of the programs
that were displaying errors.
The stderr results from using strace on wavpack were:

execvc ("./wavpack, ["./wavpack"],[/* 30 vars */]) = -1  EIO
(Input/output error)
dup(2)                                             = 3
fcntl64 (3,F_GETFL)                                = 0x8001 (flags
O_WRONLY|O_LARGEFILE)
close(3)                                           = 0
write (2, "strace: exec: Input/output error"..., 33 strace: exec:
Input/output error
) = 33
exit_group(1)                                      = ?

The other programs that displayed the same error had very similar
output using strace.

Thanks.

Sincerely,
Laura


             reply	other threads:[~2013-03-14 11:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-14 11:02 LM [this message]
2013-03-14 11:58 ` Szabolcs Nagy
  -- strict thread matches above, loose matches on Subject: below --
2013-03-13 11:54 LM
2013-03-13 14:07 ` Isaac Dunham
2013-03-13 18:49 ` John Spencer
2013-03-15 11:54   ` LM
2013-03-15 21:11     ` Isaac Dunham
2013-03-16 13:36       ` LM
2013-03-16 22:58       ` 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=CAFipMOFH4E-9yPaUBSvrJO7Yv7e02sM0RNXG4Cvgoj0WBUoV9g@mail.gmail.com \
    --to=lmemsm@gmail.com \
    --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).