Re: [Chicken-users] Building Chicken on OS X Lion

2012-09-13 Thread Hans Nowak

On 9/13/12 1:18 PM, Jim Ursetto wrote:

Hans,
I've verified that chicken 4.7.0.6 builds, installs and tests out correctly on 
Lion
with Xcode 4.4.1.  It works fine with either gcc or clang.  Here is my test 
line:

make PLATFORM=macosx PREFIX=$PWD/inst C_COMPILER=clang all install check

 From your paste, it looks like you're not providing a PREFIX.  Can you try it 
with
a prefix, even a temporary one, such as $PWD/inst or ~/local/chicken?  Sometimes
we get strange hangs on install when you have an older (quite a bit older) 
version of
chicken already installed in the PREFIX, or hanging out somewhere weird on your
system where it's in the dynamic linker path and interfering with the install.

So I would try a temporary prefix and also, try to hunt down old
versions of chicken shared libraries hanging out on your disk.

I attached the version output of xcodebuild, clang, gcc and ld I used.


Hi Jim,

Thanks for your reply. It turns out that with a prefix, everything works 
correctly. It was only if I tried to install to the default location 
(/usr/local/) that it would hang. I think this was indeed because of a 
previous (botched) installation, because for some reason the modules.db 
file was read-only. Fixing the permissions on that file seems to have 
fixed the problem.


--
Hans Nowak


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


Re: [Chicken-users] nested definitions

2012-09-13 Thread Andy Coolware
> Indeed, because this is a nonstandard Chicken extension.
> This is documented in the manual, here:
> http://wiki.call-cc.org/man/4/Extensions%20to%20the%20standard#curried-definitions
>


Hi,

okay - I got it. But it begs two questions -

1)  SICP book already uses that "extension" almost 30 years ago, so
what prevented it to become a standard over that rather longer period
of time. Does it mean that Scheme language predates SICP book somehow?
2) What is the practical application and a canonical example for how to use it?


Best,
Andy

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


Re: [Chicken-users] Building Chicken on OS X Lion

2012-09-13 Thread Jim Ursetto
Hans,
I've verified that chicken 4.7.0.6 builds, installs and tests out correctly on 
Lion
with Xcode 4.4.1.  It works fine with either gcc or clang.  Here is my test 
line:

make PLATFORM=macosx PREFIX=$PWD/inst C_COMPILER=clang all install check

From your paste, it looks like you're not providing a PREFIX.  Can you try it 
with
a prefix, even a temporary one, such as $PWD/inst or ~/local/chicken?  Sometimes
we get strange hangs on install when you have an older (quite a bit older) 
version of
chicken already installed in the PREFIX, or hanging out somewhere weird on your
system where it's in the dynamic linker path and interfering with the install.

So I would try a temporary prefix and also, try to hunt down old
versions of chicken shared libraries hanging out on your disk.

I attached the version output of xcodebuild, clang, gcc and ld I used.

Jim

Xcode 4.4.1
Build version 4F1003

Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix

Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure 
--disable-checking --enable-werror 
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++ 
--program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ 
--with-slibdir=/usr/lib --build=i686-apple-darwin11 
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local
 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 
--target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

@(#)PROGRAM:ld  PROJECT:ld64-133.3
configured to support archs: armv6 armv7 i386 x86_64
LTO support using: LLVM version 3.1svn, from Apple Clang 4.0 (build 421.0.60)

On Aug 31, 2012, at 7:31 AM, Hans Nowak wrote:

> Hi,
> 
> I am still having problems building/installing Chicken on OS X Lion, even 
> with the new version 4.7.0.6 and 4.8rc2.
> 
> Here is a paste of the output when I do make install; it hangs at "loading 
> import libraries".
> 
> http://paste.call-cc.org/paste?id=a7fd2260fb3540a24db2fbd703607a0555446589
> 
> I am probably doing something wrong, or have the wrong version of something 
> or another, but what?
> 
> Any tips welcome.
> 
> Thanks,
> 
> --
> Hans Nowak
> 
> 
> ___
> 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


Re: [Chicken-users] POSIX fork & srfi-18 interactions

2012-09-13 Thread Moritz Heidkamp
Andy Bennett  writes:
> Is this interaction between the posix egg and srfi-18 considered a bug?
> Is there anything that can be done about it?

I too am interested in this issue!

Moritz

___
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


Re: [Chicken-users] 4.8.0rc3 on Solaris : make fails [Was: Solaris: tests/runtests.sh and Makefile assume that /bin/sh is bash

2012-09-13 Thread Mario Domenech Goulart
Hi Claude,

On Thu, 13 Sep 2012 11:18:33 -0400 Claude Marinier  wrote:

> Here is the result of building 4.8.0rc3 on the Solaris/SPARC system.
>
> Solaris 10, SPARC
> gcc (GCC) 3.4.6
> /bin/sh is the Bourne shell
> /bin/bash is the Bourne again shell
>
>     ...
>     ./identify.sh: test: argument expected
>     make[1]: *** [identify-me] Error 1
>     make[1]: Leaving directory `/home/marinier/temp/chicken-4.8.0rc3'
>     make: *** [all] Error 2

Can you try the attached patch?

Best wishes.
Mario
-- 
http://parenteses.org/mario
diff --git a/identify.sh b/identify.sh
old mode 100644
new mode 100755
index bf8d69d..0d41da3
--- a/identify.sh
+++ b/identify.sh
@@ -28,13 +28,13 @@ if test -d "$1/.git"; then
 	"master") branchname="";;
 	"release") branchname="";;
 esac
-if test "${rev0}" \!= "${rev}"; then
+if test "x${rev0}" \!= "x${rev}"; then
 	echo ${rev} >buildid
 fi
-if test "${branchname0}" \!= "${branchname}"; then
+if test "x${branchname0}" \!= "x${branchname}"; then
 	echo ${branchname} >buildbranch
 fi
-if test "${tag0}" \!= "${tag}"; then
+if test "x${tag0}" \!= "x${tag}"; then
 	echo ${tag} >buildtag.h
 fi
 fi
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] 4.8.0rc3 on Solaris : make fails [Was: Solaris: tests/runtests.sh and Makefile assume that /bin/sh is bash

2012-09-13 Thread Claude Marinier
Here is the result of building 4.8.0rc3 on the Solaris/SPARC system.

Solaris 10, SPARC
gcc (GCC) 3.4.6
/bin/sh is the Bourne shell
/bin/bash is the Bourne again shell

...
./identify.sh: test: argument expected
make[1]: *** [identify-me] Error 1
make[1]: Leaving directory `/home/marinier/temp/chicken-4.8.0rc3'
make: *** [all] Error 2


On Thu, Sep 13, 2012 at 9:49 AM, Mario Domenech Goulart <
mario.goul...@gmail.com> wrote:

> Hi Claude,
>
> We are working on the next release (4.8.0).  We currently have a third
> release candidate.  We don't intend to release 4.7.0.7, unless some
> critical bug shows up in 4.7.0.6 and we have some hard-to-fix release
> blocker for 4.8.0.
>
> So, I think we should actually test
> http://code.call-cc.org/dev-snapshots/2012/08/31/chicken-4.8.0rc3.tar.gz
> instead of 4.7.0.6.
>
> Thanks for all your reports.
>
> Best wishes.
> Mario
>
> On Thu, 13 Sep 2012 09:37:11 -0400 Claude Marinier 
> wrote:
>
> > Solaris 10, recently patched, Sun Enterprise M5000 (SPARC)
> > gcc (GCC) 3.4.6
> > chicken 4.7.0.6
> >
> > # make PLATFORM=solaris PREFIX=/usr/local check
> > make -f ./Makefile.solaris CONFIG= check
> > make[1]: Entering directory `/usr/local/src/chicken-4.7.0.6'
> > cd tests; sh runtests.sh
> > runtests.sh: DYLD_LIBRARY_PATH=/usr/local/src/chicken-4.7.0.6/tests/..:
> is not
> > an identifier
> > make[1]: *** [check] Error 1
> > make[1]: Leaving directory `/usr/local/src/chicken-4.7.0.6'
> > make: *** [check] Error 2
> >
> > It looks like the script and the Makefile both assume that /bin/sh is
> bash.
> >
> > The runtest.sh script is invoked like this.
> >   cd tests; sh runtests.sh
> > It starts like this.
> >   #!/bin/sh
> >   # runtests.sh - run CHICKEN testsuite
> >
> > Perhaps the Makefile should set SH to bash and use it instead of a bare
> sh.
> >
> > P.S. It builds and installs correctly. It compiles and runs some small
> > programs.
>
marinier harfang-1:~/temp/chicken-4.8.0rc3 $ make PLATFORM=solaris 
PREFIX=/export/home/marinier/temp all install check
make -f ./Makefile.solaris CONFIG= all
make[1]: Entering directory `/home/marinier/temp/chicken-4.8.0rc3'
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
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_CXX" >>chicken-defaults.h
echo "# define C_INSTALL_CXX \"g++\"" >>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_RC_COMPILER" >>chicken-defaults.h
echo "# define C_INSTALL_RC_COMPILER \"\"" >>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_CFLAGS" >>chicken-defaults.h
echo "# define C_INSTALL_CFLAGS \"-fno-strict-aliasing -fwrapv 
-DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -fomit-frame-pointer\"" 
>>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_LDFLAGS" >>chicken-defaults.h
echo "# define C_INSTALL_LDFLAGS \" \"" >>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_PREFIX" >>chicken-defaults.h
echo "# define C_INSTALL_PREFIX \"/export/home/marinier/temp\"" 
>>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_SHARE_HOME" >>chicken-defaults.h
echo "# define C_INSTALL_SHARE_HOME 
\"/export/home/marinier/temp/share/chicken\"" >>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_BIN_HOME" >>chicken-defaults.h
echo "# define C_INSTALL_BIN_HOME \"/export/home/marinier/temp/bin\"" 
>>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_EGG_HOME" >>chicken-defaults.h
echo "# define C_INSTALL_EGG_HOME \"/export/home/marinier/temp/lib/chicken/6\"" 
>>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_LIB_HOME" >>chicken-defaults.h
echo "# define C_INSTALL_LIB_HOME \"/export/home/marinier/temp/lib\"" 
>>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_LIB_NAME" >>chicken-defaults.h
echo "# define C_INSTALL_LIB_NAME \"chicken\"" >>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_STATIC_LIB_HOME" >>chicken-defaults.h
echo "# define C_INSTALL_STATIC_LIB_HOME \"/export/home/marinier/temp/lib\"" 
>>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_INCLUDE_HOME" >>chicken-defaults.h
echo "# define C_INSTALL_INCLUDE_HOME 
\"/export/home/marinier/temp/include/chicken\"" >>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_MORE_LIBS" >>chicken-defaults.h
echo "# define C_INSTALL_MORE_LIBS \"-lsocket -lnsl -lm -ldl\"" 
>>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_INSTALL_MORE_STATIC_LIBS" >>chicken-defaults.h
echo "# define C_INSTALL_MORE_STATIC_LIBS \"-lsocket -lnsl -lm -ldl\"" 
>>chicken-defaults.h
echo "#endif" >>chicken-defaults.h
echo "#ifndef C_DEFAULT_TARGET_HEAP_SIZE" >>chicken-defaults.h
echo "# define C_DEFAULT_TARGE

Re: [Chicken-users] chicken-4.8.0rc3, check : invalid encoded literal format - execution terminated

2012-09-13 Thread Claude Marinier
My appologies. Installing first works.

On Thu, Sep 13, 2012 at 9:32 AM, Mario Domenech Goulart <
mario.goul...@gmail.com> wrote:

> Hi Claude,
>
> On Thu, 13 Sep 2012 08:56:58 -0400 Claude Marinier 
> wrote:
>
> > No, I did not install this version of chicken before doing the check but
> the
> > previous version of chicken is installed.
>
> "make check" requires building and installing Chicken.  Can you try
>
>   $ make PLATFORM=linux PREFIX=`pwd` all install check
>
> to see if it works?
>
>
> Best wishes.
> Mario
> --
> http://parenteses.org/mario
>
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Solaris: tests/runtests.sh and Makefile assume that /bin/sh is bash

2012-09-13 Thread Mario Domenech Goulart
Hi Claude,

We are working on the next release (4.8.0).  We currently have a third
release candidate.  We don't intend to release 4.7.0.7, unless some
critical bug shows up in 4.7.0.6 and we have some hard-to-fix release
blocker for 4.8.0.

So, I think we should actually test
http://code.call-cc.org/dev-snapshots/2012/08/31/chicken-4.8.0rc3.tar.gz
instead of 4.7.0.6.

Thanks for all your reports.

Best wishes.
Mario

On Thu, 13 Sep 2012 09:37:11 -0400 Claude Marinier  wrote:

> Solaris 10, recently patched, Sun Enterprise M5000 (SPARC)
> gcc (GCC) 3.4.6
> chicken 4.7.0.6
>
> # make PLATFORM=solaris PREFIX=/usr/local check
> make -f ./Makefile.solaris CONFIG= check
> make[1]: Entering directory `/usr/local/src/chicken-4.7.0.6'
> cd tests; sh runtests.sh
> runtests.sh: DYLD_LIBRARY_PATH=/usr/local/src/chicken-4.7.0.6/tests/..: is not
> an identifier
> make[1]: *** [check] Error 1
> make[1]: Leaving directory `/usr/local/src/chicken-4.7.0.6'
> make: *** [check] Error 2
>
> It looks like the script and the Makefile both assume that /bin/sh is bash.
>
> The runtest.sh script is invoked like this.
>   cd tests; sh runtests.sh
> It starts like this.
>   #!/bin/sh
>   # runtests.sh - run CHICKEN testsuite
>
> Perhaps the Makefile should set SH to bash and use it instead of a bare sh.
>
> P.S. It builds and installs correctly. It compiles and runs some small
> programs.
>
> --
> Claude
> ___
> Chicken-users mailing list
> Chicken-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/chicken-users

-- 
http://parenteses.org/mario

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


Re: [Chicken-users] chicken-4.8.0rc3, check : invalid encoded literal format - execution terminated

2012-09-13 Thread Mario Domenech Goulart
Hi Claude,

On Thu, 13 Sep 2012 08:56:58 -0400 Claude Marinier  wrote:

> No, I did not install this version of chicken before doing the check but the
> previous version of chicken is installed.

"make check" requires building and installing Chicken.  Can you try

  $ make PLATFORM=linux PREFIX=`pwd` all install check

to see if it works?


Best wishes.
Mario
-- 
http://parenteses.org/mario

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


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

2012-09-13 Thread Claude Marinier
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] Solaris: tests/runtests.sh and Makefile assume that /bin/sh is bash

2012-09-13 Thread Claude Marinier
Solaris 10, recently patched, Sun Enterprise M5000 (SPARC)
gcc (GCC) 3.4.6
chicken 4.7.0.6

# make PLATFORM=solaris PREFIX=/usr/local check
make -f ./Makefile.solaris CONFIG= check
make[1]: Entering directory `/usr/local/src/chicken-4.7.0.6'
cd tests; sh runtests.sh
runtests.sh: DYLD_LIBRARY_PATH=/usr/local/src/chicken-4.7.0.6/tests/..: is
not an identifier
make[1]: *** [check] Error 1
make[1]: Leaving directory `/usr/local/src/chicken-4.7.0.6'
make: *** [check] Error 2

It looks like the script and the Makefile both assume that /bin/sh is bash.

The runtest.sh script is invoked like this.
  cd tests; sh runtests.sh
It starts like this.
  #!/bin/sh
  # runtests.sh - run CHICKEN testsuite

Perhaps the Makefile should set SH to bash and use it instead of a bare sh.

P.S. It builds and installs correctly. It compiles and runs some small
programs.

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


Re: [Chicken-users] profile data: "calls" too high

2012-09-13 Thread Claude Marinier
On Thu, Sep 13, 2012 at 3:30 AM, Peter Bex  wrote:

> On Wed, Sep 12, 2012 at 09:12:55PM -0400, Claude Marinier wrote:
> > Hi,
>
> Hi Claude,
>
> > I am new to profiling. I am surprized by the high count of the first
> > function in the table: make-date. When I grep for "make-date", it
> confirms
> > that it appears in only one file. I have attached this file. From this, I
> > expect make-date to be called as often as time-stamp and make-time which
> > are called three times.
>
> Which version of Chicken is this?  IIRC, 4.7.0 is known to produce bogus
> profiles.
>

I am using 4.7 (possibly 4.7.0.6). Do I need to wait for 4.8 or should I
try 4.7.x ?

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


Re: [Chicken-users] chicken-4.8.0rc3, check : invalid encoded literal format - execution terminated

2012-09-13 Thread Claude Marinier
No, I did not install this version of chicken before doing the check but
the previous version of chicken is installed.

On Thu, Sep 13, 2012 at 3:20 AM, Peter Bex  wrote:

> On Wed, Sep 12, 2012 at 09:38:04PM -0400, Claude Marinier wrote:
> > uname -a
> > Linux hibou 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686
> GNU/Linux
>
> Hi Claude,
>
> Did you install Chicken before running "make check"?
>
> Cheers,
> Peter
> --
> http://sjamaan.ath.cx
> --
> "The process of preparing programs for a digital computer
>  is especially attractive, not only because it can be economically
>  and scientifically rewarding, but also because it can be an aesthetic
>  experience much like composing poetry or music."
> -- Donald Knuth
>
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] POSIX fork & srfi-18 interactions

2012-09-13 Thread Andy Bennett
Hi,

I'm trying to fork & exec using the process-... procedures from the
posix egg.

My program (which involves spiffy) has a bunch of srfi-18 threads
running and I note that one doesn't get the same semantics as with fork
and pthreads in C. Namely, the new fork contains all the srfi-18 threads
and they're all running. There's no opportunity to get in there and stop
them from running in the child without declaring the whole module
"disable-interrupts".

The reason I need to fork and then exec is that I need to fiddle with
some file descriptors in the child before I exec.

For now I've written a fork-exec function in C and bound it to a
foreign-lambda. I believe this will work as the chicken scheduler will
be disabled throughout the single call to the foreign-lambda.


Is this interaction between the posix egg and srfi-18 considered a bug?
Is there anything that can be done about it?



Regards,
@ndy

-- 
andy...@ashurst.eu.org
http://www.ashurst.eu.org/
0x7EBA75FF


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


Re: [Chicken-users] profile data: "calls" too high

2012-09-13 Thread Peter Bex
On Wed, Sep 12, 2012 at 09:12:55PM -0400, Claude Marinier wrote:
> Hi,

Hi Claude,

> I am new to profiling. I am surprized by the high count of the first
> function in the table: make-date. When I grep for "make-date", it confirms
> that it appears in only one file. I have attached this file. From this, I
> expect make-date to be called as often as time-stamp and make-time which
> are called three times.

Which version of Chicken is this?  IIRC, 4.7.0 is known to produce bogus
profiles.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
-- Donald Knuth

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


Re: [Chicken-users] chicken-4.8.0rc3, check : invalid encoded literal format - execution terminated

2012-09-13 Thread Peter Bex
On Wed, Sep 12, 2012 at 09:38:04PM -0400, Claude Marinier wrote:
> uname -a
> Linux hibou 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686 GNU/Linux

Hi Claude,

Did you install Chicken before running "make check"?

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
-- Donald Knuth

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