From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4685 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Build on linux 2.6 and run on linux 2.4? Date: Thu, 20 Mar 2014 19:14:12 -0400 Message-ID: <20140320231412.GG26358@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1395357257 3880 80.91.229.3 (20 Mar 2014 23:14:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2014 23:14:17 +0000 (UTC) Cc: John Mudd To: musl@lists.openwall.com Original-X-From: musl-return-4689-gllmg-musl=m.gmane.org@lists.openwall.com Fri Mar 21 00:14:25 2014 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 1WQmAL-0006ZY-Ku for gllmg-musl@plane.gmane.org; Fri, 21 Mar 2014 00:14:25 +0100 Original-Received: (qmail 32004 invoked by uid 550); 20 Mar 2014 23:14:25 -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 31996 invoked from network); 20 Mar 2014 23:14:24 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4685 Archived-At: On Thu, Mar 20, 2014 at 04:58:49PM -0400, John Mudd wrote: > Probably a dumb question. Is part of the value of musl that I can build an > app using musl on linux 2.6 and then run the binary on linux 2.4? The version of Linux you build on has no bearing on the binary that comes out, so that's not a problem. However, Linux 2.4 is not officially supported since it lacks a lot of functionality needed to provide a modern POSIX conforming environment. The most notable is that it can't do threads. If you're ok with that, the other problems might be small enough that you don't mind. I remember some people in Freenode #musl trying out 2.4 recently and finding that a few of the busybox applets didn't work right, though, due to missing statfs64 syscall. This page has details on which kernel versions added which syscalls: http://man7.org/linux/man-pages/man2/syscalls.2.html so it may be helpful in evaluating if there's anything critical you'd be missing. If a syscall has two versions, one with "64" on the end, musl needs the one that ends in "64". This is definitely a topic we could attempt to document better if more people are interested in trying to use 2.4. Rich