[plt-scheme] Compiling 4.0

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Jun 20 09:30:30 EDT 2008

On Jun 20, Andrew Reilly wrote:
> On Thu, Jun 19, 2008 at 11:38:26AM +0100, Paulo J. Matos wrote:
> > I am compiling 4.0 in Gentoo Linux and I got this:
> > make[4]: Entering directory `/home/pmatos/plt-4.0/src/mred/gc2'
> > ../../mzscheme/mzscheme3m -cqu "./gen-deps.ss"
> > procedure application: expected procedure, given: #<variable-code>;
> > arguments were: (quote #%utils) #f #f #t
> > for-each: expects type <procedure> as 1st argument, given:
> > #<variable-code>; other arguments were: ()
> > make[4]: *** [gen-deps] Error 1
> 
> I'm afraid that I havent' seen this particular problem before,
> but...
> 
> > I just configured it with:
> > ./configure --prefix=/usr/local/plt/plt-4.0
> 
> It's been my recent experience that some parts of the tree are badly
> behaved if configured at top level.  Things work nicely if you build
> in a sub-tree, instead:
> 
> cd src
> mkdir build
> cd build
> ../configure ...(configure args)
> gmake

That's generally a good idea, but the above is more likely a problem
with -O2 and a newer GCC.


> Might or might not help that particular problem, but it appears
> to be necessary on FreeBSD, particularly something in the FFI
> code.

(Yes, the FFI auto-whatever scripts are especially problematic with
in-source builds.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.