[MLton-user] FreeBSD building problems + known errors question

Alexandre Xlex0x835@rambler.ru
Wed, 29 Dec 2004 22:55:22 +0300


Dear MLTon delopers,

during building MLTon at the FreeBSD 5.2 computer, I notice several  
problems and have get some more questions.
First of all - Stephen thank you for such a good dir (freebsd) inside  
MLton distribution -  that's really nice.
But after that - a lot of questions and some problems.

First question is: as far as I understand, MLTon is written using C,  
and after that I can't understand this comment inside Makefile:
=======================================================
# Because MLton is written in SML, it needs an SML compiler to build.
# It is easiest to use another (earlier) binary version of MLton as
# the SML compiler.  So, this Makefile fetches and installs an
# alread-built version of MLton, BOOT_DIST, to use for bootstrapping.
=======================================================

or I understand something wrong?

Another one question: if port for FreeBSD already exist, why do not  
send it to the mainstream ports tree?

Third question/problems: I make directory /usr/ports/lang/mlton, copy  
freebsd files there and after let's see for the results:

======================================================================== 
======================================
CWD: /usr/ports/lang/mlton  Time is: 22:48:27 Jobs: 0
  xlex@UnixHost.LocalNet>sudo make
===>  Vulnerability check disabled
 >> mlton-20040623-1.i386-freebsd.tbz doesn't seem to exist in  
/usr/ports/distfiles/.
 >> Attempting to fetch from http://www.mlton.org/download/.
grep: /usr/ports/lang/mlton/distinfo: No such file or directory
fetch: http://www.mlton.org/download/mlton-20040623-1.i386-freebsd.tbz:  
Moved Permanently
 >> Attempting to fetch from http://www.mlton.org/experimental/.
grep: /usr/ports/lang/mlton/distinfo: No such file or directory
fetch:  
http://www.mlton.org/experimental/mlton-20040623-1.i386-freebsd.tbz:  
Moved Permanently
 >> Attempting to fetch from  
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
grep: /usr/ports/lang/mlton/distinfo: No such file or directory
Receiving mlton-20040623-1.i386-freebsd.tbz (3739280 bytes): 100% (ETA  
00:00)
3739280 bytes transferred in 390.3 seconds (9.36 kBps)
 >> mlton-20041109-1.freebsd.src.tgz doesn't seem to exist in  
/usr/ports/distfiles/.
 >> Attempting to fetch from http://www.mlton.org/download/.
grep: /usr/ports/lang/mlton/distinfo: No such file or directory
fetch: http://www.mlton.org/download/mlton-20041109-1.freebsd.src.tgz:  
Moved Permanently
 >> Attempting to fetch from http://www.mlton.org/experimental/.
grep: /usr/ports/lang/mlton/distinfo: No such file or directory
fetch:  
http://www.mlton.org/experimental/mlton-20041109-1.freebsd.src.tgz:  
Moved Permanently
 >> Attempting to fetch from  
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
grep: /usr/ports/lang/mlton/distinfo: No such file or directory
fetch:  
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/mlton-20041109 
-1.freebsd.src.tgz: File unavailable (e.g., file not found, no access)
 >> Couldn't fetch it - please try to retrieve this
 >> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/lang/mlton.
======================================================================== 
======================================

Ok, I think I know where the problem is:

======================================================================== 
======================================
CWD: /usr/ports/distfiles  Time is: 23:00:36 Jobs: 0
  xlex@UnixHost.LocalNet>sudo mv mlton-20041109-1.src.tgz  
mlton-20041109-1.freebsd.src.tgz
======================================================================== 
======================================

And after that we start to continue building process - Makefile should  
be edited for sure (sorry, but I'm not good at that).
It seems to be a lot of the dead-links at the Makefile...

And I wonder why I have no chanses to compile MLTon on FreeBSD without  
some specific Makefile... No "INSTALL" file inside distribution, no  
installation procedure at the main site.
I also try to build it on my Mac OS X (10.3) machine:
======================================================================== 
========================================
Karlson:~/mlton-20041109 xlex$ make
make docs all-no-docs
mkdir -p /Users/xlex/mlton-20041109/build/bin  
/Users/xlex/mlton-20041109/build/lib/self  
/Users/xlex/mlton-20041109/build/lib/include
make -C /Users/xlex/mlton-20041109/doc/user-guide
latex main; bibtex main; latex main; latex main
/bin/sh: line 1: latex: command not found
/bin/sh: line 1: bibtex: command not found
/bin/sh: line 1: latex: command not found
/bin/sh: line 1: latex: command not found
make[2]: *** [main.dvi] Error 127
make[1]: *** [docs] Error 2
make: *** [all] Error 2

Karlson:~/mlton-20041109 xlex$ make all-no-docs
make dirs runtime compiler world-no-check
mkdir -p /Users/xlex/mlton-20041109/build/bin  
/Users/xlex/mlton-20041109/build/lib/self  
/Users/xlex/mlton-20041109/build/lib/include
Compiling MLton runtime system for self.
make -C runtime
zcat gdtoa.tgz | tar xf -
patch -p0 <gdtoa-patch
cd gdtoa && gcc -Wall -I. -Iplatform -D_FILE_OFFSET_BITS=64  
-fomit-frame-pointer -o arithchk.out arithchk.c
arithchk.c:140: warning: return type defaults to `int'
cd gdtoa && ./arithchk.out >arith.h
cd gdtoa &&                                     \
         gcc -Wall -I. -Iplatform -D_FILE_OFFSET_BITS=64  
-fomit-frame-pointer -O2                        \
                 -Dstrtod=gdtoa_strtod           \
                 -Dstrtof=gdtoa_strtof           \
                 -w -O1 -c -DINFNAN_CHECK        \
                 *.c
ar rc libgdtoa.a gdtoa/*.o
ranlib libgdtoa.a
gcc -Wall -I. -Iplatform -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer  
-O2 -c -o basis/Array/numElements.o basis/Array/numElements.c
In file included from platform.h:38,
                  from basis/Array/numElements.c:1:
platform/darwin.h:26:36: /usr/local/include/gmp.h: No such file or  
directory
make[2]: *** [basis/Array/numElements.o] Error 1
make[1]: *** [runtime] Error 2
make: *** [all-no-docs] Error 2
==============  
======================================================================== 
========================

Another one question: why I need Hevea (Latex to HTML translator),  
which is builded using OCaml, and so I need to build Ocaml, for just a  
translator... Isn't it too complex? It's also can be too hard for old  
computers to build it (my old PII 350 & 128Mb RAM still build OCaml,  
while I need SML).

And last question (not about building):
At the site I meet several known bugs - does I understand right, that  
they remain unfixed till now?


The last one I want to say: I reread my letter - and there are a lot of  
critics and questions - I'm newbie here, and I just hope that my letter  
will be accepted as critics for the good reasons - to make product  
better... And sorry, if post some questions, on which answers already  
exist...


Regards,
/Alexandre.

P.S. By the way, why "MLton is no longer hosted at SourceForge"?