From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/863 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: Hi and a few questions Date: Sun, 20 May 2012 13:49:36 -0700 Message-ID: <20120520134936.3b6812fe@newbook> References: <1753849.ANqesc5nEP@main.pennware.com> <20120520172116.GA163@brightrain.aerifal.cx> 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: dough.gmane.org 1337546997 30733 80.91.229.3 (20 May 2012 20:49:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 May 2012 20:49:57 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-864-gllmg-musl=m.gmane.org@lists.openwall.com Sun May 20 22:49:56 2012 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 1SWD4c-0007nw-17 for gllmg-musl@plane.gmane.org; Sun, 20 May 2012 22:49:54 +0200 Original-Received: (qmail 26526 invoked by uid 550); 20 May 2012 20:49: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 26518 invoked from network); 20 May 2012 20:49:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=CAICDBbcl9SFx5yE0+DNGC7F2lYDd3mqvkn3aCanRZS+L9emEHMWNaibjrEti738zH9/gEH1uO7yzLxGM/FSXYJ7q0pyCdtmOp0EytQOwOtb1Qm6BwhQ5hbLN3iro1cf2bypStj6d0psk7tXAZ3wCDJkRhIwAhjyO5UNZsCayl4=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20120520172116.GA163@brightrain.aerifal.cx> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:863 Archived-At: On Sun, 20 May 2012 13:21:16 -0400 Rich Felker wrote: > On Sun, May 20, 2012 at 12:03:20PM -0500, Richard Pennington wrote: > > I want to target several processors, including i386, x86_64, arm, > > mips, microblaze, ppc, and ppc64 so it looks like musl support will > > have to be added for the currently unsupported processors. > > Yes, and I'd be very happy to get support added. The reason for lack > of ports is not lack of portability but lack of knowledge about these > targets. I read up on ARM and did the ARM port using qemu / Aboriginal > Linux boot images just because I found it a bit shameful to only > support x86[_64], but I haven't gotten around to doing this with any > others. There was someone who was asking about portability previously; he has a project that will use arm and mips cpus (this is the project that needs libuv, hence the discussion on IRC) and-if musl works with libuv-he thinks he could convince his boss to fund a port, if one isn't ready ahead of time. Microblaze is one of the oddball CPUs that you can configure without an MMU. Would this project target MMU configurations only? > > Now for my questions: > > 1. Can musl be built out of the source tree? I'd like to be > > able to build for different processors in different directories. > > At present, no. Even if the trivial changes were made to put the .o > files somewhere else, there's also the issue of the include/bits > symlink (which could actually be removed since arch/$(ARCH) is also in > the -I path, but doing so would complicate the install rules and > preclude using musl "in-place" without "make install" which is > presently possible and a useful setup. > > I'd welcome ideas (though I'd have to weigh whether to adopt them) for > making this possible, but the source is small enough that I wonder if > it's really necessary.. For what it's worth, a shadow tree (see lndir(1)) would probably do all that's really needed, if you 1 Get musl source code 2 lndir $MUSL_SOURCE ${MUSL_SOURCE}-${ARCH} 3 Configure and build in ${MUSL_SOURCE}-${ARCH} You might have issues with shadowing after you have built musl (ie, do 3 in-tree, 2, repeat 3 in shadow tree), I wouldn't know for sure. Isaac Dunham