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 and MSWindows Date: Sat, 2 Feb 2013 12:23:07 -0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01CE0140.0ED35A30" X-Trace: ger.gmane.org 1359807808 14518 80.91.229.3 (2 Feb 2013 12:23:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Feb 2013 12:23:28 +0000 (UTC) To: , Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Feb 02 13:23:48 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 1U1c8I-0007Mv-Pf for guile-user@m.gmane.org; Sat, 02 Feb 2013 13:23:47 +0100 Original-Received: from localhost ([::1]:45819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1c80-0005H8-Cm for guile-user@m.gmane.org; Sat, 02 Feb 2013 07:23:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1c7s-0005Gn-FQ for guile-user@gnu.org; Sat, 02 Feb 2013 07:23:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1c7q-0006FK-Ck for guile-user@gnu.org; Sat, 02 Feb 2013 07:23:20 -0500 Original-Received: from snt0-omc2-s36.snt0.hotmail.com ([65.55.90.111]:13336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1c7n-0006Ek-GM; Sat, 02 Feb 2013 07:23:15 -0500 Original-Received: from SNT127-DS19 ([65.55.90.73]) by snt0-omc2-s36.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 2 Feb 2013 04:23:14 -0800 X-EIP: [edZk5sKd1RkOaCtpAQGFGaINkYUFizq/] X-Originating-Email: [objcjohn@hotmail.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: 02 Feb 2013 12:23:14.0580 (UTC) FILETIME=[12D4E540:01CE0140] X-detected-operating-system: by eggs.gnu.org: Windows XP X-Received-From: 65.55.90.111 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:9997 Archived-At: This is a multi-part message in MIME format. ------=_NextPart_000_0009_01CE0140.0ED35A30 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thanks Ludo, I'm still gathering information, I have downloaded up-to-date versions = of=20 GNU, but I just noticed I'm picking up some *CYG*.DLL, I must check they are = the=20 ones I built, and get the versions. YES CYG libs seem to be at least the versions needed guile libraries (ldd /usr/local/bin/guile.exe) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Guile depends on the following external libraries. lib need at least cygwin = version =20 =3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = =3D=3D=3D=3D=3D=3D = =3D=3D=3D=3D=3D=3D=3D =20 - libgmp at least version 4.1 /usr/bin/cyggmp-3.dll = (0x6ad40000) vers 4.3.2.1 =20 - libiconv = /usr/local/bin/cygiconv-2.dll (0x470000) vers 1.14-2=20 - libintl = /usr/bin/cygintl-8.dll vers 0.18.1-2=20 - libltdl at least version 1.5.6 = /usr/local/bin/cygltdl-7.dll (0x68280000) vers 2.4-1=20 - libunistring = /usr/local/bin/cygunistring-0.dll (0x70b80000) vers 0.9.3-2=20 - libgc at least version 7.0 = /usr/local/bin/cyggc-1.dll (0x66040000) vers 7.2d-1=20 - libffi = /usr/local/bin/cygffi-5.dll (0x68540000) vers 3.0.9=20 - libreadline **(static lib from = guile ???)** vers 6.1.2-3=20 - libgcc1 = /usr/local/bin/cyggc-1.dll (0x66040000) vers 4.5.3-3=20 - cygguile-2.0-22 (built by guile-2.0.7.18-03a2f) = /usr/local/bin/cygguile-2.0-22.dll (0x67580000) vers 2.0-22=20 - cygwin1.dll /usr/bin/cygwin1.dll = (0x61000000) - cygcrypt = /usr/bin/cygcrypt-0.dll (0x6c5e0000) It will also use the libreadline library if it is available. = =20 regards, =20 John Goodwin. > -------------------------------------------------- > From: "Ludovic "Court=E8s"" > Sent: Friday, February 01, 2013 5:13 PM > To: "objc" > Cc: > Subject: Re: Guile and MSWindows >=20 >> Hi, >> >> "objc" skribis: >> >>> I just built guile-2.0.7.18-03a2f >>> Check out http://branch-twigg.webs.com/ for what I done with it. >>> currently playing with BioSchematics - L-System Parser and Drawing = tool=20 >>> by - Xavier Raynaud >> >> Interesting. >> >>> FAIL: tests/alist.test: sloppy-assq not >>> FAIL: tests/alist.test: sloppy-assv not >>> FAIL: tests/alist.test: assv not >>> FAIL: tests/alist.test: assq-ref not >>> FAIL: tests/alist.test: assv-ref not >>> FAIL: tests/common-list.test: delete-if-not!: non-empty list, remove = some >> >> These ones are scary. Can you try to type them at the REPL, to see = what >> happens? >> >>> $ cat guile.log | grep ERR >>> ERROR: tests/bytevectors.test: 2.9 Operations on Strings: = string->utf16 -=20 >>> arguments: ((system-error "string->utf16" "failed to convert string: = ~A"=20 >>> ("hello, world") (-1))) >> >> Is GNU libiconv installed? What=92s -1 in errno.h? >> >>> ERROR: tests/coverage.test: instrumented/executed-lines: instr =3D = exec -=20 >>> arguments: ((wrong-type-arg "car" "Wrong type argument in position = ~A=20 >>> (expecting ~A): ~S" (1 "pair" #f) (#f) >>> )) >> >> Can you try to get a backtrace? >> >> That is, at the REPL, you type: >> >> (use-modules (system vm coverage) >> (system vm vm) >> (system base compile) >> (srfi srfi-11)) >> >> (define-syntax code >> (syntax-rules () >> ((_ filename snippet) >> (let ((input (open-input-string snippet))) >> (set-port-filename! input filename) >> (read-enable 'positions) >> (compile (read input)))))) >> >> (define %test-vm (make-vm)) >> (let ((proc (code "foo.scm" "(lambda (x y) ;; 0 >> (+ x y)) ;; 1"))) >> (let-values (((data result) >> (with-code-coverage %test-vm >> (lambda () (proc 1 2))))) >> (and (coverage-data? data) >> (=3D 3 result) >> (let-values (((instr exec) >> (instrumented/executed-lines data = "foo.scm"))) >> (and (=3D 2 instr) (=3D 2 exec)))))) >> >> and report what happens. >> >>> ERROR: tests/foreign.test: make-pointer: equal? modulo finalizer -=20 >>> arguments: ((misc-error "dynamic-pointer" "Symbol not found: ~a"=20 >>> ("scm_is_pair") #f)) >> >> Nothing to worry about, I just committed a workaround. >> >> Thanks! >> >> Ludo=92. >> ------=_NextPart_000_0009_01CE0140.0ED35A30 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Thanks Ludo,

 I'm still gathering information, I have=20 downloaded up-to-date versions of 
GNU,
 but I just = noticed I'm=20 picking up some *CYG*.DLL, I must check they are the 
ones I = built, and=20 get the versions.

YES CYG libs seem to be at least the = versions=20 needed

guile = libraries =20 (ldd =20 /usr/local/bin/guile.exe)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D
Guile=20 depends on the following external=20 libraries.
lib         &n= bsp;   =20 need at=20 least           &n= bsp;        =20 cygwin           &= nbsp;           &n= bsp;           &nb= sp;           =20 version      =20
=3D=3D=3D          =    =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D     &nbs= p;            = ;  =20 =3D=3D=3D=3D=3D=3D         &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p; =20 =3D=3D=3D=3D=3D=3D=3D      
-=20 libgmp         at least version=20 4.1           &nbs= p; =20 /usr/bin/cyggmp-3.dll=20 (0x6ad40000)          &= nbsp;        =20 vers 4.3.2.1 
-=20 libiconv           = ;            =             &= nbsp;    =20 /usr/local/bin/cygiconv-2.dll=20 (0x470000)          &nb= sp;  =20 vers 1.14-2
-=20 libintl           =             &= nbsp;           &n= bsp;     =20 /usr/bin/cygintl-8.dll        &nb= sp;           &nbs= p;          =20 vers 0.18.1-2
- libltdl        at = least=20 version = 1.5.6           =20 /usr/local/bin/cygltdl-7.dll=20 (0x68280000)          &= nbsp; =20 vers 2.4-1
-=20 libunistring          &= nbsp;           &n= bsp;           &nb= sp; =20 /usr/local/bin/cygunistring-0.dll=20 (0x70b80000)        vers 0.9.3-2 =
-=20 libgc          at least = version=20 7.0           &nbs= p; =20 /usr/local/bin/cyggc-1.dll=20 (0x66040000)          &= nbsp;   =20 vers 7.2d-1
-=20 libffi           &= nbsp;           &n= bsp;           &nb= sp;      =20 /usr/local/bin/cygffi-5.dll=20 (0x68540000)          &= nbsp;  =20 vers 3.0.9
-=20 libreadline          &n= bsp;           &nb= sp;           &nbs= p;   =20 **(static lib from guile=20 ???)**           &= nbsp;         =20 vers 6.1.2-3
-=20 libgcc1           =             &= nbsp;           &n= bsp;     =20 /usr/local/bin/cyggc-1.dll=20 (0x66040000)          &= nbsp;   =20 vers 4.5.3-3
- cygguile-2.0-22  (built by guile-2.0.7.18-03a2f) = /usr/local/bin/cygguile-2.0-22.dll=20 (0x67580000)       vers 2.0-22
-=20 cygwin1.dll          &n= bsp;           &nb= sp;           &nbs= p;  =20 /usr/bin/cygwin1.dll (0x61000000)
-=20 cygcrypt           = ;            =             &= nbsp;    =20 /usr/bin/cygcrypt-0.dll (0x6c5e0000)
It will also use the libreadline = library=20 if it is=20 available.
         &n= bsp;           &nb= sp;           &nbs= p;            = ;            =
 
 regards,
 
John Goodwin.

>=20 --------------------------------------------------
> From: = "Ludovic=20 "Court=E8s"" <ludo@gnu.org>
> Sent: Friday, February 01, = 2013 5:13=20 PM
> To: "objc" <objcjohn@hotmail.com>
> Cc:=20 <guile-user@gnu.org>
> Subject: Re: Guile and = MSWindows
>=20
>> Hi,
>>
>> "objc" = <objcjohn@hotmail.com>=20 skribis:
>>
>>> I just built=20 guile-2.0.7.18-03a2f
>>> Check out = http://branch-twigg.webs.com/ for=20 what I done with it.
>>> currently playing with = BioSchematics -=20 L-System Parser and Drawing tool
>>> by - Xavier Raynaud=20 <x.raynaud@wanadoo.fr>
>>
>>=20 Interesting.
>>
>>> FAIL: tests/alist.test: = sloppy-assq=20 not
>>> FAIL: tests/alist.test: sloppy-assv = not
>>>=20 FAIL: tests/alist.test: assv not
>>> FAIL: tests/alist.test: = assq-ref not
>>> FAIL: tests/alist.test: assv-ref=20 not
>>> FAIL: tests/common-list.test: delete-if-not!: = non-empty=20 list, remove some
>>
>> These ones are scary.  = Can you=20 try to type them at the REPL, to see what
>>=20 happens?
>>
>>> $ cat guile.log | grep = ERR
>>>=20 ERROR: tests/bytevectors.test: 2.9 Operations on Strings: = string->utf16 -=20
>>> arguments: ((system-error "string->utf16" "failed to = convert=20 string: ~A"
>>> ("hello, world") = (-1)))
>>
>> Is=20 GNU libiconv installed?  What=92s -1 in = errno.h?
>>
>>>=20 ERROR: tests/coverage.test: instrumented/executed-lines: instr =3D exec = -=20
>>> arguments: ((wrong-type-arg "car" "Wrong type argument = in=20 position ~A
>>> (expecting ~A): ~S" (1 "pair" #f)=20 (#f)
>>> ))
>>
>> Can you try to get a=20 backtrace?
>>
>> That is, at the REPL, you=20 type:
>>
>>  (use-modules (system vm=20 coverage)
>>        &nbs= p;     =20 (system vm=20 vm)
>>         &nbs= p;    =20 (system base=20 compile)
>>         = ;     =20 (srfi srfi-11))
>>
>>  (define-syntax=20 code
>>    (syntax-rules=20 ()
>>      ((_ filename=20 snippet)
>>       (let ((input=20 (open-input-string=20 snippet)))
>>        =20 (set-port-filename! input=20 filename)
>>        =20 (read-enable=20 'positions)
>>         = (compile=20 (read input))))))
>>
>>  (define %test-vm=20 (make-vm))
>>  (let ((proc (code "foo.scm" "(lambda (x = y)  ;;=20 0
>>          =             &= nbsp;         =20 (+ x y))     ;; 1")))
>>   =20 (let-values (((data=20 result)
>>         =         =20 (with-code-coverage=20 %test-vm
>>         = ;          =20 (lambda () (proc 1 2)))))
>>      (and = (coverage-data?=20 data)
>>         &n= bsp; (=3D=20 3=20 result)
>>         =  =20 (let-values (((instr=20 exec)
>>         &n= bsp;           &nb= sp;  =20 (instrumented/executed-lines data=20 "foo.scm")))
>>        &= nbsp;   =20 (and (=3D 2 instr) (=3D 2 exec))))))
>>
>> and report = what=20 happens.
>>
>>> ERROR: tests/foreign.test: = make-pointer:=20 equal? modulo finalizer -
>>> arguments: ((misc-error=20 "dynamic-pointer" "Symbol not found: ~a"
>>> = ("scm_is_pair")=20 #f))
>>
>> Nothing to worry about, I just committed a=20 workaround.
>>
>> Thanks!
>>
>>=20 Ludo=92.
>>
------=_NextPart_000_0009_01CE0140.0ED35A30--