[racket] Bulding for Solaris 5.10 AMD64

From: Tim Brown (tim.brown at cityc.co.uk)
Date: Fri Jul 16 09:47:21 EDT 2010

Dear All,

I have put together a little patch on sconfig.h that gets me most of the
way to building racket on AMD64 Solaris 5.10.

This combined with:

./configure --disable-jit --srcdir=../ \
   --prefix=/usr/local/plt-5.0/SunOS-5.10-amd64\
   CC="gcc -m64" CXX="g++ -m64" LD="ld -m64"

Builds me a running gracket/drracket/racket.
[I've yet to test FFI, which I also need working...
  but that's for another day].

This is good news for me, I've been trying on and off for some time
to get this built.

But... I'm not getting the jitter, because if I omit the
--disable-jit I get the errors below.

So far as I can tell, --disable-jit switches the build into a 3m-only
mode. However, without --disable-jit racketcgc is build and invoked;
and it is racketcgc the
   "module name resolver: expected result of type <resolved-module-path>;
    given #<variable-code>"
error.

Even if I try to switch cgc off, with:

./configure --disable-cgc --disable-cgcdefault --srcdir=../ \
   --prefix=/usr/local/plt-5.0/SunOS-5.10-amd64\
   CC="gcc -m64" CXX="g++ -m64" LD="ld -m64"

It still won't get past this error, it insists on using racketcgc.
What can I do?

Regards,

Tim Brown


gmake[4]: Leaving directory `/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket'
gmake[3]: Leaving directory `/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket'
gmake racketcgc
gmake[3]: Entering directory `/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket'
gcc -m64 -I. -I../../racket/include -g -O2      -DMZ_NO_ICONV 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-DINITIAL_COLLECTS_DIRECTORY='"'"`cd ../../racket/../../collects; pwd`"'"' 
-c ../../racket/main.c -o main.o
gcc -m64 -o racketcgc main.o  libracket.a libmzgc.a  -ldl -lm  -lsocket 
-lnsl -lintl
gmake[3]: Leaving directory `/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket'
gmake[2]: Leaving directory `/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket'
cd gc2; gmake all
gmake[2]: Entering directory 
`/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket/gc2'
gmake xsrc/precomp.h
gmake[3]: Entering directory 
`/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket/gc2'
env XFORM_PRECOMP=yes ../racketcgc -cqu ../../../racket/gc2/xform.rkt 
--setup . --cpp "gcc -m64 -E -I./.. -I../../../racket/gc2/../include 
-DNEWGC_BTC_ACCOUNT  -DMZ_NO_ICONV -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 "  --keep-lines -o xsrc/precomp.h 
../../../racket/gc2/precomp.c
module name resolver: expected result of type <resolved-module-path>; given 
#<variable-code>
gmake[3]: *** [xsrc/precomp.h] Error 1
gmake[3]: Leaving directory 
`/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket/gc2'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory 
`/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket/gc2'
gmake[1]: *** [3m] Error 2
gmake[1]: Leaving directory `/usr2/other/plt-5.0/src/SunOS-5.10-amd64/racket'
gmake: *** [3m] Error 2



-- 
Tim Brown <tim.brown at cityc.co.uk>  | City Computing Limited            |
T: +44 20 8770 2110                | City House, Sutton Park Road      |
F: +44 20 8770 2130                | Sutton, Surrey, SM1 2AE, GB       |
-----------------------------------------------------------------------|
BEAUTY:  What's in your eye when you have a bee in your hand           |
-----------------------------------------------------------------------'
City Computing Limited registered in London No. 1767817.
Registered Office: City House, Sutton Park Road, Sutton, Surrey, SM1 2AE
VAT number 372 8290 34.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sconfig.h.patch
URL: <http://lists.racket-lang.org/users/archive/attachments/20100716/7e73c273/attachment.ksh>

Posted on the users mailing list.