Welcome to the CHICKEN Scheme pasting service

foo build added by mario-goulart on Wed Mar 4 20:06:36 2020

$ cat foo.egg
((synopsis "foo")
 (author "foo")
 (license "foo")
 (category foo)
 (components
  (extension foo-lib)
  (program foo-exec
           (component-dependencies foo-lib))))


$ cat foo-exec.scm
(module foo-exec ()

(import foo-lib)

(foo)

)


$ cat foo-lib.scm
(module foo-lib (foo)

(import scheme)

(define (foo)
  (display 'foo))

)


$ ~/local/chicken-5.2.0/bin/chicken-install -n
building foo
   /home/mario/local/chicken-5.2.0/bin/csc -host -D compiling-extension -J -s -regenerate-import-libraries -setup-mode -I /home/mario/tmp/foo -C -I/home/mario/tmp/foo -O2 -d1 foo-lib.scm -o /home/mario/tmp/foo/foo-lib.so
   /home/mario/local/chicken-5.2.0/bin/csc -regenerate-import-libraries -M -setup-mode -static -I /home/mario/tmp/foo -emit-link-file /home/mario/tmp/foo/foo-lib.link -host -D compiling-extension -c -unit foo-lib -D compiling-static-extension -C -I/home/mario/tmp/foo -O2 -d1 foo-lib.scm -o /home/mario/tmp/foo/foo-lib.static.o
   /home/mario/local/chicken-5.2.0/bin/csc -setup-mode -s -host -I /home/mario/tmp/foo -C -I/home/mario/tmp/foo -O2 -d0 foo-lib.import.scm -o /home/mario/tmp/foo/foo-lib.import.so


$ cat foo.build.sh
#!/bin/sh

set -e
PATH='/home/mario/local/chicken-5.2.0/bin':$PATH
export CHICKEN_CC='gcc'
export CHICKEN_CXX='g++'
export CHICKEN_CSC='/home/mario/local/chicken-5.2.0/bin/csc'
export CHICKEN_CSI='/home/mario/local/chicken-5.2.0/bin/csi'
cd '/home/mario/tmp/foo'

'/home/mario/local/chicken-5.2.0/bin/chicken-do' '/home/mario/tmp/foo/foo-lib.so' '/home/mario/tmp/foo/foo-lib.import.scm' : 'foo-lib.scm' '/home/mario/tmp/foo/foo.egg'    : '/home/mario/local/chicken-5.2.0/bin/csc' -host -D compiling-extension -J -s -regenerate-import-libraries -setup-mode -I /home/mario/tmp/foo -C -I/home/mario/tmp/foo '-O2' '-d1' 'foo-lib.scm'  -o '/home/mario/tmp/foo/foo-lib.so'

'/home/mario/local/chicken-5.2.0/bin/chicken-do' '/home/mario/tmp/foo/foo-lib.static.o' '/home/mario/tmp/foo/foo-lib.link' : 'foo-lib.scm' '/home/mario/tmp/foo/foo.egg'   : '/home/mario/local/chicken-5.2.0/bin/csc' -regenerate-import-libraries -M -setup-mode -static -I /home/mario/tmp/foo -emit-link-file '/home/mario/tmp/foo/foo-lib.link' -host -D compiling-extension -c -unit foo-lib -D compiling-static-extension -C -I/home/mario/tmp/foo '-O2' '-d1' 'foo-lib.scm' -o '/home/mario/tmp/foo/foo-lib.static.o'

'/home/mario/local/chicken-5.2.0/bin/chicken-do' '/home/mario/tmp/foo/foo-lib.import.so' : 'foo-lib.import.scm' : '/home/mario/local/chicken-5.2.0/bin/csc' -setup-mode -s -host -I /home/mario/tmp/foo -C -I/home/mario/tmp/foo '-O2' '-d0' 'foo-lib.import.scm' -o '/home/mario/tmp/foo/foo-lib.import.so'

'/home/mario/local/chicken-5.2.0/bin/chicken-do' '/home/mario/tmp/foo/foo-exec' : 'foo-exec.scm' '/home/mario/tmp/foo/foo.egg'    : '/home/mario/local/chicken-5.2.0/bin/csc' -setup-mode -host -I /home/mario/tmp/foo -C -I/home/mario/tmp/foo '-O2' '-d1' 'foo-exec.scm'  -o '/home/mario/tmp/foo/foo-exec'

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the result of `(apply + (list -3 4 2))'?
Visually impaired? Let me spell it for you (wav file) download WAV