[racket-dev] Compile error in git repo on both Linux and Mac

From: Nevo (sakur.deagod at gmail.com)
Date: Sun Oct 17 10:35:11 EDT 2010

Hi:
   Thanks for your prompt response. Here is another error from "../configure
--disable-jit --disable-futures", again, both on Mac and Linux:
make[4]: Entering directory
`/opt/eggs/git-eggs/racket.git/plt.git/src/build/racket'
gcc -I. -I../../racket/include -g -O2  -Wall  -DMZ_DONT_USE_JIT
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DINITIAL_COLLECTS_DIRECTORY='"'"`cd ../../racket/../../collects; pwd`"'"'
-c ../../racket/main.c -o main.o
gcc -o racketcgc main.o  libracket.a libmzgc.a  -ldl -lm  -ldl -lm
-rdynamic
libracket.a(fun.o): In function `scheme_fill_lwc_start':
/home/nevo/eggs/git-eggs/racket.git/plt.git/src/build/racket/src/../../../racket/src/fun.c:8376:
undefined reference to `scheme_current_lwc'
libracket.a(fun.o): In function `scheme_apply_lightweight_continuation':
/home/nevo/eggs/git-eggs/racket.git/plt.git/src/build/racket/src/../../../racket/src/fun.c:8544:
undefined reference to `scheme_current_lwc'
/home/nevo/eggs/git-eggs/racket.git/plt.git/src/build/racket/src/../../../racket/src/fun.c:8578:
undefined reference to `scheme_apply_lightweight_continuation_stack'
libracket.a(fun.o): In function `scheme_fill_lwc_end':
/home/nevo/eggs/git-eggs/racket.git/plt.git/src/build/racket/src/../../../racket/src/fun.c:8383:
undefined reference to `scheme_current_lwc'
libracket.a(fun.o): In function `scheme_init_thread_lwc':
/home/nevo/eggs/git-eggs/racket.git/plt.git/src/build/racket/src/../../../racket/src/fun.c:8371:
undefined reference to `scheme_current_lwc'
libracket.a(fun.o): In function `scheme_fill_lwc_end':
/home/nevo/eggs/git-eggs/racket.git/plt.git/src/build/racket/src/../../../racket/src/fun.c:8386:
undefined reference to `scheme_fill_stack_lwc_end'
collect2: ld returned 1 exit status

   Any ideas? Thanks

Nevo

On 17 October 2010 22:27, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> At Sun, 17 Oct 2010 22:10:11 +0800, Nevo wrote:
> >    I've tried to build latest version of Racket for both Linux and Mac
> from
> > git (master branch), with jit disabled, and found that both threw the
> same
> > *undefined* errors:
> >
> > [...]
> >
> >    My configure is done in separate build directory with "../configure
> > --disable-jit". And the HEAD commit is commit
> > 51f20afd0b4d93b27645351dbe8b3e903dd4e0b6.
> >    Does it require other features being disabled in order to build racket
> > without jit?
>
> Yes, you also need `--disable-futures'.
>
> We should fix the `configure' script to either add that automatically
> or complain if futures are not disabled when the JIT is disabled.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20101017/9e2851cb/attachment.html>

Posted on the dev mailing list.