From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user Subject: Re: guile-2.0 on mingw: the sequel Date: Fri, 23 Aug 2013 22:14:43 +0200 Message-ID: References: <83vc2wj4hz.fsf@gnu.org> <83li3siues.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6743b4a9065e04e4a30ec2 X-Trace: ger.gmane.org 1377288902 15102 80.91.229.3 (23 Aug 2013 20:15:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Aug 2013 20:15:02 +0000 (UTC) Cc: "guile-user@gnu.org" To: Eli Zaretskii Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Aug 23 22:15:02 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VCxl1-0003gy-AE for guile-user@m.gmane.org; Fri, 23 Aug 2013 22:14:55 +0200 Original-Received: from localhost ([::1]:38521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCxl0-0008Ob-NJ for guile-user@m.gmane.org; Fri, 23 Aug 2013 16:14:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCxkr-0008OV-HG for guile-user@gnu.org; Fri, 23 Aug 2013 16:14:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCxkq-00089k-Fb for guile-user@gnu.org; Fri, 23 Aug 2013 16:14:45 -0400 Original-Received: from mail-vb0-x231.google.com ([2607:f8b0:400c:c02::231]:58433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCxkq-00089H-B8; Fri, 23 Aug 2013 16:14:44 -0400 Original-Received: by mail-vb0-f49.google.com with SMTP id w16so729869vbb.36 for ; Fri, 23 Aug 2013 13:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qenDcfOal+5XY4Elhg3p72gakyBWe5e5KT9Fa5goXvI=; b=Gn58ePcQD3jyH33yLgt9EUu1lHi/7ryeyt4d3l8yg/2ePkuqHAqQqyXJIWj9OBD7BS hohAZ4zWycchvc6sEbaGZl4rgUEvweC3qL+CMlU8MLPD3QwwwgZgq1pO9IPrNHLIdhTy 82M+CPUKlWoA8EDOq4JuDrFq14+01qaAifBvn8QLoRplRiTh/3HyDfSqmmFQ/z+Q2/2s bU8ZCKP65wjeUzR3gyeUrlkDO9CKGIbzQBR2YRJeLlpPzC9FlNI+LBqfJFA/yEE8f9mV zDOAJ3HaSlRKYuwsACrF2zQpTq5fh4rfqMBrCZvMrTOfhSEbg/oX3FVGeD86tGEmBx3v CpiQ== X-Received: by 10.58.171.4 with SMTP id aq4mr943718vec.26.1377288883601; Fri, 23 Aug 2013 13:14:43 -0700 (PDT) Original-Received: by 10.221.45.135 with HTTP; Fri, 23 Aug 2013 13:14:43 -0700 (PDT) In-Reply-To: <83li3siues.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c02::231 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10678 Archived-At: --047d7b6743b4a9065e04e4a30ec2 Content-Type: text/plain; charset=ISO-8859-1 2013/8/23 Eli Zaretskii > Configuring with --prefix=/usr is a mistake: there's no /usr on your > system, as far as MinGW programs are concerned. > [...] > yes, it seems that this was the reason. So now the guile interpreter runs properly, but I still have a problem with running a program that, having been linked against libguile, would call scm_with_guile or scm_init_guile, e.g. === #include void hi(void *unused) { scm_puts("hello!\n", scm_current_output_port()); } int main() { scm_with_guile(hi, NULL); return 0; } === I compile it under msys in c:/guile-2.0/bin (i.e. prefix/bin) using $ gcc -o hello.exe hello.c -I ../include/guile/2.0 -lguile-2.0 but I still get the same error as before ("throw without catch with stack-overflow key") Any ideas what could be wrong this time? --047d7b6743b4a9065e04e4a30ec2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2013/8/23 Eli Zaretskii=A0<eliz@gnu.org>
Configuring with --prefix=3D/usr is a mistake: there's no /usr on your<= br>system, as far as MinGW programs are concerned.
[...]

yes, it seems that this was the reason. So now the gui= le
interpreter runs properly, but I still have a problem with
r= unning a program that, having been linked against
libguile, would= call scm_with_guile or scm_init_guile, e.g.
=3D=3D=3D
= #include <libguile.h>
void hi(void *unused) { scm_puts("hello!\n", scm_current_out= put_port()); }
int main() {
=A0 =A0scm_with_guile(hi, N= ULL);
=A0 return 0;
}=A0
=3D=3D=3D
=
I compile it under msys in c:/guile-2.0/bin (i.e. prefix/bin) using
$ gcc -o hello.exe hello.c -I ../include/guile/2.0 -lguile-2.0

but I still get the same error as before ("throw = without catch
with stack-overflow key")

Any ideas what= could be wrong this time?

--047d7b6743b4a9065e04e4a30ec2--