Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread Eli Barzilay
On Jul 14, Matthew Flatt wrote: > At Wed, 14 Jul 2010 13:19:36 -0400, Eli Barzilay wrote: > > On Jul 13, Matthew Flatt wrote: > > > The main obstacle was that operations like `raco make' and `raco > > > setup' needed SHA-1 hashing from OpenSSL via the FFI. > > > > > > I've adjusted several things

Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread Matthew Flatt
At Wed, 14 Jul 2010 18:35:58 +0200, nitralime wrote: > The latest Racket sources didn't work as you see below: The `install-sh' file is now executable. > I seems that my work around, i.e. replacing /*libffi*/ source tree by > its /*patched version > from Debian repository*/, is more promising:

Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread nitralime
Using the latest sources from GitHub and the patched version of libffi from Debian repository the compilation could be finished successfully:-) Regards Nik On 07/14/2010 02:46 PM, Matthew Flatt wrote: Right --- this is the problem that Kevin was talking about when he mentioned that the 3m buil

Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread Matthew Flatt
At Wed, 14 Jul 2010 13:19:36 -0400, Eli Barzilay wrote: > On Jul 13, Matthew Flatt wrote: > > The main obstacle was that operations like `raco make' and `raco > > setup' needed SHA-1 hashing from OpenSSL via the FFI. > > > > I've adjusted several things so that `make' and `make install' can > > wo

Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread Eli Barzilay
On Jul 13, Matthew Flatt wrote: > The main obstacle was that operations like `raco make' and `raco > setup' needed SHA-1 hashing from OpenSSL via the FFI. > > I've adjusted several things so that `make' and `make install' can > work when the FFI is disabled: > > * A new `file/sha1' library ports

Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread nitralime
The latest Racket sources didn't work as you see below: # cd build #../configure --prefix=/home/user/local/racket-5.0 --with-x=no --disable-gracket # make ... ... a - backgraph.o a - win32_threads.o a - thread_loca

Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread Matthew Flatt
At Wed, 14 Jul 2010 16:22:37 +0200, nitralime wrote: /home/user/tmp/plt-5.0-ffi/src/build/racket/gc2/../../../racket/gc2/sighand.c:5 > 8: > undefined reference to `mz_proc_thread_self' That's also fixed in the latest sources. > I will also give the latest Racket sources a try!! > By the way it w

Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread nitralime
I could already find a work around for compiling with *--enable-foreign*! I have just replaced the original /*libffi */source tree by its patched version from /*Debian repository*/. The compilation on my Nokia N900 run without problems until I got the following error:

Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread Matthew Flatt
Right --- this is the problem that Kevin was talking about when he mentioned that the 3m build doesn't work. It's also what I was talking about for `raco make' and `raco setup', because something like `raco make' is used to build some Racket files that are used to build 3m. Besides the changes tha

Re: [racket] Compiling Racket on Maemo 5

2010-07-14 Thread nitralime
Hi! I have applied the changes that you pointed out in your posting to env.c and thread.c with a minor modification of changes in thread.c (MZRT replaced by FUTURES!): -#ifdef MZ_USE_FUTURES +#if defined(MZ_USE_FUTURES) && !defined(DONT_USE_FOREIGN) I get now the following errors: -

Re: [racket] Compiling Racket on Maemo 5

2010-07-13 Thread nitralime
Hi! I have applied the changes to env.c and thread.c with a minor modification in thread.c (FUTURES instead MZRT!)): -#ifdef MZ_USE_FUTURES +#if defined(MZ_USE_FUTURES) && !defined(DONT_USE_FOREIGN) I get now the following errors: -

Re: [racket] Compiling Racket on Maemo 5

2010-07-13 Thread Matthew Flatt
The main obstacle was that operations like `raco make' and `raco setup' needed SHA-1 hashing from OpenSSL via the FFI. I've adjusted several things so that `make' and `make install' can work when the FFI is disabled: * A new `file/sha1' library ports Eric Knauel's implementation of SHA-1 to R

Re: [racket] Compiling Racket on Maemo 5

2010-07-13 Thread Neil Van Dyke
Kevin Tew wrote at 07/13/2010 12:19 PM: the 3m variant still doesn't build do to more reliance on the ffi during xform. setup is also going to try to use the ffi. We have added additional dependencies on the ffi (foreign function interface) and need to decide if we are going to support build

Re: [racket] Compiling Racket on Maemo 5

2010-07-13 Thread Kevin Tew
Ok I tried compiling with your configure line myself. I had to make an additional change to get racket/racketcgc to build. the 3m variant still doesn't build do to more reliance on the ffi during xform. setup is also going to try to use the ffi. We have added additional dependencies on the ff

Re: [racket] Compiling Racket on Maemo 5

2010-07-13 Thread Kevin Tew
Try this patch, if it works for you. I'll commit it Kevin diff --git a/src/racket/src/env.c b/src/racket/src/env.c index b1c0a8d..68b634b 100644 --- a/src/racket/src/env.c +++ b/src/racket/src/env.c @@ -501,7 +501,9 @@ static Scheme_Env *place_instance_init(void *stack_base, int initial_main_o