[comp.lang.scheme] Scheme-to-C & SPARC

roell@informatik.tu-muenchen.dbp.de (Thomas Roell) (11/06/90)

Last recently I picked up the 28Sep90 copy of Scheme-to-C. Perhaps I should
say that I allready used the previous version on a SPARC. But now as I wanted
to compile the newer release (yes, I had applied the good old SPARC patches)
there were some strange things: 

(transcript of compiler session)
make "CC = cc" "CFLAGS = -O" "sccomp = echo" \
     Xsccomp.heap Xmv
Xsccomp ../scrt/predef.sc ../scrt/objects.h ../scrt/libsc.a \
        ../scrt/libsc_p.a SPARC Xsccomp.heap
***** COLLECT Out of space during collection

Strange ... I used a SPARC 1+ with 16MBytes of RAM and about 96MBytes of
swap-space. As a possible bugfix I also tried to reduce the scheme-heap, but
with little succes.

Could somebody please help me ?

- Thomas
--
_______________________________________________________________________________
Mail:                    Thomas Roell (c/o Daniel Hernandez)
                         Inst. f. Informatik / Technische Universitaet M"unchen
                         Arcisstr. 21 / 8000 Munich 2 / Fed.Rep. of Germany
E-Mail (domain):	 roell@lan.informatik.tu-muenchen.dbp.de
UUCP (when above fails): roell@tumult.{uucp | informatik.tu-muenchen.de}
-------------------------------------------------------------------------------

bartlett@decwrl.dec.com (Joel Bartlett) (11/07/90)

David Eckelkamp at MCC (davide%cadillac.cad.mcc.com@mcc.com) ran into
the same problem when he tried to bring it up.  It is due to the fact
that a new item, wordalign, was added to the union SCOBJ in
scrt/objects.h.  When he put the appropriate SPARC #ifdef/#endif around
it to reverse the order of the bit fields, he was able to successfully
build the system and run the tests.

jfb

roell@informatik.tu-muenchen.dbp.de (Thomas Roell) (11/13/90)

But now the story continues: I wanted to use the scix-0.97 toolkits with
Scheme-to-C. It was allready running with the older Scheme-to-C. The message
was:

------------------------------------------------------------------------------
scc -i -o Xscix scix.sc Xlibsock.o ftypes.o rwsock.o util.o requests1.o  lowleve
l.o types.o msg-hndl.o requests2.o hash-obj.o  bitmasks.o valmasks.o objects.o l
w-objs.o create-ev.o dpy-obj.o  win-obj.o gc-obj.o cmap-obj.o msg-util.o -m scix
demo ../demo/scixdemos.o -L.. -lscixt
SC-TO-C1137.c:
scix.c:
Linking:
ld: Undefined symbol
   _scixwin_make_2dwindow_v
   _scixlwobj_make_2dpolyline_v
   _scixlwobj_make_2dpointer_v
   _scixtypes_d_2dbitgravity_v
   _scixlwobj_make_2dpolyfillarc_v
   _scixtypes_a_2donoff_2dmode_v
   _scixtypes_a_2dgc_2darc_2dmode_v
   _scixtypes_a_2dwingravity_v
   _scixobj_make_2dfont_v
   _scixlwobj_make_2dcolor_v
   _scixtypes_ll_2dstyle_482d566f_v
   _scixtypes_d_2dwingravity_v
   _scixtypes_ne_2dstyle_a4cd868_v
   _scixgc_make_2dgc_v
   _scixtypes_dow_2dmode_a290167_v
   _buttons_make_2dtext_2dbutton_v
   _scixlwobj_make_2dview_v
   _scixcmap_make_2dcolormap_v
   _scixtypes_ap_2dstyle_85465588_v
   _buttons_e_2dbutton_4a5dd81_v
   _scixtypes_in_2dstyle_6d4d326f_v
   _scixlwobj_make_2dfillpoly_v
   _scixlwobj_make_2dimagetext8_v
   _scixobj_make_2dscreen_v
   _scixlwobj_make_2dpolysegment_v
   _scixlwobj_make_2dkeyboard_v
   _scixtypes_a_2dgc_2dfunction_v
   _scixtypes_ill_2drule_68777720_v
   _scixtypes_a_2dbitgravity_v
   _scixtypes_ack_2dmode_4f667174_v
scix.sc:
(main_l1355 [inside SCC] ...)
(SCC ...)
*** Error code 1
-------------------------------------------------------------------------------

Any comments about this ?

- Thomas

--
_______________________________________________________________________________
Mail:                    Thomas Roell (c/o Daniel Hernandez)
                         Inst. f. Informatik / Technische Universitaet M"unchen
                         Arcisstr. 21 / 8000 Munich 2 / Fed.Rep. of Germany
E-Mail (domain):	 roell@lan.informatik.tu-muenchen.dbp.de
UUCP (when above fails): roell@tumult.{uucp | informatik.tu-muenchen.de}
-------------------------------------------------------------------------------

johani@cyklop.nada.kth.se (Johan Ihren) (11/15/90)

In article <5471@tuminfo1.lan.informatik.tu-muenchen.dbp.de> roell@informatik.tu-muenchen.dbp.de (Thomas Roell) writes:

   But now the story continues: I wanted to use the scix-0.97 toolkits with
   Scheme-to-C. It was allready running with the older Scheme-to-C.

   [ Lots of unresolved externals in the make ]

   Any comments about this ?

Yes. Install scix-0.97-patch (avaliable both in expo.ldc.mit.edu:/contrib
and ftp.kth.se:/Xcontrib/Toolkits/Scix) and try again. Actually the patch
has been available for a while now, but unfortunately I've been away...
Sorry about that.

   - Thomas

Johan Ihren, Dept. of CS, Royal Institute of Techology, <johani@nada.kth.se>