Welcome to the CHICKEN Scheme pasting service

custom-build issues added by klm` on Sun Nov 24 11:51:30 2019

klm@kth ~/p/c/e/l/1.0.0 ➤ cat build-lmdb                                                                            11s
#!/bin/sh -e
echo "$CHICKEN_CSC" -O2 -d1 -C -pthread -C "$CFLAGS" -L -pthread -L "$LDFLAGS" mdb.impl.c midl.impl.c "$@"
"$CHICKEN_CSC" -O2 -d1 -C -pthread -C "$CFLAGS" -L -pthread -L "$LDFLAGS" mdb.impl.c midl.impl.c "$@"



klm@kth ~/p/c/e/l/1.0.0 ➤ chicken-install -v
checking lmdb ...
checking platform for `lmdb'
checking dependencies for `lmdb'
install order:
("lmdb")
building lmdb
running script /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.build.sh
executing: "sh /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.build.sh"
   /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/build-lmdb -host -D compiling-extension -J -s -regenerate-import-libraries -setup-mode -I /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -C -I/home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -O2 -d1 lmdb.scm -o /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.so
/usr/bin/chicken-csc -O2 -d1 -C -pthread -C  -L -pthread -L  mdb.impl.c midl.impl.c -host -D compiling-extension -J -s -regenerate-import-libraries -setup-mode -I /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -C -I/home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -O2 -d1 lmdb.scm -o /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.so
   /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/build-lmdb -regenerate-import-libraries -setup-mode -static -I /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -emit-link-file /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.link -host -D compiling-extension -c -unit lmdb -D compiling-static-extension -C -I/home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -O2 -d1 lmdb.scm -o /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.static.o
/usr/bin/chicken-csc -O2 -d1 -C -pthread -C  -L -pthread -L  mdb.impl.c midl.impl.c -regenerate-import-libraries -setup-mode -static -I /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -emit-link-file /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.link -host -D compiling-extension -c -unit lmdb -D compiling-static-extension -C -I/home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -O2 -d1 lmdb.scm -o /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.static.o
   /usr/bin/chicken-csc -setup-mode -s -host -I /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -C -I/home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -O2 -d0 lmdb.import.scm -o /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.import.so
  installing lmdb
running script /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.install.sh
executing: "sh /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.install.sh"
install: cannot create regular file '/usr/lib/chicken/11/lmdb.o': Permission denied

Error: shell command terminated with nonzero exit code
256
"sh /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.install.sh"



=================

we have this line:

/usr/bin/chicken-csc -O2 -d1 -C -pthread -C  -L -pthread -L  mdb.impl.c midl.impl.c -regenerate-import-libraries -setup-mode -static -I /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -emit-link-file /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.link -host -D compiling-extension -c -unit lmdb -D compiling-static-extension -C -I/home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0 -O2 -d1 lmdb.scm -o /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.static.o


taking away the non-important arguments:

/usr/bin/chicken-csc mdb.impl.c midl.impl.c -static -c -unit lmdb lmdb.scm -o /home/klm/prj/chicken/eggs-5-latest/lmdb/1.0.0/lmdb.static.o


now we have a situation that would trigger an error after patch 90b57243 (https://bugs.call-cc.org/ticket/1655) is applied, right?

this works now because even though the -o is ignored, it happens to produce the right output files anyhow

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which one-argument R5RS procedure returns 2 when given `'(1 2 3)' as input?
Visually impaired? Let me spell it for you (wav file) download WAV