Error compiling the C-interface runtime on x86-linux
Natalia Beatriz Bidart <[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm trying to build the C-interface runtime for th compiler. I've
followed the README instructions but I keep having this error when
compiling with make:
c-calls.c: In function `mkWord32':
c-calls.c:153: error: `DTAG_string' undeclared (first use in this function)
c-calls.c:153: error: (Each undeclared identifier is reported only once
c-calls.c:153: error: for each function it appears in.)
c-calls.c: In function `word_CtoML':
c-calls.c:995: error: `DTAG_array' undeclared (first use in this function)
c-calls.c:995: error: `DTAG_vector' undeclared (first use in this function)
make[2]: *** [c-calls.o] Error 1
make[2]: Leaving directory `/usr/local/sml/src/runtime/c-libs/smlnj-ccalls'
make[1]: *** [../c-libs/smlnj-ccalls/libsmlnj-ccalls.a] Error 2
make[1]: Leaving directory `/usr/local/sml/src/runtime/objs'
make: *** [all] Error 2
bn@DALI:/usr/local/sml/src/runtime/objs$
So I grepped through src directory and DTAG_string is defined nowhere
:-(, I took a look to include/tags.h and nothing, only DEFINE's for
other DTAG's.
Below a copy of my makefile (placed in
$SMLROOT/src/runtime/objs/mk.x86-linux-ccalls):
# mk.x86-linux-ccalls
#
SHELL = /bin/sh
MAKE = make
AS = as --32
CC = gcc-3.4 -ansi
CFLAGS = -O2 -m32
CPP = gcc-3.4 -x assembler-with-cpp -E -P
#XOBJS = xmonitor.o
#LD_LIBS = -lX11
#BASE_DEFS = -DHEAP_MONITOR
XOBJS =
XLIBS = ../c-libs/dl/libunix-dynload.a
XCLIBS = ../c-libs/smlnj-ccalls/libsmlnj-ccalls.a
LD_LIBS = -ldl -lm -malloc
XDEFS =
BASE_DEFS =
DEFS= $(XDEFS) $(BASE_DEFS) -DHOST_X86 -DTARGET_X86
-DOPSYS_UNIX -DOPSYS_LINUX -D_GNU_SOURCE -DGNU_ASSEMBLER -DDLOPEN -DC_CALLS
TARGET = X86
VERSION = v-x86-linux
RUNTIME = run.x86-linux
all:
($(MAKE) RUNTIME="$(RUNTIME)" VERSION="$(VERSION)" AS="$(AS)"
CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CPP)" TARGET=$(TARGET)
DEFS="$(DEFS)" XOBJS="$(XOBJS)" XLIBS="$(XLIBS)" LD_LIBS="$(LD_LIBS)"
XCLIBS="$(XCLIBS)" $(RUNTIME))
Am I missing something? Is this a bug? Do I have to configure some other
thing?
Thanks a lot, Natalia.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642