From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs,gmane.lisp.guile.devel Subject: Re: Guile with win32 cross compiling Date: Fri, 01 Apr 2011 12:38:26 +0200 Message-ID: References: <20110326220651.GA8300@flap> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1301658234 20185 80.91.229.12 (1 Apr 2011 11:43:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2011 11:43:54 +0000 (UTC) Cc: bug-guile@gnu.org, guile-devel@gnu.org, Mike Gran To: Volker Grabsch Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Apr 01 13:43:50 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5clZ-0002fE-Po for guile-bugs@m.gmane.org; Fri, 01 Apr 2011 13:43:50 +0200 Original-Received: from localhost ([127.0.0.1]:36432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5cdM-00011O-Vt for guile-bugs@m.gmane.org; Fri, 01 Apr 2011 07:35:21 -0400 Original-Received: from [140.186.70.92] (port=34751 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5cdE-000104-Ba for bug-guile@gnu.org; Fri, 01 Apr 2011 07:35:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5cdC-0002No-Tr for bug-guile@gnu.org; Fri, 01 Apr 2011 07:35:12 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:39748 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5cdC-0001yU-RK; Fri, 01 Apr 2011 07:35:10 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 2850C219F; Fri, 1 Apr 2011 07:36:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=dlQeFRIuz5LSp33NAqK5cYOfk0s=; b=lCnh8s ksG4ACW02yht7i/igA5iZAsfZ8N/tUZ0owUIlpKlyW5urdSPsMpaMrpl/BuKo2HD EebNuLfCUDdqMKZJxu+AvjacPfx1DKDvEX8cEbp5sLxoM6LBKSeMaVSpXRNTdqWa bCvmEUhAWpewuYWleiPuYcV6hXGq0Z1boekLE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=qCFAPLLvN1eCcMlc/0fEkQNx/NNX79Mw Me6TJ2bh11k08xSmsjuV/Dp+buy/P9TN8jai3ODkh82qMpdp4VOzzk+gKmDMwxaF 6X6noHprft5hpJ7V68d+H9oJCe0INGpZjt1xjejDYN+UqWwlobVtSr8J8yThZjY0 xZlet55EOQM= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id CB27F219C; Fri, 1 Apr 2011 07:36:02 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 97BC62196; Fri, 1 Apr 2011 07:35:58 -0400 (EDT) In-Reply-To: <20110326220651.GA8300@flap> (Volker Grabsch's message of "Sat, 26 Mar 2011 23:06:51 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 392DA084-5C54-11E0-A1C3-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5401 gmane.lisp.guile.devel:12135 Archived-At: On Sat 26 Mar 2011 23:06, Volker Grabsch writes: > The first issue is the "#include " in gen-scmconfig, > which has already been discussed in the past and for which I > already provided a clean, working solution. I forward-ported > my patch to guile-2.0.0 and it seems to work. This patch is > attached to this email, please consider applying it. I don't know what discussion you are referring to here; best to link. In any case, I don't understand the mechanism here, but I believe the point was to make it so that #include would not pull in iconv headers. gen-scmconfig looks up the value of the constants for iconv conversion handlers, and writes them into scmconfig.h. Your patch undoes that. What problem are you working around here? > The other open issue is also a known one: the missing mmap() > function under Windows. After some research, I found a promising > mmap()/munmap() implementation for Windows in a free software > project: > > http://code.google.com/p/flvmeta/source/browse/trunk/src/mmap.h?r=74 > http://code.google.com/p/flvmeta/source/browse/trunk/src/mmap.c?r=74 > > Maybe this is worth integrating into guile? You know, not only do we not rely on MAP_SHARED -- I switched it to use PRIVATE, just now -- we didn't actually need mmap at all. I just changed it to use read(2) if mmap is not available, and it seems to work fine, just a little (5-10%) slower to start up. That should help our unfortunate friends working on Windows :) Andy -- http://wingolog.org/