From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "objc" Newsgroups: gmane.lisp.guile.user Subject: Re: guile 2.0.9 build on mingw Date: Mon, 20 May 2013 22:09:59 +0100 Message-ID: References: <83sj1hv2ml.fsf@gnu.org> <874ndx9y7h.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1369084239 2319 80.91.229.3 (20 May 2013 21:10:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 May 2013 21:10:39 +0000 (UTC) Cc: guile-user@gnu.org To: "Andy Wingo" , "Eli Zaretskii" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon May 20 23:10:40 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 1UeXLp-0002Gp-84 for guile-user@m.gmane.org; Mon, 20 May 2013 23:10:37 +0200 Original-Received: from localhost ([::1]:38356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeXLo-0007Ot-PL for guile-user@m.gmane.org; Mon, 20 May 2013 17:10:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeXLR-00076W-Cg for guile-user@gnu.org; Mon, 20 May 2013 17:10:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeXLM-0003Cx-FK for guile-user@gnu.org; Mon, 20 May 2013 17:10:13 -0400 Original-Received: from bay0-omc4-s22.bay0.hotmail.com ([65.54.190.224]:2480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeXLM-0003CM-7H; Mon, 20 May 2013 17:10:08 -0400 Original-Received: from BAY178-DS13 ([65.54.190.199]) by bay0-omc4-s22.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 20 May 2013 14:10:06 -0700 X-TMN: [ijLxD4n021y64WsHqHWkKu2225ho5SIl] X-Originating-Email: [objcjohn@hotmail.com] In-Reply-To: <874ndx9y7h.fsf@pobox.com> X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-OriginalArrivalTime: 20 May 2013 21:10:06.0435 (UTC) FILETIME=[672A6B30:01CE559E] X-detected-operating-system: by eggs.gnu.org: Windows XP X-Received-From: 65.54.190.224 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:10359 Archived-At: Hi Eli, I've seen problems like this too. GEN guile-procedures.texi Throw without catch before boot: You have to build guile.exe properly before guile-procedures.texi etc... works because guile.exe (guilec.exe) builds them. To get the build right, I change ports.c print.c and strings .c 92: //jrg #define iconv_open libiconv_open #define iconv libiconv #define iconv_close libiconv_close //end jrg print.c: ******* 59://jrg #define iconv_open libiconv_open #define iconv libiconv #define iconv_close libiconv_close //end jrg strings.h ********* 1946: const char *jrgbuf;//jrg 1993: jrgbuf = NULL; 1996:// if (enc == NULL) // enc = "ISO-8859-1"; if (enc == NULL) enc = "ANSI_X3.4-1968"; //jrg if (scm_i_is_narrow_string (str)) { jrgbuf = scm_i_string_chars (str); //jrg // fprintf (stderr,"jrgbuf [%s]ilen[%d]encoding[%s]enc[%s]lenp[%d]\n",jrgbuf,ilen,encoding,enc,(int)(size_t )lenp);//jrg ret = mem_iconveh (jrgbuf, ilen, "ANSI_X3.4-1968", enc,//"ANSI_X3.4-1968" "ISO-8859-1" "UTF-8" (enum iconv_ilseq_handler) handler, NULL, &buf, &len); if (ret != 0) {//jrg //try another one !! // fprintf (stderr,"try ISO-8859-1 jrgbuf [%s]ilen[%d]encoding[%s]enc[%s]lenp[%d]\n",jrgbuf,ilen,encoding,enc,(int)(size_t )lenp);//jrg ret = mem_iconveh (jrgbuf, ilen, "ISO-8859-1", enc,//"ANSI_X3.4-1968" "ISO-8859-1" "UTF-8" (enum iconv_ilseq_handler) handler, NULL, &buf, &len); } if (ret != 0) {//jrg //try another one !! // fprintf (stderr,"try UTF-8jrgbuf [%s]ilen[%d]encoding[%s]enc[%s]lenp[%d]\n",jrgbuf,ilen,encoding,enc,(int)(size_t )lenp);//jrg ret = mem_iconveh (jrgbuf, ilen, "UTF-8", enc,//"ANSI_X3.4-1968" "ISO-8859-1" "UTF-8" (enum iconv_ilseq_handler) handler, NULL, &buf, &len); } if (ret != 0) {//jrg printf("(ret != 0) jrgbuf [%s] buf[%s]\n",jrgbuf,buf);//jrg fprintf (stderr,"failed return jrgbuf jrgbuf [%s]ilen[%d]encoding[%s]enc[%s]lenp[%d]\n",jrgbuf,ilen,encoding,enc,(int)(size_t )lenp);//jrg return (char*)jrgbuf;//hmmm scm_encoding_error (__func__, errno, "cannot convert narrow string to output locale", SCM_BOOL_F, /* FIXME: Faulty character unknown. */ SCM_BOOL_F); }//jrg } else { jrgbuf = (char *)(scm_t_uint32 *) scm_i_string_wide_chars (str); //jrg fprintf (stderr,"jrgbuf [%s]ilen[%d]encoding[%s]enc[%s]lenp[%d]\n",jrgbuf,ilen,encoding,enc,(int)(size_t )lenp);//jrg buf = u32_conv_to_encoding (enc, (enum iconv_ilseq_handler) handler, (scm_t_uint32 *) scm_i_string_wide_chars (str), ilen, NULL, NULL, &len); if (buf == NULL) {//jrg printf("(buf == NULL) jrgbuf [%s] buf [%s]\n",jrgbuf,buf);//jrg scm_encoding_error (__func__, errno, "cannot convert wide string to output locale", SCM_BOOL_F, /* FIXME: Faulty character unknown. */ SCM_BOOL_F); } } This is just some hacking around, but may put someone on the right track. I use cygwin (mingw) on XP SP3 (see http://branch-twigg.webs.com/ for my build). It's still buggy but does what I need it to do. Hope this helps. John Goodwin -------------------------------------------------- From: "Andy Wingo" Sent: Monday, May 20, 2013 9:46 PM To: "Eli Zaretskii" Cc: Subject: Re: guile 2.0.9 build on mingw > On Mon 20 May 2013 22:05, Eli Zaretskii writes: > >>> Date: Mon, 20 May 2013 21:46:02 +0200 >>> From: Panicz Maciej Godek >>> >>> I'm trying to build guile on mingw, but i get the following error: >>> >>> the instruction at 0x7059fe6b refrenced memory at 0x00000004 the memory >>> could not be read >>> >>> The error appears at the stage >>> >>> GEN guile-procedures.texi >>> >>> but when I ask make to keep going, the same error appears when guilec >>> tries >>> to compile ice-9/eval.go. >> >> I reported a similar problem here: >> >> http://lists.gnu.org/archive/html/bug-guile/2013-05/msg00006.html >> >> So far no replies. I hope to hear from them some day. > > Thanks for the ping :) Can you run meta/gdb-uninstalled-guile and get a > backtrace somehow? Do you know what source line this error is coming > from? I've only cross-built and not actually tried to run Guile on > native MinGW. > > Andy > -- > http://wingolog.org/ > >