Re: Chicken-scheme compiler issue.

Mario Domenech Goulart via Chicken-users <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <[email protected]>
Hi,

On Sat, 2 Aug 2025 23:17:49 +0300 Епишин Василий Ильич via Chicken-users <[email protected]> wrote:

> Hello! I'm a new chicken-scheme user.
>
> Toolchain info:
> ```
> $ csi -version
> CHICKEN
> (c) 2008-2021, The CHICKEN Team
> (c) 2000-2007, Felix L. Winkelmann
> Version 5.3.0 (rev e31bbee5)
> linux-unix-gnu-x86-64 [ 64bit dload ptables ]
>
> gcc version 14.0.1 20240411 (Red Hat 14.0.1-0) (GCC)
>
> $ uname -a
> Linux fedora 6.9.12-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jul 27
> 15:56:15 UTC 2024 x86_64 GNU/Linux
> ```
>
> `echo.scm` program:
> ```
> #!/usr/bin/csi -ss
> (import (chicken process-context))
> (define (main args)
>         (map (lambda (s) (display s) (display " ")) args)
>         (newline)
> )
> ```
> Perfect works as script!
>
> But it doesn't work after compiling:
> ```
> $ ./echo.scm arg1 arg2
> arg1 arg2
> $ csc -postlude "(main (command-line-arguments))" echo.scm
> $ ./echo arg1 arg2
> $
> $ echo $?
> 0
> ```

That's a bug in CHICKEN 5.3.0 that has been fixed in CHICKEN 5.4.0 [0].
I'd suggest updating your installation to the latest version (5.4.0).

[0] http://code.call-cc.org/githtml/chicken-core/chicken-5/commits/3e48666ed3d0bca1843370d1c745bfc1e3a6c54e.html

All the best.
Mario
-- 
https://parenteses.org/mario
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.