From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2904 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl setup attempt Date: Wed, 13 Mar 2013 07:07:38 -0700 Message-ID: <20130313070738.4993159f.idunham@lavabit.com> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363183676 24626 80.91.229.3 (13 Mar 2013 14:07:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2013 14:07:56 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2905-gllmg-musl=m.gmane.org@lists.openwall.com Wed Mar 13 15:08:21 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 1UFmLp-0000kO-3k for gllmg-musl@plane.gmane.org; Wed, 13 Mar 2013 15:08:17 +0100 Original-Received: (qmail 5979 invoked by uid 550); 13 Mar 2013 14:07:53 -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 5966 invoked from network); 13 Mar 2013 14:07:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=kLMC2a+0evooPB8xLuK76NzZDqYa1IyBQsu5qOIXSFyYYlXOGRZCY2J/uv1xlBwIBQbGZyepk4ba59Iy8MlYl77R0JUOc+42dTqNltWkaFCAJsGC29ijOe/e9gfkrXDYk616nzrxlIAu6tSdlt/jptfdIOFrO/o9TwrPoqFWG/s=; h=Date:From:To:Subject:Message-Id:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:2904 Archived-At: On Wed, 13 Mar 2013 07:54:18 -0400 LM wrote: > > I tried following the instructions at > http://git.musl-libc.org/cgit/musl/tree/INSTALL for Option 1. Built I presume that means you used current git? > musl on a Debian Squeeze system and while configuring, set the prefix, > exec-prefix and syslibdir to a subdirectory beneath my home directory > and set target to i386. A few programs seem to build and run fine > with this setup. For instance, I was able to get bzip2 and diffh to > build and they run right on my Debian system. However, several other > programs build without any complaints and when I try to run them, I > get input/output error. I see that when I try to run programs like > bzip2 or some of the utilities with wavpack for instance. I assumed > that possibly the program couldn't find the loader to load relevant 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. > libraries. I have /etc/ld-musl-i386.path set to the home directory > where I installed the musl lib files and I have LD_LIBRARY_PATH > environment variable set to that lib directory as well. When that > didn't work, I even went in and tried to hardcode dynlink.c and > reloc.h to point to my locations. Still getting the same errors. > Anyone have any ideas what for work-arounds or fixes? No ideas just yet, but it would probably be most helpful if you installed strace, then used it on bzip2: (this assumes prefix=~/; replace everything with appropriate paths) apt-get install strace #If I read correctly, bzip2 was affected- #if not, use a program that is affected. strace ~/bin/bzip2 -k ~/lib/libc.so 2>musl.strace ls ~/lib/ #You should see libc.so, libc.so.bz2, and others Then either look through musl.strace and find what's just before the io errors, or just attach the file (you'll likely need to compress it, unless the io error cuts it short). grep -B 7 -i input.output musl-bz2.strace > According to the README ( > http://git.musl-libc.org/cgit/musl/tree/README ): "The musl project > is actively seeking contributors, mostly in the areas > of porting, testing, and application compatibility improvement." > What type of help do you need with porting and application > compatibility? I'm currently working with several Open Source sdl, > fltk, pdcurses and command line based applications and building them > on Windows and FreeBSD. If I can get musl working the way I hope, > would be interested in getting those Open Source applications working > with it as well. > > Thanks. > > Sincerely, > Laura > http://www.distasis.com/cpp -- Isaac Dunham