From owner-freebsd-current@FreeBSD.ORG Tue Jan 8 06:05:21 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D7C516A41A for ; Tue, 8 Jan 2008 06:05:21 +0000 (UTC) (envelope-from andrew-freebsd@areilly.bpc-users.org) Received: from omta03sl.mx.bigpond.com (omta03sl.mx.bigpond.com [144.140.92.155]) by mx1.freebsd.org (Postfix) with ESMTP id EEE9713C4EB for ; Tue, 8 Jan 2008 06:05:20 +0000 (UTC) (envelope-from andrew-freebsd@areilly.bpc-users.org) Received: from oaamta08sl.mx.bigpond.com ([124.188.162.219]) by omta03sl.mx.bigpond.com with ESMTP id <20080108060520.QVK18906.omta03sl.mx.bigpond.com@oaamta08sl.mx.bigpond.com> for ; Tue, 8 Jan 2008 06:05:20 +0000 Received: from areilly.bpa.nu ([124.188.162.219]) by oaamta08sl.mx.bigpond.com with ESMTP id <20080108060519.EKAU25221.oaamta08sl.mx.bigpond.com@areilly.bpa.nu> for ; Tue, 8 Jan 2008 06:05:19 +0000 Received: (qmail 28823 invoked from network); 8 Jan 2008 06:04:27 -0000 Received: from localhost (HELO duncan.reilly.home) (127.0.0.1) by localhost with SMTP; 8 Jan 2008 06:04:27 -0000 Date: Tue, 8 Jan 2008 17:04:27 +1100 From: Andrew Reilly To: "Alexandre \"Sunny\" Kovalenko" Message-ID: <20080108170427.2a86e0af@duncan.reilly.home> In-Reply-To: <1199763018.718.40.camel@RabbitsDen> References: <20080108101209.01800eb6@duncan.reilly.home> <1199763018.718.40.camel@RabbitsDen> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.3; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Jason, freebsd-current@freebsd.org, Evans , Tim Kientzle , rgrav , Peter Schuller Subject: Re: ELF dynamic loader name [was: sbrk(2) broken] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2008 06:05:21 -0000 On Mon, 07 Jan 2008 22:30:18 -0500 "Alexandre \"Sunny\" Kovalenko" wrote: > > [I'm doing a lot of my own new coding in PLT scheme at the > > moment, and having a ball with it. (lang/drscheme in ports) > > I suspect you are not running contemporary 7.0 there: > twinhead# uname -a > FreeBSD twinhead.rabbitslawn.verizon.net 7.0-RC1 FreeBSD 7.0-RC1 #0: Tue > Jan 1 19:22:56 EST 2008 > root@twinhead.rabbitslawn.verizon.net:/usr/obj/usr/src/sys/TWINHEAD > i386 > twinhead# make install > ===> drscheme-370 is marked as broken: Fails to install (signal 11). > *** Error code 1 > > Stop in /usr/ports/lang/drscheme. Nope: andrew@duncan:/usr/home/andrew $ mzscheme Welcome to MzScheme v372 [3m], Copyright (c) 2004-2007 PLT Scheme Inc. > ^D andrew@duncan:/usr/home/andrew $ uname -a FreeBSD duncan.reilly.home 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #6: Sat Jan 5 17:53:17 EST 2008 root@duncan:/usr/obj/usr/src/sys/DUNCAN amd64 :-) You'll find a patch with my name on it at: http://www.freebsd.org/cgi/query-pr.cgi?pr=118808 That fix has been incorporated up-stream, so 372 now builds cleanly for me from tarballs, but something is still broken on jkoshy's 8-current system, so he hasn't updated the port yet. > > Fast enough for what I'm doing, byte-code, static or JIT compiled, > > and runs everywhere (including Windows and OSX).] > > > > What would be *really* cool would be the ability to have a JVM or > > LLVM back-end in the kernel, as a first-class peer of the ELF > > loader. Anyone know if anyone has tried such a thing on *BSD (or > > even Linux, I guess)? > > If you have Linux distribution handy, you can look > at /usr/src/linux/Documentation/binfmt_misc.txt. Or http://www.tat.physik.uni-tuebingen.de/~rguenth/linux/binfmt_misc.html Thanks for the pointer: that's pretty close to what I was thinking of. There's also the PE loader work in NetBSD... > At least its Java > incarnation has been around for a while. I have not seen widespread use > of it, but then again, I have not been looking too hard. Yeah, most existing foreign-executable formats have lots of extraneous environment cruft related to compatibility with other operating systems, that doesn't really lend themselves to this sort of application. On the other hand, an LLVM or QEMU launcher could be trying to run "native" freebsd applications, just ones that hadn't been fully compiled yet. Sort of like FX-32! on Alpha Windows-NT, or the e-coff (?failing memory?) high-level object format produced by the MIPSCO compilers to enable full-program optimization with separately-compiled libraries. One of these day's I'll have a go at it, if someone else doesn't get to it first... [This is more -arch or -talk than -current, so I'll stop now.] Cheers, -- Andrew