[comp.sys.next] SML for Nextstation

ja2f+@andrew.cmu.edu (Jinmo Ahn) (02/01/91)

    
    I have ftp'ed SML/NJ from research.att.com.  I cannot get it to
compile on my nextstation.  When I type 'makeml -next' as described in
the docs, I get the following:

stealth.andrew.cmu.edu> makeml -next mach
makeml> unrecognized option mach
stealth.andrew.cmu.edu> makeml -next
makeml> (cd runtime; make clean)
rm -f *.o lint.out prim.s linkdata allmo.s run
makeml> rm -f mo
makeml> ln -s ../mo.m68 mo
makeml> (cd runtime; rm -f run allmo.o allmo.s)
makeml> (cd runtime; make MACHINE=M68  'CFL=' 'DEFS= -DBSD -DNeXT
-DRUNTIME=\"runtime\"' linkdata)
cc -O  -DM68 -DBSD -DNeXT -DRUNTIME=\"runtime\" -o linkdata linkdata.c
(cd runtime; grep -v mo/Math.mo IntM68.mos > Tmp.mos)
makeml> runtime/linkdata [runtime/Tmp.mos]
runtime/linkdata> as runtime/allmo.s -o runtime/allmo.o
makeml> (cd runtime; make  MACHINE=M68 'DEFS= -DBSD -DNeXT' CPP=/lib/cpp
'CFL=' 'AS=as')
cc -O  -DM68 -DBSD -DNeXT -c run.c
cc -O  -DM68 -DBSD -DNeXT -c run_ml.c
cc -O  -DM68 -DBSD -DNeXT -c callgc.c
callgc.c: In function sbrk:
callgc.c:508: warning: argument passing between incompatible pointer types
cc -O  -DM68 -DBSD -DNeXT -c gc.c
cc -O  -DM68 -DBSD -DNeXT -c M68.dep.c
/lib/cpp -DASM -DM68 -DBSD -DNeXT M68.prim.s > prim.s
as -o prim.o prim.s
cc -O  -DM68 -DBSD -DNeXT -c export.c
export.c: In function export:
export.c:419: `CPU_TYPE_MC68030' undeclared (first use this function)
export.c:419: (Each undeclared identifier is reported only once
export.c:419: for each function it appears in.)
export.c:420: `CPU_SUBTYPE_NeXT' undeclared (first use this function)
*** Exit 1
Stop.
stealth.andrew.cmu.edu> 

    What am I doing wrong?  Is SML incompatible with the '040 nexts?

Jim
 
Carnegie Mellon University
ja2f+@andrew.cmu.edu
jim@stealth.andrew.cmu.edu (NeXT)

melling@cs.psu.edu (Michael D Mellinger) (02/02/91)

In article <Ebe_2Ae00WBK03xkxx@andrew.cmu.edu> ja2f+@andrew.cmu.edu (Jinmo Ahn) writes:


       I have ftp'ed SML/NJ from research.att.com.  I cannot get it to
   compile on my nextstation.  When I type 'makeml -next' as described in
   the docs, I get the following:

SML is not compatible with 2.0.

-Mike