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

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Oct 17 10:51:57 EDT 2010

That's fixed, now.

Thanks for the report!

At Sun, 17 Oct 2010 22:35:11 +0800, Nevo wrote:
> 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/../../../racke
> t/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/../../../racke
> t/src/fun.c:8544:
> undefined reference to `scheme_current_lwc'
> /home/nevo/eggs/git-eggs/racket.git/plt.git/src/build/racket/src/../../../racke
> t/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/../../../racke
> t/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/../../../racke
> t/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/../../../racke
> t/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.
> >
> >


Posted on the dev mailing list.