Re: Chicken on Debian

2021-01-10 Thread Mario Domenech Goulart
On Sun, 10 Jan 2021 14:15:14 -0700 Duke Normandin  wrote:

> On Sun, 10 Jan 2021 22:05:21 +0100
> Mario Domenech Goulart wrote:
>
> Hey Mario ...
>
> Thanks for all the help!!

You're welcome!

> [snip]
>
>> If you want to compile CHICKEN from sources, it's a piece of cake
>> on Linux, and doesn't depend on much more than what you'd need to
>> install eggs. You'll need a C toolchain and GNU make.
>>
>> In case that's a viable alternative for you, below is a simple
>> recipe that will install CHICKEN in $HOME/local/chicken-5.2.0
>> (you can change that, of course).
>>
>>   $ wget
>> http://code.call-cc.org/releases/5.2.0/chicken-5.2.0.tar.gz $ tar
>> xzvf chicken-5.2.0.tar.gz $ cd chicken-5.2.0
>>   $ make PLATFORM=linux PREFIX=$HOME/local/chicken-5.2.0 install
>
> Is 5.2.0 "Bleeding Edge" where I'll be in trouble all the time? :)

5.2.0 is the most stable release so far.  It's the best CHICKEN can
offer at the moment. :-)

> And making a bunch of noise on this list?

No problem.

> I'll see what I do have for a toolchain and go from there. Much
> obliged!

You're welcome.  Good luck!

All the best.
Mario
-- 
http://parenteses.org/mario



Re: Chicken on Debian

2021-01-10 Thread Duke Normandin
On Sun, 10 Jan 2021 22:05:21 +0100
Mario Domenech Goulart wrote:

>   $ wget
> http://code.call-cc.org/releases/5.2.0/chicken-5.2.0.tar.gz $ tar
> xzvf chicken-5.2.0.tar.gz $ cd chicken-5.2.0
>   $ make PLATFORM=linux PREFIX=$HOME/local/chicken-5.2.0 install

dnormandin@ASUSLAP:~$ ls local/chicken-5.2.0/bin/
chicken  chicken-do  chicken-install  chicken-profile
  chicken-status  chicken-uninstall  csc  csi  feathers

:-D




Re: Chicken on Debian

2021-01-10 Thread Duke Normandin
On Sun, 10 Jan 2021 22:05:21 +0100
Mario Domenech Goulart wrote:

Hey Mario ...

Thanks for all the help!!

[snip]

> If you want to compile CHICKEN from sources, it's a piece of cake
> on Linux, and doesn't depend on much more than what you'd need to
> install eggs. You'll need a C toolchain and GNU make.
>
> In case that's a viable alternative for you, below is a simple
> recipe that will install CHICKEN in $HOME/local/chicken-5.2.0
> (you can change that, of course).
>
>   $ wget
> http://code.call-cc.org/releases/5.2.0/chicken-5.2.0.tar.gz $ tar
> xzvf chicken-5.2.0.tar.gz $ cd chicken-5.2.0
>   $ make PLATFORM=linux PREFIX=$HOME/local/chicken-5.2.0 install

Is 5.2.0 "Bleeding Edge" where I'll be in trouble all the time? :)
And making a bunch of noise on this list?

I'll see what I do have for a toolchain and go from there. Much
obliged!
--
Duke



Re: Chicken on Debian

2021-01-10 Thread Duke Normandin
On Sun, 10 Jan 2021 22:12:50 +0200
Lassi Kortela wrote:

> > dnormandin@ASUSLAP:~$ sudo apt install chicken-bin=5.2.0
> > E: Version '5.2.0' for 'chicken-bin' was not found
>
> 5.2.0 is in Debian Testing and Unstable.
> https://repology.org/project/chicken/versions

Thanks! I'm rusty with 'apt' utility.
I want to update my /etc/apt/sources.list

I'm NOT winning because I'm not using the correct URL.
Would you please give me a clue.

My last entry was:
deb http://deb.debian.org/debian buster/lisp main

but that doesn't seem to pick up the 4.13.0-1 version.
Only an older version:

dnormandin@ASUSLAP:~$ apt search chicken-bin
Sorting... Done
Full Text Search... Done
chicken-bin/oldstable 4.11.0-1 amd64
  Practical and portable Scheme system - compiler


--
Duke



Re: Chicken on Debian

2021-01-10 Thread Mario Domenech Goulart
Hi Duke,

On Sun, 10 Jan 2021 13:09:37 -0700 Duke Normandin  wrote:

> Debian shows only:
>
> dnormandin@ASUSLAP:~$ apt search chicken
> Sorting... Done
> Full Text Search... Done
> chicken-bin/oldstable 4.11.0-1 amd64
>  Practical and portable Scheme system - compiler
>
> dnormandin@ASUSLAP:~$ sudo apt install chicken-bin=5.2.0
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Version '5.2.0' for 'chicken-bin' was not found

If you want to compile CHICKEN from sources, it's a piece of cake on
Linux, and doesn't depend on much more than what you'd need to install
eggs. You'll need a C toolchain and GNU make.

In case that's a viable alternative for you, below is a simple recipe
that will install CHICKEN in $HOME/local/chicken-5.2.0 (you can change
that, of course).

  $ wget http://code.call-cc.org/releases/5.2.0/chicken-5.2.0.tar.gz
  $ tar xzvf chicken-5.2.0.tar.gz
  $ cd chicken-5.2.0
  $ make PLATFORM=linux PREFIX=$HOME/local/chicken-5.2.0 install

You can add $HOME/local/chicken-5.2.0/bin to $PATH to execute the
CHICKEN tools without providing the path to them.

All the best.
Mario
-- 
http://parenteses.org/mario



Re: Chicken on Debian

2021-01-10 Thread Lassi Kortela

dnormandin@ASUSLAP:~$ sudo apt install chicken-bin=5.2.0
E: Version '5.2.0' for 'chicken-bin' was not found


5.2.0 is in Debian Testing and Unstable. 
https://repology.org/project/chicken/versions




Chicken on Debian

2021-01-10 Thread Duke Normandin
Debian shows only:

dnormandin@ASUSLAP:~$ apt search chicken
Sorting... Done
Full Text Search... Done
chicken-bin/oldstable 4.11.0-1 amd64
 Practical and portable Scheme system - compiler

dnormandin@ASUSLAP:~$ sudo apt install chicken-bin=5.2.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '5.2.0' for 'chicken-bin' was not found

Is there a Debian maintainer in the crowd? Anybody got
Mr Putin's mobile # so that I can report this serious matter?
ROTFL
--
Duke



Re: [Chicken-users] Debian 9 amd64 chicken-bin 4.11.0-1 cannot import from undefined module process-context

2019-09-18 Thread David Christensen

On 9/17/19 10:46 PM, Mario Domenech Goulart wrote:

$ wgethttp://code.call-cc.org/releases/5.1.0/chicken-5.1.0.tar.gz
$ tar xzvf chicken-5.1.0.tar.gz 
$ cd chicken-5.1.0

$ make PLATFORM=linux PREFIX=$HOME/local/chicken-5.1.0 install



$ export PATH=$PATH:$HOME/local/chicken-5.1.0/bin



On 9/17/19 11:09 PM, Peter Bex wrote:

You don't need to be root if you set PREFIX to a user-writable
directory.



Remove Debian chicken-bin:

2019-09-17 23:16:26 root@tinkywinky ~
# apt-get remove chicken-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer 
required:

  libchicken-dev libchicken8 libpcre3-dev libpcre32-3 libpcrecpp0v5
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  chicken-bin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 5903 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 115436 files and directories currently installed.)
Removing chicken-bin (4.11.0-1) ...
Processing triggers for man-db (2.7.6.1-2) ...

2019-09-17 23:17:15 root@tinkywinky ~
# apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libchicken-dev libchicken8 libpcre3-dev libpcre32-3 libpcrecpp0v5
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 14.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 115333 files and directories currently installed.)
Removing libchicken-dev (4.11.0-1) ...
Removing libchicken8 (4.11.0-1) ...
Removing libpcre3-dev:amd64 (2:8.39-3) ...
Removing libpcre32-3:amd64 (2:8.39-3) ...
Removing libpcrecpp0v5:amd64 (2:8.39-3) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...


Download Chicken tarball with Firefox.


Checksum:

2019-09-17 23:23:58 dpchrist@tinkywinky 
~/samba/dpchrist/Downloads/c/chicken-scheme

$ ll
total 4109
drwxr-xr-x+  2 dpchrist dpchrist   0 2019-09-17 23:23:17 ./
drwxr-xr-x+ 38 dpchrist dpchrist   0 2019-09-17 23:21:59 ../
-rw-r--r--+  1 dpchrist dpchrist  86 2019-09-17 23:23:04 SHA256SUM
-rw-r--r--+  1 dpchrist dpchrist 4071169 2019-09-17 23:22:04 
chicken-5.1.0.tar.gz


2019-09-17 23:23:42 dpchrist@tinkywinky 
~/samba/dpchrist/Downloads/c/chicken-scheme

$ cat SHA256SUM
5c1101a8d8faabfd500ad69101e0c7c8bd826c68970f89c270640470e7b84b4b 
*chicken-5.1.0.tar.gz


2019-09-17 23:24:05 dpchrist@tinkywinky 
~/samba/dpchrist/Downloads/c/chicken-scheme

$ sha256sum -c SHA256SUM
chicken-5.1.0.tar.gz: OK


Build:

2019-09-17 23:26:31 dpchrist@tinkywinky ~/build
$ tar -xzf ~/samba/dpchrist/Downloads/c/chicken-scheme/chicken-5.1.0.tar.gz

2019-09-17 23:27:17 dpchrist@tinkywinky ~/build
$ cd chicken-5.1.0/

2019-09-17 23:28:23 dpchrist@tinkywinky ~/build/chicken-5.1.0
$ make PLATFORM=linux PREFIX=$HOME/local/chicken-5.1.0 install
echo '#define C_CHICKEN_PROGRAM "chicken"' >> chicken-defaults.h
echo '#ifndef C_INSTALL_CC' >> chicken-defaults.h
echo '# define C_INSTALL_CC "gcc"' >> chicken-defaults.h

install -m 644 ./LICENSE 
"/home/dpchrist/local/chicken-5.1.0/share/chicken/doc"
install -m 644 ./setup.defaults 
"/home/dpchrist/local/chicken-5.1.0/share/chicken"
install -m 644 ./feathers.tcl 
"/home/dpchrist/local/chicken-5.1.0/share/chicken"



Adjust PATH:

2019-09-17 23:47:49 dpchrist@tinkywinky ~
$ export 
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/dpchrist/local/chicken-5.1.0/bin



Test:

2019-09-17 23:49:00 dpchrist@tinkywinky ~
$ cd sandbox/chicken-scheme

2019-09-17 23:49:43 dpchrist@tinkywinky ~/sandbox/chicken-scheme
$ csc -o palindrome palindrome.scm

2019-09-17 23:50:26 dpchrist@tinkywinky ~/sandbox/chicken-scheme
$ ./palindrome level
level is a palindrome

2019-09-17 23:50:33 dpchrist@tinkywinky ~/sandbox/chicken-scheme
$ ./palindrome label
label isn't a palindrome


Thank you, everyone.  :-)


David

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian 9 amd64 chicken-bin 4.11.0-1 cannot import from undefined module process-context

2019-09-18 Thread Peter Bex
On Tue, Sep 17, 2019 at 11:00:17PM -0700, David Christensen wrote:
> The current release of Chicken appears to be 5.1.0:
> 
> https://code.call-cc.org/

Correct.

> I do not see a Debian backport:
> 
> https://packages.debian.org/search?keywords=chicken=names=all=stretch-backports

Yeah, Debian...  I think I asked for a CHICKEN 5.0.0 port when it came
out but nobody was interested in packaging it.

> Does anyone have any experiencing compiling, installing, and running Chicken
> 5.1.0 from a source tarball on Debian 9?  Can I do this with a normal user
> account?

I used to do it all the time.  I still do, but now I run Debian 10.
You don't need to be root if you set PREFIX to a user-writable directory.

Cheers,
Peter


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian 9 amd64 chicken-bin 4.11.0-1 cannot import from undefined module process-context

2019-09-18 Thread David Christensen

On 9/17/19 10:36 PM, Vasilij Schneidermann wrote:

Hey David,

You're using version 4 of the compiler, but version 5 of the documentation. You 
can tell the latter by looking for the number in the URL.



Thanks for the tip.


Taking a stab in the dark:

http://wiki.call-cc.org/man/4/The%20User's%20Manual

http://wiki.call-cc.org/man/4/Getting%20started

2019-09-17 22:49:46 dpchrist@tinkywinky ~/sandbox/chicken-scheme-4
$ cat palindrome.scm
;;; http://wiki.call-cc.org/man/4/Getting%20started
;;; downloaded 2019-09-17

(define (palindrome? x)
  (define (check left right)
(if (>= left right)
#t
(and (char=? (string-ref x left) (string-ref x right))
 (check (add1 left) (sub1 right)
  (check 0 (sub1 (string-length x
(let ((arg (car (command-line-arguments
  (display
   (string-append arg
  (if (palindrome? arg)
  " is a palindrome\n"
  " isn't a palindrome\n"

2019-09-17 22:50:17 dpchrist@tinkywinky ~/sandbox/chicken-scheme-4
$ csc -o palindrome palindrome.scm

2019-09-17 22:50:24 dpchrist@tinkywinky ~/sandbox/chicken-scheme-4
$ ./palindrome level
level is a palindrome

2019-09-17 22:50:29 dpchrist@tinkywinky ~/sandbox/chicken-scheme-4
$ ./palindrome liver
liver isn't a palindrome


The current release of Chicken appears to be 5.1.0:

https://code.call-cc.org/


I do not see a Debian backport:

https://packages.debian.org/search?keywords=chicken=names=all=stretch-backports


Only a Sid package (no thanks; I prefer stability):

https://packages.debian.org/search?keywords=chicken=names=all=all


Does anyone have any experiencing compiling, installing, and running 
Chicken 5.1.0 from a source tarball on Debian 9?  Can I do this with a 
normal user account?



David

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian 9 amd64 chicken-bin 4.11.0-1 cannot import from undefined module process-context

2019-09-17 Thread Mario Domenech Goulart
On Wed, 18 Sep 2019 07:46:01 +0200 Mario Domenech Goulart 
 wrote:

>> 2019-09-17 22:06:21 root@tinkywinky ~
>> # cat /etc/debian_version
>> 9.11
>>
>> 2019-09-17 22:10:03 root@tinkywinky ~
>> # uname -a
>> Linux tinkywinky 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02)
>> x86_64 GNU/Linux
>>
>> 2019-09-17 22:15:35 root@tinkywinky ~
>> # dpkg-query -s chicken-bin
>> Package: chicken-bin
>> Status: install ok installed
>> Priority: optional
>> Section: lisp
>> Installed-Size: 5765
>> Maintainer: Davide Puricelli (evo) 
>> Architecture: amd64
>> Source: chicken
>> Version: 4.11.0-1
>> Replaces: chicken, chicken-dev
>> Depends: libc6 (>= 2.4), libchicken8 (>= 4.11.0), libchicken-dev (=
>> 4.11.0-1)
>> Conflicts: chicken, chicken-dev
>> Description: Practical and portable Scheme system - compiler
>>  CHICKEN is a Scheme compiler which compiles a subset of R5RS into C.
>>  It uses the ideas presented in Baker's paper "Cheney on the MTA", and
>>  has a small core and is easily extendable.
>>  .
>>  This package contains the compiler.
>> Homepage: http://www.call-cc.org
>>
>>
>> I am attempting to follow:
>>
>> http://wiki.call-cc.org/man/5/Getting%20started
>>
>>
>> I have created a Scheme program source file:
>>
>> 2019-09-17 22:07:12 dpchrist@tinkywinky ~/sandbox/chicken-scheme
>> $ cat palindrome.scm
>> ;;; http://wiki.call-cc.org/man/5/Getting%20started
>> ;;; downloaded 2019-09-17
>>
>> (import (chicken process-context)) ; for "command-line-arguments"
>>
>> (define (palindrome? x)
>>   (define (check left right)
>> (if (>= left right)
>> #t
>> (and (char=? (string-ref x left) (string-ref x right))
>>  (check (add1 left) (sub1 right)
>>   (check 0 (sub1 (string-length x
>>
>> (let ((arg (car (command-line-arguments
>>   (display
>>(string-append arg
>>   (if (palindrome? arg)
>>   " is a palindrome\n"
>>   " isn't a palindrome\n"
>>
>>
>> When I try to compile:
>>
>> 2019-09-17 22:07:15 dpchrist@tinkywinky ~/sandbox/chicken-scheme
>> $ csc -o palindrome palindrome.scm
>>
>> Syntax error (import): cannot import from undefined module
>>
>>  process-context
>>
>>  Expansion history:
>>
>>(##core#begin (import (chicken process-context)))
>>(import (chicken process-context))<--
>>
>> Error: shell command terminated with non-zero exit status 17920:
>> '/usr/bin/chicken' 'palindrome.scm' -output-file 'palindrome.c'
>>
>>
>> I appear to be missing the module "chicken process-context", which is
>> supposed to be included (?):
>>
>> http://wiki.call-cc.org/man/5/Included%20modules
>>
>>
>> Suggestions?
>
> The problem is that you are using CHICKEN 4 to compile code for CHICKEN
> 5.  There are some incompatibilities.  One of the is the import
> declarations for modules.
>
> Installing CHICKEN 5 from sources on Linux is not difficult and doesn't
> require much besied what is required to install eggs (the only extra
> requirement is GNU make).  In case you wnat to do that, here are the
> steps that should work on Debian:
>
>   $ wget http://code.call-cc.org/releases/5.1.0/chicken-5.1.0.tar.gz
>   $ tar xzvf chicken-5.1.0.tar.gz
>   $ cd chicken-5.1.0
>   $ make PLATFORM=linux PREFIX=$HOME/local/chicken-5.1.0 install
>
> That will install CHICKEN 5.1.0 under $HOME/local/chicken-5.1.0.
>
> To have the CHICKEN 5 tools in your environment's PATH, you can do
> something like
>
>   $ export PATH=$PATH:$HOME/local/chicken-5.1.0/bin
>
> assuming you are using Bash.

Actually,

  $ export PATH=$HOME/local/chicken-5.1.0/bin:$PATH

if you want the CHICKEN 5 tools to take precedence over the CHICKEN 4
tools from the Debian package.  Or you can simply remove the Debian
package.

> On the CHICKEN 4 -> CHICKEN 5 migration, you might find
> http://wiki.call-cc.org/porting-c4-to-c5 helpful.
>
> If you have questions, don't hesitate to ask them here or in the IRC
> channel (Freenode, #chicken).

All the best.
Mario
-- 
http://parenteses.org/mario

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian 9 amd64 chicken-bin 4.11.0-1 cannot import from undefined module process-context

2019-09-17 Thread Mario Domenech Goulart
Hi David,

On Tue, 17 Sep 2019 22:22:26 -0700 David Christensen 
 wrote:

> chicken-users:
>
> I am Chicken noob with (e-mail addresses redacted):

Welcome!

> 2019-09-17 22:06:21 root@tinkywinky ~
> # cat /etc/debian_version
> 9.11
>
> 2019-09-17 22:10:03 root@tinkywinky ~
> # uname -a
> Linux tinkywinky 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02)
> x86_64 GNU/Linux
>
> 2019-09-17 22:15:35 root@tinkywinky ~
> # dpkg-query -s chicken-bin
> Package: chicken-bin
> Status: install ok installed
> Priority: optional
> Section: lisp
> Installed-Size: 5765
> Maintainer: Davide Puricelli (evo) 
> Architecture: amd64
> Source: chicken
> Version: 4.11.0-1
> Replaces: chicken, chicken-dev
> Depends: libc6 (>= 2.4), libchicken8 (>= 4.11.0), libchicken-dev (=
> 4.11.0-1)
> Conflicts: chicken, chicken-dev
> Description: Practical and portable Scheme system - compiler
>  CHICKEN is a Scheme compiler which compiles a subset of R5RS into C.
>  It uses the ideas presented in Baker's paper "Cheney on the MTA", and
>  has a small core and is easily extendable.
>  .
>  This package contains the compiler.
> Homepage: http://www.call-cc.org
>
>
> I am attempting to follow:
>
> http://wiki.call-cc.org/man/5/Getting%20started
>
>
> I have created a Scheme program source file:
>
> 2019-09-17 22:07:12 dpchrist@tinkywinky ~/sandbox/chicken-scheme
> $ cat palindrome.scm
> ;;; http://wiki.call-cc.org/man/5/Getting%20started
> ;;; downloaded 2019-09-17
>
> (import (chicken process-context)) ; for "command-line-arguments"
>
> (define (palindrome? x)
>   (define (check left right)
> (if (>= left right)
> #t
> (and (char=? (string-ref x left) (string-ref x right))
>  (check (add1 left) (sub1 right)
>   (check 0 (sub1 (string-length x
>
> (let ((arg (car (command-line-arguments
>   (display
>(string-append arg
>   (if (palindrome? arg)
>   " is a palindrome\n"
>   " isn't a palindrome\n"
>
>
> When I try to compile:
>
> 2019-09-17 22:07:15 dpchrist@tinkywinky ~/sandbox/chicken-scheme
> $ csc -o palindrome palindrome.scm
>
> Syntax error (import): cannot import from undefined module
>
>   process-context
>
>   Expansion history:
>
> (##core#begin (import (chicken process-context)))
> (import (chicken process-context))<--
>
> Error: shell command terminated with non-zero exit status 17920:
> '/usr/bin/chicken' 'palindrome.scm' -output-file 'palindrome.c'
>
>
> I appear to be missing the module "chicken process-context", which is
> supposed to be included (?):
>
> http://wiki.call-cc.org/man/5/Included%20modules
>
>
> Suggestions?

The problem is that you are using CHICKEN 4 to compile code for CHICKEN
5.  There are some incompatibilities.  One of the is the import
declarations for modules.

Installing CHICKEN 5 from sources on Linux is not difficult and doesn't
require much besied what is required to install eggs (the only extra
requirement is GNU make).  In case you wnat to do that, here are the
steps that should work on Debian:

  $ wget http://code.call-cc.org/releases/5.1.0/chicken-5.1.0.tar.gz
  $ tar xzvf chicken-5.1.0.tar.gz
  $ cd chicken-5.1.0
  $ make PLATFORM=linux PREFIX=$HOME/local/chicken-5.1.0 install

That will install CHICKEN 5.1.0 under $HOME/local/chicken-5.1.0.

To have the CHICKEN 5 tools in your environment's PATH, you can do
something like

  $ export PATH=$PATH:$HOME/local/chicken-5.1.0/bin

assuming you are using Bash.

On the CHICKEN 4 -> CHICKEN 5 migration, you might find
http://wiki.call-cc.org/porting-c4-to-c5 helpful.

If you have questions, don't hesitate to ask them here or in the IRC
channel (Freenode, #chicken).

All the best.
Mario
-- 
http://parenteses.org/mario

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian 9 amd64 chicken-bin 4.11.0-1 cannot import from undefined module process-context

2019-09-17 Thread Vasilij Schneidermann
Hey David,

You're using version 4 of the compiler, but version 5 of the documentation. You 
can tell the latter by looking for the number in the URL.

Vasilij___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Debian 9 amd64 chicken-bin 4.11.0-1 cannot import from undefined module process-context

2019-09-17 Thread David Christensen

chicken-users:

I am Chicken noob with (e-mail addresses redacted):

2019-09-17 22:06:21 root@tinkywinky ~
# cat /etc/debian_version
9.11

2019-09-17 22:10:03 root@tinkywinky ~
# uname -a
Linux tinkywinky 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02) 
x86_64 GNU/Linux


2019-09-17 22:15:35 root@tinkywinky ~
# dpkg-query -s chicken-bin
Package: chicken-bin
Status: install ok installed
Priority: optional
Section: lisp
Installed-Size: 5765
Maintainer: Davide Puricelli (evo) 
Architecture: amd64
Source: chicken
Version: 4.11.0-1
Replaces: chicken, chicken-dev
Depends: libc6 (>= 2.4), libchicken8 (>= 4.11.0), libchicken-dev (= 
4.11.0-1)

Conflicts: chicken, chicken-dev
Description: Practical and portable Scheme system - compiler
 CHICKEN is a Scheme compiler which compiles a subset of R5RS into C.
 It uses the ideas presented in Baker's paper "Cheney on the MTA", and
 has a small core and is easily extendable.
 .
 This package contains the compiler.
Homepage: http://www.call-cc.org


I am attempting to follow:

http://wiki.call-cc.org/man/5/Getting%20started


I have created a Scheme program source file:

2019-09-17 22:07:12 dpchrist@tinkywinky ~/sandbox/chicken-scheme
$ cat palindrome.scm
;;; http://wiki.call-cc.org/man/5/Getting%20started
;;; downloaded 2019-09-17

(import (chicken process-context)) ; for "command-line-arguments"

(define (palindrome? x)
  (define (check left right)
(if (>= left right)
#t
(and (char=? (string-ref x left) (string-ref x right))
 (check (add1 left) (sub1 right)
  (check 0 (sub1 (string-length x

(let ((arg (car (command-line-arguments
  (display
   (string-append arg
  (if (palindrome? arg)
  " is a palindrome\n"
  " isn't a palindrome\n"


When I try to compile:

2019-09-17 22:07:15 dpchrist@tinkywinky ~/sandbox/chicken-scheme
$ csc -o palindrome palindrome.scm

Syntax error (import): cannot import from undefined module

process-context

Expansion history:

(##core#begin (import (chicken process-context)))
(import (chicken process-context))<--

Error: shell command terminated with non-zero exit status 17920: 
'/usr/bin/chicken' 'palindrome.scm' -output-file 'palindrome.c'



I appear to be missing the module "chicken process-context", which is 
supposed to be included (?):


http://wiki.call-cc.org/man/5/Included%20modules


Suggestions?


David

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian chicken 4.7.0.6 : tests/finalizer-error-test.scm fails

2012-09-13 Thread Jim Ursetto
Claude,
I'm guessing you didn't install chicken first prior to running the tests.
The finalizer error only occurs with older chickens.  I can't reproduce
the problem with

  make PLATFORM=blah PREFIX=$PWD/tmp all install check

On Sep 13, 2012, at 8:40 AM, Claude Marinier wrote:

 IBM ThinkCenter, Debian Squeeze (updated regularly)
 gcc (Debian 4.4.5-8) 4.4.5
 chicken 4.7.0.6
 
 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 
 10 9 8 7 6 5 4 3 2 1 0
 Error: unbound variable: i
 
 Call history:
 
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  
 finalizer-error-test.scm:9: print*  --
 make[1]: *** [check] Error 70
 make[1]: Leaving directory `/usr/local/src/chicken-4.7.0.6'
 make: *** [check] Error 2
 
 -- 
 Claude
 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/chicken-users


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] debian package

2010-02-14 Thread F. Wittenberger
Hi,

find attached a diff against git, which successfully builds .debs for
ubuntu (chicken version 4.3.5).

/Jörg
diff --git a/debian/changelog b/debian/changelog
index 28b97b5..da00ad4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+chicken (4.3.5-0.1) unstable; urgency=low
+
+  * New version
+
+ -- Joerg F. Wittenberger joerg.wittenber...@softeyes.net  Thu, 13 Feb 2009 14:08:00 +0200
+
 chicken (3.2.0-0.2) unstable; urgency=low
 
   * Added directory information to texi documentation file.
diff --git a/debian/chicken-bin.install b/debian/chicken-bin.install
index 06828da..a2845c2 100644
--- a/debian/chicken-bin.install
+++ b/debian/chicken-bin.install
@@ -1,3 +1,4 @@
 usr/bin
 usr/share/chicken/*.scm
 usr/share/chicken/*.exports
+var/lib/chicken/3/*.so
diff --git a/debian/chicken-bin.manpages b/debian/chicken-bin.manpages
index 157bea0..82996d9 100644
--- a/debian/chicken-bin.manpages
+++ b/debian/chicken-bin.manpages
@@ -1,6 +1,5 @@
 csc.1
 csi.1
 chicken.1
-chicken-setup.1
 chicken-profile.1
 chicken-bug.1
diff --git a/debian/libchicken3.install b/debian/libchicken3.install
index 8f3aac4..5bdd0c5 100644
--- a/debian/libchicken3.install
+++ b/debian/libchicken3.install
@@ -1 +1 @@
-usr/lib/lib*.so.3
+usr/lib/lib*.so.5
diff --git a/debian/rules b/debian/rules
old mode 100644
new mode 100755
index ca04c72..07e6a58
--- a/debian/rules
+++ b/debian/rules
@@ -66,7 +66,7 @@ binary-common:
 # The asterisk in chicken.info* is necessary, because Debian makeinfo
 # is very different from the standard makeinfo, and it is incredibly
 # difficult to convince it to produce standalone Texinfo files. 
-	dh_installinfo chicken.info*
+#	dh_installinfo chicken.info*
 	dh_installchangelogs ChangeLog.*
 	dh_install --sourcedir=debian/tmp
 	dh_link
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian packages for some eggs now available

2008-02-18 Thread Harri Haataja
On 13/02/2008, Ivan Raikov [EMAIL PROTECTED] wrote:
   Well, the Debian egg packages can be easily converted to RPM by the
 alien program, but there might be slight differences in how each RPM
 distribution does its library version numbering. E.g. the estraier egg
 depends on libestraier8 package in Debian, but that could be named
 something completely different in RedHat, Suse and so on. The main
 Chicken packages and the eggs that do not have dependencies external
 to Chicken can be easily converted to and installed as RPMs, though.


It's been a while since I was last involved with rpm, but even then it
was certainly worth it making different spec files (and/or taking care
you don't use the wrong ones). It's not just the dependencies and
paths (which obviously matter) but there's also different sets of spec
macros and other things. They aren't really hard to write, though.

-- 
I appear to be temporarily using gmail's horrible interface. I
apologise for any failure in my part in trying to make it do the right
thing with post formatting.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian packages for some eggs now available

2008-02-18 Thread Ivan Raikov

  Well, my experience with RPM is also a bit dated, and it was limited
to translating custom Debian kernel packages to RedHat and Mandrake
RPMs. In my case, it worked well because all three distributions used
the same script to update the kernel image installation, and of course
the kernel has no library dependencies, other than modutils, so the
generated RPMs seemed to install and work fine. I did this also in
part because the RPM distros did not have an equivalent of Debian
kernel-package scripts, which allow you to add your own patches to the
Debian kernel and create kernel packages out of that. 

  Chicken also has no dependencies other than libc, so I am guessing
such a conversion would be relatively uncomplicated. I agree that the
proper way to do this would be to write an RPM .spec file, but I don't
use RPM distros, so I have little motivation. If somebody writes the
.spec file, I will be happy to install RedHat in a virtual image and
test the RPMs, though.

   -Ivan


Harri Haataja [EMAIL PROTECTED] writes:



 It's been a while since I was last involved with rpm, but even then it
 was certainly worth it making different spec files (and/or taking care
 you don't use the wrong ones). It's not just the dependencies and
 paths (which obviously matter) but there's also different sets of spec
 macros and other things. They aren't really hard to write, though.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian packages for some eggs now available

2008-02-13 Thread Ivan Raikov

  Well, the Debian egg packages can be easily converted to RPM by the
alien program, but there might be slight differences in how each RPM
distribution does its library version numbering. E.g. the estraier egg
depends on libestraier8 package in Debian, but that could be named
something completely different in RedHat, Suse and so on. The main
Chicken packages and the eggs that do not have dependencies external
to Chicken can be easily converted to and installed as RPMs, though.

-Ivan


Leonardo Valeri Manera [EMAIL PROTECTED] writes:


 Nice work.

 I'm nearly ready to start throwing egg gentoo ebuilds at people,
 waiting on the final word on the install location that we're gonna
 use...

 If someone does something like your script for rpms, we'll have all
 most main package types covered.

 Bow to the chicken! \o/

 Leo


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian packages for some eggs now available

2008-02-12 Thread Leonardo Valeri Manera
On 13/02/2008, Ivan Raikov [EMAIL PROTECTED] wrote:

 Hi all,

I have debianized a number of eggs and have uploaded the
 resulting i386 binary packages to the Debian repository on
 chicken.wiki.br. Information on how to access that repository is here:

 http://chicken.wiki.br/Debian packages

   The debianized eggs are mostly the prerequisites to svnwiki, plus a
 few others that I use regularly. (The full list is at
 http://chicken.wiki.br/debian-eggs) If you need Debian packages for
 any egg, just let me know. Next, I will be working on packaging
 ezxdisp and svnwiki itself.

   I have also written a script that will almost automatically build
 Debian packages for all eggs that have a debian subdirectory in the
 SVN repository. I say almost automatically, because not all eggs have
 their documentation in the repository, so you will have to manually
 copy some HTML documentation from the Chicken website to the directory
 tree from which you are building. The script is called dpkg-eggs.scm
 and is located in the scripts subdirectory of the main Chicken SVN
 tree.

-Ivan

Nice work.

I'm nearly ready to start throwing egg gentoo ebuilds at people,
waiting on the final word on the install location that we're gonna
use...

If someone does something like your script for rpms, we'll have all
most main package types covered.

Bow to the chicken! \o/

Leo


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Debian packages for some eggs now available

2008-02-12 Thread Ivan Raikov

Hi all,

   I have debianized a number of eggs and have uploaded the
resulting i386 binary packages to the Debian repository on
chicken.wiki.br. Information on how to access that repository is here:

http://chicken.wiki.br/Debian packages

  The debianized eggs are mostly the prerequisites to svnwiki, plus a
few others that I use regularly. (The full list is at
http://chicken.wiki.br/debian-eggs) If you need Debian packages for
any egg, just let me know. Next, I will be working on packaging
ezxdisp and svnwiki itself.

  I have also written a script that will almost automatically build
Debian packages for all eggs that have a debian subdirectory in the
SVN repository. I say almost automatically, because not all eggs have
their documentation in the repository, so you will have to manually
copy some HTML documentation from the Chicken website to the directory
tree from which you are building. The script is called dpkg-eggs.scm
and is located in the scripts subdirectory of the main Chicken SVN
tree. 

   -Ivan


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian packages for Chicken 3.0.0 available now

2008-02-09 Thread Ivan Raikov

  The Debian repository on chicken.wiki.br now includes Chicken
packages for the Debian armel architecture (ARM EABI v4). Thanks to
Matthew Welland, who built and tested those packages.  

   -Ivan


Ivan Raikov [EMAIL PROTECTED] writes:

 Hi all,

I have compiled Debian packages for Chicken 3.0.0 on Intel
 architectures. Instructions on how to install them are here:

 http://chicken.wiki.br/Debian%20packages

 Let me know if you have any problems or suggestions.



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Debian packages for Chicken 3.0.0 available now

2008-02-06 Thread Ivan Raikov

Hi all,

   I have compiled Debian packages for Chicken 3.0.0 on Intel
architectures. Instructions on how to install them are here:

http://chicken.wiki.br/Debian%20packages

Let me know if you have any problems or suggestions.

   -Ivan




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian packages for Chicken 3.0.0 available now

2008-02-06 Thread Matthew Welland
Thanks for doing this!

BTW, if you publish directions on how to make the .deb's I'll make attempt 
to make them for ARM (targeting OS2008). If anyone else is doing this let 
me know.

Matt
--

On Wednesday 06 February 2008 07:42:58 am Ivan Raikov wrote:
 Hi all,

I have compiled Debian packages for Chicken 3.0.0 on Intel
 architectures. Instructions on how to install them are here:

 http://chicken.wiki.br/Debian%20packages

 Let me know if you have any problems or suggestions.

-Ivan




 ___
 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] Debian slander?

2007-12-19 Thread Robin Lee Powell

http://packages.debian.org/sid/chicken-bin

It certainly seems production quality and decently performant to me;
does the Chicken community still agree with the statements there?
If not, I'll endeavour to get it changed.

-Robin

-- 
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian slander?

2007-12-19 Thread Mario Domenech Goulart
Hi Robin,

On Wed, 19 Dec 2007 11:24:10 -0800 Robin Lee Powell [EMAIL PROTECTED] wrote:

 http://packages.debian.org/sid/chicken-bin
 
 It certainly seems production quality and decently performant to me;
 does the Chicken community still agree with the statements there?
 If not, I'll endeavour to get it changed.

I don't agree and would like to see it changed.

Best wishes,
Mario


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian slander?

2007-12-19 Thread Peter Busser
Hi!

 It certainly seems production quality and decently performant to me;
 does the Chicken community still agree with the statements there?
 If not, I'll endeavour to get it changed.

BTW, don't forget that Debian is ported to 11 architectures. It may run
fine on i386. But does Chicken run fine on all those architectures?

It's too bad though that the Chicken version in Sid is still 2.5.

Groetjes,
Peter.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian slander?

2007-12-19 Thread Mario Domenech Goulart
Hi Peter,

On Wed, 19 Dec 2007 20:49:26 +0100 Peter Busser [EMAIL PROTECTED] wrote:

  It certainly seems production quality and decently performant to me;
  does the Chicken community still agree with the statements there?
  If not, I'll endeavour to get it changed.
 
 BTW, don't forget that Debian is ported to 11 architectures. It may run
 fine on i386. But does Chicken run fine on all those architectures?

We'd be ver happy to hear feedback from people testing Chicken on 11
architectures.  Currently what we know for 2.7xx is documented at
http://chicken.wiki.br/portability


 It's too bad though that the Chicken version in Sid is still 2.5.

Agreed.


Best wishes,
Mario


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian slander?

2007-12-19 Thread Alex Sandro Queiroz e Silva

Hallo,

Mario Domenech Goulart escreveu:

Hi Peter,

On Wed, 19 Dec 2007 20:49:26 +0100 Peter Busser [EMAIL PROTECTED] wrote:

  

It's too bad though that the Chicken version in Sid is still 2.5.



Agreed.
  


I emailed the maintainer once offering help for packaging newer 
Chickens, but got no answer whatsoever.


Cheers,
-alex



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian Package

2007-04-23 Thread Alex Queiroz

Hallo,

On 4/22/07, Alex Queiroz [EMAIL PROTECTED] wrote:


 Debian packages for the AMD64 architecture, version 2.6, are in:

http://www.ventonegro.org/chicken/

Their version is 0.1 to allow a smooth upgrade when the official ones hit sid.



Now with i386 packages, too.

--
-alex
http://www.ventonegro.org/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian Package

2007-04-23 Thread felix winkelmann

Thanks, Alex and Michael!

I have added links to the packages at

http://chicken.wiki.br/debian packages


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian Package

2007-04-22 Thread Alex Queiroz

Hallo,

On 4/22/07, Michael McDermott [EMAIL PROTECTED] wrote:

Here is the release 2.6 package I created for my own system.



Debian packages for the AMD64 architecture, version 2.6, are in:

http://www.ventonegro.org/chicken/

Their version is 0.1 to allow a smooth upgrade when the official ones hit sid.

Cheers,
--
-alex
http://www.ventonegro.org/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Debian package

2007-04-21 Thread Alex Queiroz

Hallo,

Does anybody know if 2.6 is close to hitting Debian unstable?

Cheers,
--
-alex
http://www.ventonegro.org/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian package

2007-04-21 Thread Ivan Raikov

  This is probably a question for Davide Puricelli [EMAIL PROTECTED]
who is the Debian maintainer of the Chicken package. There is
apparently a wishlist item filed for an update to 2.6:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418747


Alex Queiroz [EMAIL PROTECTED] writes:

 Hallo,

 Does anybody know if 2.6 is close to hitting Debian unstable?

 Cheers,




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Debian package

2007-04-21 Thread Alex Queiroz

Hallo,

On 4/22/07, Ivan Raikov [EMAIL PROTECTED] wrote:


  This is probably a question for Davide Puricelli [EMAIL PROTECTED]
who is the Debian maintainer of the Chicken package. There is
apparently a wishlist item filed for an update to 2.6:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418747



Hmm... I could build a package myself with the attached diff. Thanks!

Cheers,
--
-alex
http://www.ventonegro.org/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users