[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #1287: csc -deploy fails with modules
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #1287: csc -deploy fails with modules |
Date: |
Mon, 23 May 2016 16:54:57 -0000 |
#1287: csc -deploy fails with modules
---------------------+---------------------
Reporter: nxg | Owner:
Type: defect | Status: new
Priority: major | Milestone: someday
Component: unknown | Version: 4.10.x
Keywords: |
---------------------+---------------------
`csc -deploy` fails when using modules.
Consider the following:
{{{
% cat hello.scm
(module hello (hello)
(import scheme)
(define (hello)
(display "Hello, world")
(newline)))
% csc -version
(c) 2008-2015, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.10.0 (rev b259631)
macosx-unix-clang-x86-64 [ 64bit manyargs dload ptables ]
compiled 2015-08-04 on yves.more-magic.net (Linux)
Enter `chicken -help' for information on how to use the compiler,
or try `csc' for a more convenient interface.
Run `csi' to start the interactive interpreter.
% csc -emit-all-import-libraries -shared hello.scm
% cat main.scm
(use hello)
(hello)
% csc -deploy main.scm
% main/main -:d
[debug] application startup...
[debug] heap resized to 1048576 bytes
[debug] stack bottom is 0x7fff5865a820.
[debug] entering toplevel toplevel...
[debug] entering toplevel library_toplevel...
[debug] entering toplevel build_2dversion_toplevel...
[debug] entering toplevel eval_toplevel...
[debug] entering toplevel expand_toplevel...
[debug] entering toplevel modules_toplevel...
[debug] resizing mutation-stack from 8k to 16k ...
[debug] entering toplevel chicken_2dsyntax_toplevel...
; loading ./hello.so ...
[debug] loading compiled module `./hello.so' (handle is
0x00007fc93150daa0)
[panic] nursery is too small - try higher setting using the `-:s' option -
execution terminated
% otool -L main/main
main/main:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(compatibility version 150.0.0, current version 1153.18.0)
@executable_path/libchicken.dylib (compatibility version 1.0.0,
current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1213.0.0)
}}}
Expected behaviour:
Running `main/main` would type "Hello, world"
Actual behaviour:
Running `main/main` produces a panic.
Notes:
This is on OS X 10.10
The file `hello.scm` is a simplified version of the module in page
'Modules' of the manual; the use of the `-deploy` option is as suggested
on the page http://wiki.call-cc.org/man/4/Deployment
Copying `hello.so` into the directory `main/` (worth a try...) produces
the same result.
Guessing the following doesn't work either:
{{{
% main/main -:s100000000
[panic] nursery is too small - try higher setting using the `-:s' option -
execution terminated
%
}}}
--
Ticket URL: <http://bugs.call-cc.org/ticket/1287>
CHICKEN Scheme <http://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #1287: csc -deploy fails with modules,
Chicken Trac <=
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/24
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/26
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/26
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/26
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/27
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/27
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/27
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/27
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/27
- Re: [Chicken-janitors] #1287: csc -deploy fails with modules, Chicken Trac, 2016/05/27