Re: [Chicken-users] calling all Vista users
I did have tar, gzip and gunzip in my path, yes. I've reinstalled Vista since then though I've not tried to install Chicken again. I was unable to submit a response to Trac as it told me "Submission rejected as potential spam". Ian On 17/05/07, Brandon Van Every <[EMAIL PROTECTED]> wrote: We have a bug report on Windows Vista that we need your help verifying. http://trac.callcc.org/ticket/183 Does chicken-setup work for you? If it doesn't, we need you to add yourselves as CC: in the bug tracker so we can fix this. I don't have a Vista box, I'm using Windows 2000, and things are working fine for me. Cheers, Brandon Van Every ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] chicken-setup woes on Windows Vista
Lucky you - I wish I could go back! Ian On 17/04/07, Brandon J. Van Every <[EMAIL PROTECTED]> wrote: I'm afraid I still run Windows 2000 so I can't comment. - Cheers, Brandon Ian Oversby wrote: > Hi, > > I'm having problems getting chicken-setup to run on a > new installation on Windows Vista. I finally managed > to get it to build after replacing the MSYS dll and csi > works fine - I've tried using some extensions and they > are okay too. However, chicken-setup fails with a > "Bad file number" error. According to this page at > Microsoft: > http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/w2000Msgs/5006.mspx?mfr=true > > that means it was unable to open a file. I've set all the > folders to read/write and full access and it still fails. > Any ideas on what it might be trying to open, or is > there some way to single-step chicken-setup in the > interpreter to find out where it fails? > > Thanks, > > Ian > > $ csi -:c > > // / > ___ (______ ( ___ ___ > || )| ||___)|___)| ) > |__ | / | |__ | \ |__ | / > > Version 2.6 - windows-mingw32-x86 - [ dload ptables applyhook cmake ] > (c)2000-2007 Felix L. Winkelmann > #;1> (exit) > > $ chicken-setup > sh: /c/packages/chicken/bin/chicken-setup: Bad file number > > > ___ > Chicken-users mailing list > Chicken-users@nongnu.org > http://lists.nongnu.org/mailman/listinfo/chicken-users > ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] chicken-setup woes on Windows Vista
Hi, I'm having problems getting chicken-setup to run on a new installation on Windows Vista. I finally managed to get it to build after replacing the MSYS dll and csi works fine - I've tried using some extensions and they are okay too. However, chicken-setup fails with a "Bad file number" error. According to this page at Microsoft: http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/w2000Msgs/5006.mspx?mfr=true that means it was unable to open a file. I've set all the folders to read/write and full access and it still fails. Any ideas on what it might be trying to open, or is there some way to single-step chicken-setup in the interpreter to find out where it fails? Thanks, Ian $ csi -:c // / ___ (______ ( ___ ___ || )| ||___)|___)| ) |__ | / | |__ | \ |__ | / Version 2.6 - windows-mingw32-x86 - [ dload ptables applyhook cmake ] (c)2000-2007 Felix L. Winkelmann #;1> (exit) $ chicken-setup sh: /c/packages/chicken/bin/chicken-setup: Bad file number ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Problem with sqlite3 egg on MinGW Chicken 2.6
Hi Thomas and Kon, Thanks for the info. I've managed to install it in a 2.5 version of chicken so I'm just waiting to get back to my other PC to try it there. Cheers, Ian On 09/03/07, Thomas Chust <[EMAIL PROTECTED]> wrote: Ian Oversby wrote: >> The sqlite3 egg 1.5.6+ requires the synch egg 1.0+. > > Unfortunately, I couldn't figure out how to do this, and it seems I've made > it worse :-/ I added (require-at-runtime synch) to the setup file and now > it no longer even finds sqlite3:open. [...] Hello Ian, if I interpret your problem correctly, you didn't have the synch egg installed when you compiled the sqlite3 egg, which caused the compiler to turn some syntax in the sqlite3 egg that should really have been macroexpanded into function calls instead! Therefore you shouldn't have to modify anything in the code of the sqlite3 egg. Just recompile / reinstall a recent version of the synch egg first and after that recompile / reinstall the sqlite3 egg. I hope that helps, Thomas _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=0066 ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Problem with sqlite3 egg on MinGW Chicken 2.6
The sqlite3 egg 1.5.6+ requires the synch egg 1.0+. (At some point the .setup files for the eggs will be changed to state the required versions but for now you must do it manually.) Sorry, Kon Unfortunately, I couldn't figure out how to do this, and it seems I've made it worse :-/ I added (require-at-runtime synch) to the setup file and now it no longer even finds sqlite3:open. install-extension section now looks like this: (install-extension 'sqlite3 `(,so-file "sqlite3.html" "egg.jpg") '((version "1.5.7") (require-at-runtime synch) (documentation "sqlite3.html"))) Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Problem with sqlite3 egg on MinGW Chicken 2.6
Hi, I'm trying to use the sqlite3 egg on a brand new Windows Chicken 2.6 build. So far in my basic tests it is running okay, but I am getting an error when finalising the db handle. This is the code: (require-extension synch) (require-extension sqlite3) (define *db-handle* (sqlite3:open "c:/dev/db_exper/test.db")) (sqlite3:finalize! *db-handle*) And this is the error: Version 2.6 - windows-mingw32-x86 - [ dload ptables applyhook cmake ] (c)2000-2007 Felix L. Winkelmann #;1> ; loading c:\chicken\bin\synch.scm ... ; loading c:\chicken\bin\synch-support.dll ... #;2> ; loading c:\chicken\bin\sqlite3.dll ... ; loading c:\chicken\bin\tinyclos-base.dll ... #;3> #;4> Error: unbound variable: call-with/synch Call history: (sqlite3:finalize! *db-handle*) (sqlite3:finalize! *db-handle*) <-- #;4> Any ideas why? If I call call-with/synch it seems to be available: (call-with/synch) #;4> Error: during expansion of (call-with/synch ...) - too few arguments - received 0 but expected 2: # Call history: (call-with/synch) <-- Thanks, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Compiling a file into both .dll and .o
Hi guys, Thanks for the info. (define-extension ...) does exactly what I'm looking for. Cheers, Ian From: "felix winkelmann" <[EMAIL PROTECTED]> To: "Ian Oversby" <[EMAIL PROTECTED]> CC: chicken-users@nongnu.org Subject: Re: [Chicken-users] Compiling a file into both .dll and .o Date: Fri, 2 Feb 2007 08:57:32 +0100 MIME-Version: 1.0 Received: from wr-out-0506.google.com ([64.233.184.225]) by bay0-mc2-f12.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Thu, 1 Feb 2007 23:57:33 -0800 Received: by wr-out-0506.google.com with SMTP id i21so650556wrafor <[EMAIL PROTECTED]>; Thu, 01 Feb 2007 23:57:33 -0800 (PST) Received: by 10.114.12.9 with SMTP id 9mr271277wal.1170403052979; Thu, 01 Feb 2007 23:57:32 -0800 (PST) Received: by 10.114.123.6 with HTTP; Thu, 1 Feb 2007 23:57:32 -0800 (PST) X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlK3oXsmRrh6gU= DomainKey-Signature: a=rsa-sha1; c=nofws;d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sD7Pn/duhjYUaJM1GgVD6/rlv4cN3UPM4c2uLbKj5z+/vyStgPEDKTarTdrOkLwwmsm+EmZqq/EL9MlZiuk6YrADJlzcIQqDRNazi5GpMwocPyxR9zvPKeZkMzAAVRHe5LkCxFGYwIDYxTcbu8+dZduNJETVryuKsjD1pwqY+vM= References: <[EMAIL PROTECTED]> Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 02 Feb 2007 07:57:33.0855 (UTC) FILETIME=[CBEF4AF0:01C7469F] On 2/1/07, Ian Oversby <[EMAIL PROTECTED]> wrote: Hi, I have two scheme files that I wish to compile into a single executable. One of the files has embedded C code and is the library. The other file uses functions defined in the library. I've added the following declaration to the top of the library: (declare (unit win32_lib)) And this one to the top of the other file: (declare (uses win32_lib)) I compile both of these with csc -c In addition, I would like to be able to load the library into csi and test it interactively. Unfortunately, with the unit declaration at the top, it doesn't seem to compile correctly with the -dynamic -dll flags. Is there some way I can get the same file to compile both dynamically and statically? Actually, thinking about it, can I use -prologue to add the declare line just when I'm compiling statically and is this the best way to do it? Or you can pass "-unit" to csc when compiling the static library. cheers, felix _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Compiling a file into both .dll and .o
Hi, I have two scheme files that I wish to compile into a single executable. One of the files has embedded C code and is the library. The other file uses functions defined in the library. I've added the following declaration to the top of the library: (declare (unit win32_lib)) And this one to the top of the other file: (declare (uses win32_lib)) I compile both of these with csc -c In addition, I would like to be able to load the library into csi and test it interactively. Unfortunately, with the unit declaration at the top, it doesn't seem to compile correctly with the -dynamic -dll flags. Is there some way I can get the same file to compile both dynamically and statically? Actually, thinking about it, can I use -prologue to add the declare line just when I'm compiling statically and is this the best way to do it? Thanks, Ian _ Have you tried Windows Live Spaces? Tell us what you think! https://www.msnfeedback.com/perseus/surveys/961278308/6653c632.htm ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
RE: [Chicken-users] Problem with srfi-42 egg
Actually, never mind me, I'm failing to read the documentation again! (require-extension syntax-case) (require-extension srfi-42) (list-ec (: i 5) (* i i)) this works fine. Ian From: "Ian Oversby" <[EMAIL PROTECTED]> To: chicken-users@nongnu.org Subject: [Chicken-users] Problem with srfi-42 egg Date: Tue, 09 Jan 2007 15:20:32 + MIME-Version: 1.0 X-Originating-IP: [141.228.106.136] X-Originating-Email: [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] Received: from lists.gnu.org ([199.232.76.165]) by bay0-mc5-f12.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue, 9 Jan 2007 07:21:11 -0800 Received: from localhost ([127.0.0.1] helo=lists.gnu.org)by lists.gnu.org with esmtp (Exim 4.43)id 1H4Imk-00019B-24for [EMAIL PROTECTED]; Tue, 09 Jan 2007 10:21:10 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)id 1H4ImG-xA-FSfor chicken-users@nongnu.org; Tue, 09 Jan 2007 10:20:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)id 1H4ImE-uc-4Wfor chicken-users@nongnu.org; Tue, 09 Jan 2007 10:20:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org)by lists.gnu.org with esmtp (Exim 4.43) id 1H4ImD-uK-SXfor chicken-users@nongnu.org; Tue, 09 Jan 2007 10:20:37 -0500 Received: from [65.54.246.229] (helo=bay0-omc3-s29.bay0.hotmail.com)by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4ImD-0007uL-Fbfor chicken-users@nongnu.org; Tue, 09 Jan 2007 10:20:37 -0500 Received: from hotmail.com ([65.54.169.31]) by bay0-omc3-s29.bay0.hotmail.comwith Microsoft SMTPSVC(6.0.3790.2668); Tue, 9 Jan 2007 07:20:34 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;Tue, 9 Jan 2007 07:20:34 -0800 Received: from 65.54.169.200 by by114fd.bay114.hotmail.msn.com with HTTP;Tue, 09 Jan 2007 15:20:32 GMT X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKagRhjiGbCrU= X-OriginalArrivalTime: 09 Jan 2007 15:20:34.0274 (UTC)FILETIME=[B52F5C20:01C73401] X-BeenThere: chicken-users@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: chicken-users.nongnu.org List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/chicken-users>,<mailto:[EMAIL PROTECTED]> List-Archive: <http://lists.gnu.org/pipermail/chicken-users> List-Post: <mailto:chicken-users@nongnu.org> List-Help: <mailto:[EMAIL PROTECTED]> List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/chicken-users>,<mailto:[EMAIL PROTECTED]> Errors-To: [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] I'm getting errors when trying to use the srfi-42 egg on chicken 2.5. The usage is fairly basic, and it is complaining about an unbound variable - :-dispatch Here is the code: (require "syntax-case") (require "srfi-42") (list-ec (: i 5) (* i i)) And these are the error messages: Version 2.5 - windows-mingw32-x86 - [ dload ptables applyhook cmake ] (c)2000-2006 Felix L. Winkelmann #;1> (require "syntax-case") ; loading c:\chicken\bin\syntax-case.dll ... ; loading c:\chicken\bin\syntax-case-chicken-macros.scm ... #;2> (require "srfi-42") ; loading c:\chicken\bin\srfi-42.scm ... #;3> (list-ec (: i 5) (* i i)) Error: unbound variable: :-dispatch Call history: ((lambda (g1453) (if g1453 (##sys#apply (lambda (g1454) (quote #(syntax-object (if #f #f) ((top) #(ribcage #(dummy) #((... ($syntax-dispatch g1407 (quote (any #(atom 1) () ( [snip] Ian _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users _ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Problem with srfi-42 egg
I'm getting errors when trying to use the srfi-42 egg on chicken 2.5. The usage is fairly basic, and it is complaining about an unbound variable - :-dispatch Here is the code: (require "syntax-case") (require "srfi-42") (list-ec (: i 5) (* i i)) And these are the error messages: Version 2.5 - windows-mingw32-x86 - [ dload ptables applyhook cmake ] (c)2000-2006 Felix L. Winkelmann #;1> (require "syntax-case") ; loading c:\chicken\bin\syntax-case.dll ... ; loading c:\chicken\bin\syntax-case-chicken-macros.scm ... #;2> (require "srfi-42") ; loading c:\chicken\bin\srfi-42.scm ... #;3> (list-ec (: i 5) (* i i)) Error: unbound variable: :-dispatch Call history: ((lambda (g1453) (if g1453 (##sys#apply (lambda (g1454) (quote #(syntax-object (if #f #f) ((top) #(ribcage #(dummy) #((... ($syntax-dispatch g1407 (quote (any #(atom 1) () ( [snip] Ian _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: Re: [Chicken-users] csi running inside emacs and srfi-18
Hi there, I'm using csi with the -:c option. If I don't, then I don't get any output from starting scheme or executing any commands at the REPL until I explicitly flush the output buffer. My chicken version is: Version 2, Build 425 - windows-mingw32-x86 - [ dload ptables applyhook ] And my emacs version is: GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] csi running inside emacs and srfi-18
Hi Felix, When I run this it says: #;9> (##sys#tty-port? (current-input-port)) 3 #f #;10> Ian From: "felix winkelmann" <[EMAIL PROTECTED]> To: "Ian Oversby" <[EMAIL PROTECTED]> CC: chicken-users@nongnu.org Subject: Re: [Chicken-users] csi running inside emacs and srfi-18 Date: Mon, 18 Sep 2006 21:03:29 +0200 MIME-Version: 1.0 Received: from wx-out-0506.google.com ([66.249.82.238]) by bay0-mc3-f13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Mon, 18 Sep 2006 12:03:38 -0700 Received: by wx-out-0506.google.com with SMTP id i30so8862003wxdfor <[EMAIL PROTECTED]>; Mon, 18 Sep 2006 12:03:38 -0700 (PDT) Received: by 10.70.8.8 with SMTP id 8mr18989399wxh;Mon, 18 Sep 2006 12:03:29 -0700 (PDT) Received: by 10.70.50.2 with HTTP; Mon, 18 Sep 2006 12:03:29 -0700 (PDT) X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GnhGS9mUos3n45L1klQwklqIb5fDP736V2dB+L9GaXrQEi+xxITn8n41GQhsYKWlRGH2FXFVkj7d8KKK8OKF/AHJKcAzqpIFM59a2g5fOKoFBIuzwqp1JNkiOpSatAIlp6QQy+fXxjpgPSP84IOCYDxCDuR8YsVh70YnPTy7/k0= References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 18 Sep 2006 19:03:38.0750 (UTC) FILETIME=[264691E0:01C6DB55] Ian, what does (##sys#tty-port? (current-input-port)) print, when using the REPL inside emacs? cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] csi running inside emacs and srfi-18
Hi, I'm getting some surprising behaviour using csi under emacs with srfi-18. I have the following code: (require-extension srfi-18) (let ((thread-1 (make-thread (lambda () (let loop ((x 1)) (when (<= x 20) (thread-sleep! 1) (print x) (loop (+ x 1 (thread-start! thread-1) (thread-join! thread-1 10 'finished)) (print "Hello World") Either compiling the code or using csi from a dos-shell works as expected. However, under emacs it displays finished immediately on evaluating the let expression. Evaluating the print statement convinces the thread to display one of the values as well as "Hello World". Does anyone have an idea how to persuade either csi or emacs to display the values as it does outside of emacs? Thanks, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] How easy is it to use Chicken in Windows XP
Brandon J. Van Every wrote: These instructions are in INSTALL-CMake.txt, in current tarball distributions. Hmmm... reading is good for you after all. I wish I hadn't bothered spending the time working it out myself now (not that it took that long in fact - it is reasonably logical). Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
RE: [Chicken-users] How easy is it to use Chicken in Windows XP
After struggling horribly, trying (and failing) to get ECL running in Windows I am really looking for a better experience. I tend to use "pure" Windows XP and free C/C++ tools so either GNU gcc is fine or MS Visual C++ 2005. Note that I don't have access to MSVC the commercial version. Is it possible to install and build a good working version of Chicken on Windows XP: 6. YES Easily!! Please let me know in detail how I go about this as I am not an expert in any of the above 1-5. (prays for 6 or 7 ...) Answer == 6 --> It is relatively easy when you know how. You need the following tools: Darcs http://abridgegame.org/darcs Chicken 2.3 binary (2.41 may work too??) Win32 binaryhttp://www.call-with-current-continuation.org Latest chicken from darcs repository $ darcs get http://galinha.ucpel.tche.br/chicken MinGW + MSYShttp://www.mingw.org CMake 2.4.3 Alternatively, I have a tarball of build 2 // 425 that was built with MinGW + MSYS that you can have. Then all you need is to untar it in a suitable place, set CHICKEN_HOME to point to the chicken bin directory and add the same directory to your path and it should work fine. Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] http-client egg
Hi, Some webpages return a 503 forbidden status when they do not recognise the User-Agent from the HTTP request. To get around this in my own code, I've provided a second exported send-request function like this: (define (http:my-send-request req . more) (let* ((in #f) (out #f) [req (if (string? req) (http:make-request 'GET req (cons '("Connection" . "close") more)) req)] ...) And then provided a wrapper function in my client code like this: (define (send-request-wrapper url) (http:imo-send-request url '("User-Agent" . "Mozilla/5.0") '("Content-Type" . "application/x-www-form-urlencoded"))) This seems to work, but is there a better way of doing this? Cheers, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
RE: [Chicken-users] Re: Chicken-users Digest, Vol 45, Issue 12
Since nobody answered, probably nobody here knows. I ported Jim Bender's sxml-match to Chicken, but I didn't end up using it very much and am hardly an expert in how it works. You might want to ask Jim Bender, or the WebIt! mailing list. It could also be a bug in the Chicken port, or in some underlying Chicken procedure, although I did make sure that it passed all of Bender's tests, and the changes I made were so slight that I don't think they should matter. But checking against the canonical PLT version may be a good idea. Bender's sxml-match page is here: http://celtic.benderweb.net/sxml-match/ Reed Sheridan Thanks Reed. Kon mentioned that the first element of a nodeset could not be a symbol which would explain why it didn't match. I'll try over on the WebIt! mailing list. Cheers, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
RE: [Chicken-users] chicken-setup doesn't handle whitespace
Built with CMake MinGW: E:\devel>chicken-setup opengl E:\Program Files\Chicken\bin\csc -feature compiling-extension -s glut.scm -O2 -d0 -L "-L/usr/X11R6/lib -L/usr/X11/lib -lglut -LX11 -lXmu" 'E:\Program' is not recognized as an internal or external command, operable program or batch file. make: Failed to make glut.so: shell invocation failed with non-zero return status Error: shell invocation failed with non-zero return status "E:\\Program Files\\Chicken\\bin\\csc -feature compiling-extension -s glut.scm . .. 1 Cheers, Brandon Van Every I have fairly recent version of chicken built with cmake / mingw / msys installed Version 2, Build 423 - windows-mingw32-x86 - [ dload ptables applyhook ] Installing in "c:\chicken-latest" rather than "c:\program files" means that chicken-setup works fine which seems to confirm your theory about whitespace. If it helps, here is a recent cmd session of mine. C:\>c:\program files\internet explorer\iexplore.exe 'c:\program' is not recognized as an internal or external command, operable program or batch file. C:\>c:\program\\ files\internet\\ explorer\iexplore.exe 'c:\program\\' is not recognized as an internal or external command, operable program or batch file. C:\>c:\program files\internet explorer\iexplore.exe 'c:\program' is not recognized as an internal or external command, operable program or batch file. C:\>"c:\program files\internet explorer\iexplore.exe" [Internet explorer then popped up] Quoting an entire command seems to be the way to get windows to accept it if it has spaces embedded. As backslash is the directory separator, it doesn't make sense that it would be the escape character too (perhaps? I'm normally a Unix guy myself). Regards, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] sxml-match question
Thanks to Reed Sheridan, Kon Lovett and Felix Winkelmann for pointing me in the necessary direction in order to use sxml-match. Now I have a question about how it works. Sorry if this is not the correct place to ask. Why does the first of these match but the second one doesn't? (sxml-match '(1 (2 3) 4 5) ((list ,x1 . ,x2) x2) (,otherwise #f)) ((2 3) 4 5) (sxml-match '(a (2 3) 4 5) ((list ,x1 . ,x2) x2) (,otherwise #f)) - Hide quoted text - - Show quoted text - #f I'm trying to match something a little similar to what is contained at the following page but I'm not sure how to translate the pattern (item ...) http://schemecookbook.org/Cookbook/WebExtractingAllLinksFromPage Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Re: Finding it unclear how to use sxml-match egg (Ian Oversb
Does import do something different to require-extension? Yeah. 'require-extension' is a pkg loader for both compiled & syntax components. But it presents all exported variables in the global space. Namespace pollution is a problem everywhere. The 'syntax-case' extension for Chicken provides both hygienic macros & a module system. While the pkg is named "sxml-match", the module containing the actual "stuff" is named "sxml-matcher". With the '(import sxml-matcher)' you make the contained variables visible in the global space. Take a look at the syntax-case.html Okay, thanks very much. I'll have a look. Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Re: Finding it unclear how to use sxml-match egg (Ian Oversby)
(require-extension syntax-case) (require-extension htmlprag) (require-extension sxml-match) Did you (import sxml-matcher)? Reed Sheridan "sxml-match" or "sxml-matcher". I used the following line: (require-extension syntax-case) Does import do something different to require-extension? Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Finding it unclear how to use sxml-match egg
Any ideas what I'm doing wrong? I tried the example from the documentation: (sxml-match '(e (@ (i 1)) 3 4 5) [(e (@ (i ,d)) ,a ,b ,c) (list d a b c)] [,otherwise #f]) and got this error: #;5> Error: expression not valid outside of quasiquote: (unquote d) Call history: ((lambda (g324) ((lambda (g325) (if g325 (##sys#apply (lambda (g326 g327) (##syncase#syntax-error g323 (quote "expressi... ((lambda (g325) (if g325 (##sys#apply (lambda (g326 g327) (##syncase#syntax-error g323 (quote "expression not valid out... ($syntax-dispatch g324 (quote (any . each-any))) (##sys#apply (lambda (g326 g327) (##syncase#syntax-error g323 (quote "expression not valid outside of quasiquote"))) g32.. (##syncase#syntax-error g323 (quote "expression not valid outside of quasiquote")) <-- I've tried requiring all the extensions which seemed to work fine so I'm at a bit of a loss. (require-extension syntax-case) (require-extension htmlprag) (require-extension sxml-match) Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Is darcs-head CMake build broken?
It could also be I'm using darcs incorrectly? I did darcs pull -a :-/ When building it failed with the following error. This is the MinGW / MSYS build. Building C object CMakeFiles/chicken-static.dir/optimizer.obj Building C object CMakeFiles/chicken-static.dir/support.obj make[2]: *** No rule to make target `libchicken.a', needed by `chicken-static.exe'. Stop. make[1]: *** [CMakeFiles/chicken-static.dir/all] Error 2 make: *** [all] Error 2 Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] chicken crashes when trying to install srfi-19
Well, you won't like this. Using Chicken 2.423 everything, including srfi-19, built ok. I am using a Msys/MinGW environment. (Took ~2hrs to compile Chicken, w/ < 8 modules changed. You can see why I don't do this more often.) I'll update my chicken to the latest stuff in darcs and see if I get the same behaviour. The only change I made was to remove '(register-feature 'srfi-29)' from "srif-29.scm". So you could get the current srfi29 egg & try building again, but I doubt that is the problem. However when I attempt to use srfi-19 I get an "Error: (car) bad argument type: ()" followed by the usual feedback for loading .dlls. While it loads all the needed .dll files the exported variables for srfi-19 are not, exported that is. Everything else seems to be though. It seems the problem is w/ numbers. Just doing a '(use numbers)' in csi will show the same error. (And it tries to load "numbers- base.dll" again, humm.) But '(use srfi-29)', for example, doesn't have any problems. I will continue looking, Kon Okay, thank you. Most appreciated. Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] chicken crashes when trying to install srfi-19
From: "Brandon J. Van Every" <[EMAIL PROTECTED]> Can this problem be reproduced in a ./configure build? Say, on Cygwin. I think the CMake MinGW build works, but it hasn't been tested much yet. I'd regard it as pre-beta quality. - CMake Cygwin has a known problem with the cygchicken-0.dll nomenclature - CMake MinGW should work - CMake VC++ may work. Haven't tried it lately. I'm thinking of installing Cygwin myself soon (for something unrelated to chicken) so I could try to see if I can reproduce the srfi-19 problem at that point. Ultimately, CMake / MinGW will be my preferred build platform as I'm hoping to make proper Win32 binaries with chicken. Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] chicken crashes when trying to install srfi-19
On Aug 1, 2006, at 7:26 AM, Ian Oversby wrote: Okay, now I've installed the numbers and vector-lib eggs and I'm still having the same problem. Ian Sorry you are having trouble w/ the srfi-19 egg. I don't know but you may be the 1st to build it on Windows. Hi Kon, Cool - I like being first :) By the way, I get one of those horrid windows pop-ups stating the instruction at "0x00bb254d" referenced memory at "0x32". The memory could not be "read". before the thing returned the error. I get the option of debugging the error so I did that and the debugger says "An exception 'Unhandled Win32 Exception' has occurred in chicken.exe". Going further into the debugger it only lets me see assembly code. Please try manually entering (or modify srfi-19.setup) the following: c:\chicken-new\csc -v3 -feature compiling-extension -O2 -d1 -s srfi-19.scm -o srfi-19.dll -check-imports -emit-exports srfi-19.exports Hopefully this will tell me something. (-1073741819 isn't a real return status.) Right, that gives me the following output: C:\chicken-new\srfi-19.egg.dir>c:\chicken-new\csc -v3 -feature compiling-extensi on -O2 -d1 -s srfi-19.scm -o srfi-19.dll -check-imports -emit-exports srfi-19.exports C:/chicken-new/bin/chicken srfi-19.scm -output-file srfi-19.c -dynamic -feature chicken-compile-shared -quiet -verbose -feature compiling-extension -optimize-level 2 -debug-level 1 -check-imports -emit-exports srfi-19.exports Loading compiler extensions... debugging info: none pass: source ; loading c:\chicken-new\srfi-29.dll ... ; loading c:\chicken-new\miscmacros.scm ... ; loading c:\chicken-new\lookup-table.dll ... ; loading c:\chicken-new\misc-extn.scm ... *** Shell command terminated with exit status -1073741819: C:/chicken-new/bin/chicken srfi-19.scm -output-file srfi-19.c -dynamic -feature chicken-compile-shared -quiet -verbose -feature compiling-extension -optimize-level 2 -debug-level 1 -check-imports -emit-exports srfi-19.exports C:\chicken-new\srfi-19.egg.dir> Hopefully that means more to you than it does to me. Thanks, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] chicken crashes when trying to install srfi-19
Okay, now I've installed the numbers and vector-lib eggs and I'm still having the same problem. Ian C:\chicken-new>chicken-setup srfi-19 copy .\en\srfi-19 c:\chicken-new\srfi-29-bundles\en\srfi-19 1 file(s) copied. copy .\es\srfi-19 c:\chicken-new\srfi-29-bundles\es\srfi-19 1 file(s) copied. copy tai-utc.dat c:\chicken-new\tai-utc.dat 1 file(s) copied. c:\chicken-new\csc -feature compiling-extension -O2 -d1 -s srfi-19.scm -o srfi-19.dll -check-imports -emit-exports srfi-19.exports *** Shell command terminated with exit status -1073741819: C:/chicken-new/bin/chicken srfi-19.scm -output-file srfi-19.c -dynamic -feature chicken-compile-shared -quiet -feature compiling-extension -optimize-level 2 -debug-level 1 -check-imports -emit-exports srfi-19.exports Error: shell invocation failed with non-zero return status "c:\\chicken-new\\csc -feature compiling-extension -O2 -d1 -s srfi-19.scm -o sr... -1073741819 C:\chicken-new> From: John Cowan <[EMAIL PROTECTED]> To: Ian Oversby <[EMAIL PROTECTED]> CC: chicken-users@nongnu.org Subject: Re: [Chicken-users] chicken crashes when trying to install srfi-19 Date: Tue, 1 Aug 2006 09:02:29 -0400 MIME-Version: 1.0 Received: from mercury.ccil.org ([192.190.237.100]) by bay0-mc3-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue, 1 Aug 2006 06:02:30 -0700 Received: from cowan by mercury.ccil.org with local (Exim 4.34)id 1G7ttF-00041z-Ro; Tue, 01 Aug 2006 09:02:29 -0400 X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo= References: <[EMAIL PROTECTED]> User-Agent: Mutt/1.3.28i Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 01 Aug 2006 13:02:30.0635 (UTC) FILETIME=[BF3E9BB0:01C6B56A] Ian Oversby scripsit: > Having installed all the eggs required for srfi-19 (miscmacros, > misc-extn, srfi-29, lookup-table, locale) chicken now crashes when > trying to install the srfi-19 egg. Looks like it wants "numbers" and "vector-lib" eggs too. We need a transitive-dependency follower, evidently. -- I suggest you call for help,John Cowan or learn the difficult art of mud-breathing.[EMAIL PROTECTED] --Great-Souled Sam http://www.ccil.org/~cowan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] chicken crashes when trying to install srfi-19
Having installed all the eggs required for srfi-19 (miscmacros, misc-extn, srfi-29, lookup-table, locale) chicken now crashes when trying to install the srfi-19 egg. This is a vaguely recentish version of chicken from darcs (claiming to be version 2, build 325) on windows-mingw32 built with CMake. I tried to build chicken-2.41 but the necessary cmake file is missing and I can't use darcs to get an up to date set of patches until later on today. Ian # -- C:\chicken-new>chicken-setup srfi-19 copy .\en\srfi-19 c:\chicken-new\srfi-29-bundles\en\srfi-19 1 file(s) copied. copy .\es\srfi-19 c:\chicken-new\srfi-29-bundles\es\srfi-19 1 file(s) copied. copy tai-utc.dat c:\chicken-new\tai-utc.dat 1 file(s) copied. c:\chicken-new\csc -feature compiling-extension -O2 -d1 -s srfi-19.scm -o srfi-19.dll -check-imports -emit-exports srfi-19.exports Warning: extension `vector-lib' is currently not installed Warning: extension `numbers' is currently not installed *** Shell command terminated with exit status -1073741819: C:/chicken-new/bin/chicken srfi-19.scm -output-file srfi-19.c -dynamic -feature chicken-compile-share d -quiet -feature compiling-extension -optimize-level 2 -debug-level 1 -check-imports -emit-exports srfi-19.exports Error: shell invocation failed with non-zero return status "c:\\chicken-new\\csc -feature compiling-extension -O2 -d1 -s srfi-19.scm -o sr... -1073741819 C:\chicken-new> ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Darcs-head Chicken broken on Cygwin
felix winkelmann scripsit: > What error message? $ csi -R srfi-1 ___| |_) | | __ \ | __| | / _ \ __ \ | | | | | ( < __/ | | \|_| |_|_|\___|_|\_\\___|_| _| Version 2, Build 325 - windows-cygwin-x86 - [ dload ptables applyhook ] (c)2000-2006 Felix L. Winkelmann ; loading library srfi-1 ... Error: (load-library) unable to load library srfi-1 "No such file or directory" Call history: (load-library (quote srfi-1)) <-- > (try to add "-:d" when running csi) $ csi -:d -R srfi-1 [debug] application startup... [debug] heap resized to 50 bytes [debug] stack bottom is 0x22cc80. [debug] entering toplevel toplevel... [debug] stack resized to 131072 bytes [debug] entering toplevel library_toplevel... [debug] entering toplevel eval_toplevel... [debug] entering toplevel extras_toplevel... [debug] entering toplevel match_toplevel... ___| |_) | | __ \ | __| | / _ \ __ \ | | | | | ( < __/ | | \|_| |_|_|\___|_|\_\\___|_| _| Version 2, Build 325 - windows-cygwin-x86 - [ dload ptables applyhook ] (c)2000-2006 Felix L. Winkelmann ; loading library srfi-1 ... Error: (load-library) unable to load library srfi-1 "No such file or directory" Call history: (load-library (quote srfi-1)) <-- > What does "dumpbin /dependents path-to-csi" print? $ dumpbin /dependents /usr/local/bin/csi -bash: dumpbin: command not found > Output of "(dynamic-load-libraries)"? #;1> (dynamic-load-libraries) ("cygchicken.dll") I had a similar problem with my MinGW and MSYS build which has now been resolved. It turns out there were two problems. The first was that it was looking for the wrong library (libchicken-0.dll instead of libchicken.dll) and that has been fixed. The second was that it looks like chicken has some difficulties with spaces in filenames and as the default installation directory is c:\Program Files it didn't work. Changing the installation directory to c:\chicken-new 'fixed' this problem too. On top of that, after the installation I manually copied the files from c:\chicken-new\bin to c:\chicken-new and then csc and chicken-setup started working correctly. I hope this helps. Regards, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] CMake/MinGW build 325 is using wrong(Unix) filename separat
To be technically precise, there is no "mingw" shell. People primarily use MinGW either under the MSYS shell, or on the normal Windows command line. These are the 2 cases that must be supported robustly. I have been doing all my development under MSYS, so I have probably failed at straight command line stuff. I thought Chicken used forward slash paths internally and did conversions at some point, so I've been feeding it forward slashes in the pathnames. Using MinGW under a Cygwin shell sounds pathological, kinky, error prone, unlikely, and not something we should worry about supporting. People use MinGW to abandon Cygwin, so that they're not tied to its GPL. Yes it is possible to get some kind of MinGW behavior by passing certain flags to the *Cygwin* compiler. I don't know much about this and am not going to be putting any testing time into this. If someone is heavily using Cygwin with MinGW flags, they can do the support / testing work for this and contribute it to Chicken. I'm not convinced that MinGW is always used simply to avoid the GPL. My understanding is that MinGW is for building 'proper' Windows applications with Win32 etc. and cygwin is for building unix-y applications with a huge slow compatibility library to bridge the gulf between Win32 and Posix. In my opinion, cygwin provides a somewhat nicer environment than MSYS for a Unix person so it is quite conceivable that someone would want to use cygwin for the build environment but use MinGW for the compiler / libraries because they want a proper Windows application. Mind you, I don't really care if the cygwin / MinGW combo is unsupported as MSYS is sufficient for me to build chicken and I only need to do that once (for some value of once). Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Extension loading problems in CMake/MinGW csi binary
Okay, dynamic-load-libraries showed that it was looking for libchicken-0.dll so I copied the original libchicken.dll to libchicken-0.dll Now where the heck is it getting a -0 from? Could it be some snafu with libchicken-gui or libchicken-static? Those are the names that have hyphens in them. Hi Brandon, Felix has given me a couple of patches, one of which fixed the problem with the -0 and resultant problems with the srfis in libchicken. If I remember correctly it was a patch to parameters.scm so now the MinGW/MSYS build is looking a lot better. Cheers, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] CMake/MinGW build 325 is using wrong (Unix)filename separat
In fact, this is a good question. I'm not really that knowledgable about MinGW but it seems that there are three shells you might want to use: cygwin, mingw and the normal windows shell. I built chicken with MSYS with uses forward slashes (although it horribly [or nicely depending on your point of view!] mangles the rest of the windows path, e.g. c:\chicken becomes /c/chicken). This being the case, I should presumably not apply the patch and install all the extensions I want from MSYS. I'll try that. Hmmm, it seems that Windows slashes are the way to go. With Unix style slashes I get this from MSYS: [EMAIL PROTECTED] /c/chicken-new $ chicken-setup.exe regex-case c:/chicken-new/csc -feature compiling-extension -O2 -no-trace -s regex-case.scm -emit-exports regex-case.exports regex-case.c:1: warning: -fPIC ignored for target (all code is position independent) copy regex-case.dll c:/chicken-new The syntax of the command is incorrect. Error: shell invocation failed with non-zero return status "copy regex-case.dll c:/chicken-new" 1 copy isn't found by MSYS and couldn't handle the forward slash in c:/chicken-new correctly in any case. In the Windows shell the following command worked a lot better after the patch to put Windows slashes in. Now to see if it actually does what it says on the tin. C:\chicken-new>chicken-setup -c "-lws2_32" http Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] CMake/MinGW build 325 is using wrong (Unix) filename separat
A possibly stupid question: when using mingw32, one uses the normal Windows shell, right? In that case the proper pathname directory separator should be "\". Here is another patch that fixes a bug which resulted in "/" separators on mingw32: [snip] In fact, this is a good question. I'm not really that knowledgable about MinGW but it seems that there are three shells you might want to use: cygwin, mingw and the normal windows shell. I built chicken with MSYS with uses forward slashes (although it horribly [or nicely depending on your point of view!] mangles the rest of the windows path, e.g. c:\chicken becomes /c/chicken). This being the case, I should presumably not apply the patch and install all the extensions I want from MSYS. I'll try that. Thanks, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] CMake/MinGW build 325 is using wrong (Unix) filename separator
As can be seen from the text below, chicken is using Unix-style forward slashes to separate directories within filenames when it should be using backslashes. This is causing errors when executing windows commands such as copy. Changing CHICKEN_HOME to c:/chicken-new does not work either as copy still fails with all forward slashes which is a surprise to me - I thought Windows could use either forward or backward slashes for filenames. Ian C:\chicken-new>set CHICKEN_HOME=c:\chicken-new C:\chicken-new>chicken-setup regex-case tar xvf ../regex-case.egg copy regex-case.scm c:\chicken-new/regex-case.scm The syntax of the command is incorrect. Error: shell invocation failed with non-zero return status "copy regex-case.scm c:\\chicken-new/regex-case.scm" 1 C:\chicken-new> ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Extension loading problems in CMake/MinGW csi binary
Both versions of the library are mentioned all over the place in the compiled .c files. Here a patch for parameters.scm: 79,80c79,80 < (define-constant cygwin-default-dynamic-load-libraries '("cygchicken-0")) < (define-constant mingw-default-dynamic-load-libraries '("libchicken-0")) --- (define-constant cygwin-default-dynamic-load-libraries '("cygchicken")) (define-constant mingw-default-dynamic-load-libraries '("libchicken")) cheers, felix Excellent - that fixed the problem! Cheers, Ian ;; ;; C:\chicken-new\bin>csi ___| |_) | | __ \ | __| | / _ \ __ \ | | | | | ( < __/ | | \|_| |_|_|\___|_|\_\\___|_| _| Version 2, Build 325 - windows-mingw32-x86 - [ dload ptables applyhook ] (c)2000-2006 Felix L. Winkelmann #;1> (require-extension srfi-1) ; loading library srfi-1 ... #;2> (fold + 0 '(1 2 3 4 5)) 15 #;3> (dynamic-load-libraries) ("libchicken.dll") ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Extension loading problems in CMake/MinGW csi binary
Here two different libchicken's are loaded. Where is libchicken-0.dll coming from??? cheers, felix Both versions of the library are mentioned all over the place in the compiled .c files. Ian [EMAIL PROTECTED] /c/example/chicken_build $ grep -i 'libchicken' *.c *.scm batch-driver.c:tmp=C_static_string(C_heaptop,10,"libchicken"); batch-driver.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); batch-driver.c:tmp=C_static_string(C_heaptop,10,"libchicken"); compiler.c:tmp=C_static_string(C_heaptop,10,"libchicken"); compiler.c:tmp=C_static_string(C_heaptop,10,"libchicken"); csc.c:tmp=C_static_string(C_heaptop,14,"libchicken.lib"); csc.c:lf[361]=C_static_string(C_heaptop,14,"libchicken.lib"); csc.c:lf[363]=C_static_string(C_heaptop,33,"C:/chicken-new/lib/libchicken.lib"); csc.c:lf[374]=C_static_string(C_heaptop,12,"libchicken.a"); csc.c:lf[376]=C_static_string(C_heaptop,31,"C:/chicken-new/lib/libchicken.a"); csi.c:tmp=C_static_string(C_heaptop,10,"libchicken"); csi.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); csi.c:tmp=C_static_string(C_heaptop,10,"libchicken"); eval.c:tmp=C_static_string(C_heaptop,10,"libchicken"); eval.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); eval.c:tmp=C_static_string(C_heaptop,10,"libchicken"); library.c:tmp=C_static_string(C_heaptop,10,"libchicken"); library.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); library.c:tmp=C_static_string(C_heaptop,10,"libchicken"); optimizer.c:tmp=C_static_string(C_heaptop,10,"libchicken"); optimizer.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); optimizer.c:tmp=C_static_string(C_heaptop,10,"libchicken"); profiler.c:tmp=C_static_string(C_heaptop,10,"libchicken"); profiler.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); profiler.c:tmp=C_static_string(C_heaptop,10,"libchicken"); support.c:tmp=C_static_string(C_heaptop,10,"libchicken"); support.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); support.c:tmp=C_static_string(C_heaptop,10,"libchicken"); tinyclos.c:tmp=C_static_string(C_heaptop,10,"libchicken"); tinyclos.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); tinyclos.c:tmp=C_static_string(C_heaptop,10,"libchicken"); ueval.c:tmp=C_static_string(C_heaptop,10,"libchicken"); ueval.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); ueval.c:tmp=C_static_string(C_heaptop,10,"libchicken"); ulibrary.c:tmp=C_static_string(C_heaptop,10,"libchicken"); ulibrary.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); ulibrary.c:tmp=C_static_string(C_heaptop,10,"libchicken"); utinyclos.c:tmp=C_static_string(C_heaptop,10,"libchicken"); utinyclos.c:tmp=C_static_string(C_heaptop,12,"libchicken-0"); utinyclos.c:tmp=C_static_string(C_heaptop,10,"libchicken"); ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Extension loading problems in CMake/MinGW csi binary
srfi-1 is no extension, it's part of libchicken. In that case the pathnames searched for extensions are irrelevant (and should be identical to CHICKEN_REPOSITORY on Windows anyway). What's the output of "(dynamic-load-libraries)"? Okay, dynamic-load-libraries showed that it was looking for libchicken-0.dll so I copied the original libchicken.dll to libchicken-0.dll and then it reported nursery too small. Ian #;1> (dynamic-load-libraries) ("libchicken-0.dll") #;2> (require-extension srfi-1) ; loading library srfi-1 ... nursery is too small - try higher setting using the `-:s' option - execution terminated C:\chicken-new\bin> ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Extension loading problems in CMake/MinGW csibinary
On 7/14/06, Ian Oversby <[EMAIL PROTECTED]> wrote: Getting chicken to output the path where it is looking for the library might differentiate between a quoting problem and a lack of pathname-with-spaces support though right? "csc -libs" should show the options passed to the linker. cheers, felix I meant to get csi to output the paths searched when it failed to find an extension. e.g. something like this: (require-extension srfi-1) #;1> Error: (load-library) unable to load library srfi-1 "No such file or directory (looked in c:\chicken\chickenlib.dll c:\abc\srfi-1.dll c:\def\srfi-1.dll c:\Program)" Call history: (load-library (quote srfi-1)) <-- ; loading library srfi-1 ... And then I would have an idea it had failed to handle the space in c:\Program Files. Actually I might see if I can build it to install somewhere other than c:\Program Files and check if that fixes the problem. Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Extension loading problems in CMake/MinGW csibinary
All the Makefiles are in CMakeFiles/targetname.dir/build.make and so forth. You can always diagnose what's actually going on in a CMake generated build by poking around in there. Often I've compared results with the ./configure generated Makefile to deduce what's wrong. Also you can use "make VERBOSE=1" Okay, this make VERBOSE=1 thing sounds good. I'll try that next time. and also looking at the CMake generated makefiles leads me to believe I won't find anything of help there :-/ Possibly you only looked at the toplevel Makefile. The meat is down in the build.make files. No, I found the build.make files too. It is my [current] lack of understanding that is preventing me finding the help rather than the fact the information isn't there :) [snip description of quoting problem] For all I know, there might be nothing wrong with my quoting, and the real issue may be lack of pathname-with-spaces support. Yes, Windows does take pathnames in double quotes. Now try quoting and escaping the quotes to get 'em through the C preprocessor, or through Chicken. Getting chicken to output the path where it is looking for the library might differentiate between a quoting problem and a lack of pathname-with-spaces support though right? Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Extension loading problems in CMake/MinGW csi binary
Ian, what does "csi -v" show? Perhaps dynamic loading isn't available (this is controlled by some preprocessor macros). The srfi's are put into libchicken, extensions exist as separate dll's (that results in different semantics and error-messages). Does windows accept executable names in double-quotes? If it does, I can try to address the space-in-pathname issue in csc.scm(.in). I've attached some output below. "csi -v" mentions dload at least. And windows looks like it does accept executable names in double-quotes, or it does from the windows shell at least. C:\Program Files\Chicken\bin>set PATH=C:\Program Files\Chicken\bin;%PATH% C:\Program Files\Chicken\bin>csi -v ___| |_) | | __ \ | __| | / _ \ __ \ | | | | | ( < __/ | | \|_| |_|_|\___|_|\_\\___|_| _| Version 2, Build 325 - windows-mingw32-x86 - [ dload ptables applyhook ] (c)2000-2006 Felix L. Winkelmann C:\Program Files\Chicken\bin>"c:\Program Files\Chicken\bin\csi" ___| |_) | | __ \ | __| | / _ \ __ \ | | | | | ( < __/ | | \|_| |_|_|\___|_|\_\\___|_| _| Version 2, Build 325 - windows-mingw32-x86 - [ dload ptables applyhook ] (c)2000-2006 Felix L. Winkelmann #;1> (exit) Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Extension loading problems in CMake/MinGW csi binary
Ian Oversby wrote: In the previous version of the Windows chicken binary, fold worked out of the box without any need to require any extensions. Now it doesn't. All officially released Windows binaries are built with makefile.vc, not CMake. The only officially released Windows binary available on the Chicken homepage is for Chicken 2.3. "csi -R srfi-1" works fine for that. So when you say "now it doesn't," exactly what source tree version and build method are you referring to? Most recent pull from Darcs, using CMake to build? Or something else? Yes, sorry, by "now it doesn't", I mean that the most recent pull from Darcs using CMake to build with MinGW and MSYS doesn't automatically include fold or have the ability to load any of the srfis. Could it be worth hacking chicken to output where it is looking for the files when requiring the extensions maybe? The srfi-* units are part of libchicken and definitely built into csi. If it's a CMake-specific problem, then it's probably a quoting problem. BTW I find the current VC++ CMake build is completely broken, it won't build. I need to verify whether these problems are CMake-specific. Just as soon as I kick the CMake tarball capability out the door, in a matter of hours. Okay, glancing at the make log, I can believe the srfis have been built in (pity it doesn't retain the commands executed for actual compilation)... and also looking at the CMake generated makefiles leads me to believe I won't find anything of help there :-/ Hmmm, what do you mean by "quoting problem", maybe I can look into that? Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Extension loading problems in CMake/MinGW csi binary
In the previous version of the Windows chicken binary, fold worked out of the box without any need to require any extensions. Now it doesn't. (fold 0 + '(1 2 3 4 5)) #;1> Error: unbound variable: fold Call history: (fold 0 + (quote (1 2 3 4 5))) <-- And as others have reported, it has problems with loading any extensions. (require-extension srfi-1) #;1> Error: (load-library) unable to load library srfi-1 "No such file or directory" Call history: (load-library (quote srfi-1)) <-- ; loading library srfi-1 ... (require-extension srfi-13) #;1> Error: (load-library) unable to load library srfi-13 "No such file or directory" Call history: (load-library (quote srfi-13)) <-- ; loading library srfi-13 ... And the srfis give a different error to missing libraries. (require-extension blah) #;1> Error: (require) can not load extension: blah Call history: (##sys#require (quote blah))<-- #;1> If I run csi directly rather than through emacs/quack it gives a different message: "No error" instead of "No such file or directory" #;2> (require-extension srfi-1) ; loading library srfi-1 ... Error: (load-library) unable to load library srfi-1 "No error" Call history: (load-library (quote srfi-1)) <-- I was unable to confirm if this problem happens with csc as it doesn't look as though it can handle spaces in directory names. C:\home\iano\dev>csc a.scm 'C:/Program' is not recognized as an internal or external command, operable program or batch file. *** Shell command terminated with exit status 1: C:/Program Files/Chicken/bin/chicken a.scm -output-file a.c -quiet I'm guessing the srfi files haven't been built into csi so the next thing for me to look at must be the CMake input file (CMakeLists.txt?) Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] csi problem - errors buffered?
1961a1962 [flush-output flush-output] 2006c2007,2008 < (print-call-chain ##sys#standard-error) ) ) ) --- (print-call-chain ##sys#standard-error) (flush-output ##sys#standard-error) ) ) ) (sorry, forgot a paren) cheers, felix Okay, that worked great, thanks. Onto the next problems... Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] csi problem - errors buffered?
Brandon J. Van Every wrote: Given that an inability to handle "csi -R srfi-1" was previously reported, I expect there are problems with the CMake build of csi. I suspect I have the same problem with my build and srfi-1 but was unable to see exactly what it was because of the buffering of errors :) At present I don't have solutions, as the problems are beyond my current knowledge. The problems can be fixed more quickly by other people digging into the sources and trying to resolve these bugs, or more slowly if people wait for me to go up the learning curve associated with each and every one of them. My bugfixing priorities are always towards the things that are easiest for me personally to implement. At present, that's getting the CMake build to be fully tarball capable. Yes it'll be a buggy tarball and then the bugfixing priorities will change, but I know how to crank out CMake code, not Chicken MinGW MSYS bugfixes. I think the beauty of open source is that people have different kinds of expertise and can combine their resources. I'm only just getting used to darcs, chicken and MinGW myself and have, unfortunately, precious little time to spend on this (probably like everyone else right?). That said, once the error output problem is resolved I'll do what I can to help with the stuff on my priority list. Thanks, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] csi problem - errors buffered?
I'm having a problem with a MinGW build of chicken on Windows. I'm running csi -:c from within emacs/quack. It seems that errors are being buffered. If I enter a command like (+ 1 2), I get the answer back immediately. If I enter (+ a b) it displays me another prompt without displaying the error. Running csi -:c from the command prompt has a similar problem, but exiting the interpreter with (exit) causes all the missing errors to be displayed as it exits. The version of chicken I am running is version 2, build 324. I used the CMake build for MinGW and MSYS created with CMake 2.4.2. Ian, could you try the following patch, applied to eval.scm: 1961a1962 [flush-output flush-output] 2006c2007,2008 < (print-call-chain ##sys#standard-error) ) ) ) --- (print-call-chain ##sys#standard-error) (flush-output ##sys#standard-error) ) ) ) ) cheers, felix Hi Felix, Thanks for the extremely quick response - I'm impressed :) I'm away from my dev PC at the moment but I'll give it a try when I arrive home this evening. Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] csi problem - errors buffered?
Hi, I'm having a problem with a MinGW build of chicken on Windows. I'm running csi -:c from within emacs/quack. It seems that errors are being buffered. If I enter a command like (+ 1 2), I get the answer back immediately. If I enter (+ a b) it displays me another prompt without displaying the error. Running csi -:c from the command prompt has a similar problem, but exiting the interpreter with (exit) causes all the missing errors to be displayed as it exits. The version of chicken I am running is version 2, build 324. I used the CMake build for MinGW and MSYS created with CMake 2.4.2. Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] MinGW CMake error - chicken-2.315
Brandon Van Every wrote: Ian Oversby wrote: > I'm trying to build chicken for MinGW but it is failing in CMake with > the message: > > CMake Error: Cannot find source file > "C:/chicken-2.315/StackGrowsDownward.c" for target > "cmTryCompileExec". Any ideas why? I'm going to guess that something went wrong with your Darcs pull and you don't actually have StackGrowsDownward.c. I test MinGW on a MSYS shell all the time, it is my primary build environment. Questions: - do you actually have StackGrowsDownward.c ? - what version of CMake are you using? - are you building under MSYS or a Windows command prompt? No, I don't have StackGrowsDownward.c. I didn't use darcs to pull the source but used the tarball from the chicken site. I'll try again with darcs and see how far I get. I'm using CMake 2.4 and the Windows command prompt rather than MSYS. Thanks very much, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] MinGW CMake error - chicken-2.315
I'm trying to build chicken for MinGW but it is failing in CMake with the message: CMake Error: Cannot find source file "C:/chicken-2.315/StackGrowsDownward.c" for target "cmTryCompileExec". Any ideas why? Thanks, Ian ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users