From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2909 Path: news.gmane.org!not-for-mail From: LM Newsgroups: gmane.linux.lib.musl.general Subject: re: musl setup attempt Date: Thu, 14 Mar 2013 07:02:16 -0400 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1363258950 3111 80.91.229.3 (14 Mar 2013 11:02:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2013 11:02:30 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2910-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 14 12:02:52 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UG5vv-0001FJ-Uh for gllmg-musl@plane.gmane.org; Thu, 14 Mar 2013 12:02:52 +0100 Original-Received: (qmail 19696 invoked by uid 550); 14 Mar 2013 11:02:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 19683 invoked from network); 14 Mar 2013 11:02:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=oXSIdOyJ8Fr3G1nr0SnkGS+G1zbKHBxF2FAKf1oJQ2E=; b=mOdYnQA919DnooU5FrcVr7n4nYQBChLgz5zhIabXXuXAf1tpbvb8OflcXiprdcZjn1 gC+PhBhff3XeYyjQGom5b9aJPhhXR/4jBC64d1CrhOjEZ00uEPBNlMLUdt8n+M3jQgCk Ya1mxNlysqPf9EccUGqRINs5KeZtukKDIu4mYPyuq/9fKdcW/D53U2qh4kmtPyIo8xg8 1zpMEsTinIPgUUCoyJg7c9O1cEYxLGbSWM4hACrNfHtmmSWxwnPFdxBJwFNAKek5+pwm PiCnJ+m99ima2rTy0I9O9glKC0f6pfiEoxho2lkLIyVCgutbmYhhTRKsa5EW92m93qk5 QC1g== X-Received: by 10.14.220.135 with SMTP id o7mr5889193eep.3.1363258936462; Thu, 14 Mar 2013 04:02:16 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:2909 Archived-At: 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