[MLton-devel] mlton on freebsd update

Sam Rushing srushing@ironport.com
Thu, 05 Sep 2002 01:50:44 -0700


This is a multi-part message in MIME format.
--------------060705070700010306040202
Content-Type: multipart/alternative;
 boundary="------------020504060906010806050501"


--------------020504060906010806050501
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Stephen Weeks wrote:

>>I went back to bootstrapping with sml/nj.
>>
>This won't solve the problem, because the constant values are
>determined by build/lib/self/constants, which has the linux values in
>it.  What we need to do is to create a new constants file for FreeBSD.
>I have appended the necessary C program below.  Compile and run it,
>and place the output in build/lib/self/constants.  Then, try
>bootstrapping with SML/NJ again.
>
[sending this again, how I love doing battle with netscape]

I think this part of the bootstrap worked ok... the makefile called 
mlton with the -build-constants flag, which then generated tmp.c, which 
was then compiled locally.  So I think that part of the file should be 
ok... actually I'm pretty sure it got recompiled because I had to do 
some #ifdef __FreeBSD__'ing in a couple of the source xxx-constants.h 
files...

I was thinking it would be more likely stuff like stdio - on linux 
'stdout' might be a macro that might expand into a table lookup - that 
kind of thing.

>Or, if you want, you can email the constants, and I will generate
>the assembly again.
>
>Let's hope that the constants are different from what they were on
>Linux, else we're still confused.
>
Attached are the contents of my current 'constants' file, I don't have a 
linux machine handy to do a comparison.

My current plan is to go through the regressions looking for anything 
that fails, to root out whatever it is that's causing the anomaly.  
Could it have anything to do with directory listing (i.e., opendir)?  It 
looks like the initial world build is supposed to scan the directory 
named in the first argument?

Also, I'll try to remember to -keep the assembly files myself next time 
so I can tweak the runtime without having rebuild.

-Sam



--------------020504060906010806050501
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
Stephen Weeks wrote:<br>
<blockquote type="cite" cite="mid:15734.62697.692834.148800@gargle.gargle.HOWL">
  <blockquote type="cite">
    <pre wrap="">I went back to bootstrapping with sml/nj.<br></pre>
    </blockquote>
    <pre wrap=""><!---->This won't solve the problem, because the constant values are<br>determined by build/lib/self/constants, which has the linux values in<br>it.  What we need to do is to create a new constants file for FreeBSD.<br>I have appended the necessary C program below.  Compile and run it,<br>and place the output in build/lib/self/constants.  Then, try<br>bootstrapping with SML/NJ again.<br></pre>
    </blockquote>
[sending this again, how I love doing battle with netscape]<br>
    <br>
I think this part of the bootstrap worked ok... the makefile called mlton
with the -build-constants flag, which then generated tmp.c, which was then
compiled locally.&nbsp; So I think that part of the file should be ok... actually
I'm pretty sure it got recompiled because I had to do some #ifdef __FreeBSD__'ing
in a couple of the source xxx-constants.h files...<br>
    <br>
I was thinking it would be more likely stuff like stdio - on linux 'stdout'
might be a macro that might expand into a table lookup - that kind of thing.<br>
    <br>
    <blockquote type="cite" cite="mid:15734.62697.692834.148800@gargle.gargle.HOWL">
      <pre wrap="">Or, if you want, you can email the constants, and I will generate<br>the assembly again.<br><br>Let's hope that the constants are different from what they were on<br>Linux, else we're still confused.<br></pre>
      </blockquote>
Attached are the contents of my current 'constants' file, I don't have a
linux machine handy to do a comparison.<br>
      <br>
My current plan is to go through the regressions looking for anything that
fails, to root out whatever it is that's causing the anomaly.&nbsp; Could it have
anything to do with directory listing (i.e., opendir)?&nbsp; It looks like the
initial world build is supposed to scan the directory named in the first
argument?<br>
      <br>
Also, I'll try to remember to -keep the assembly files myself next time so
I can tweak the runtime without having rebuild.<br>
      <br>
-Sam<br>
      <br>
      <br>
      </body>
      </html>

--------------020504060906010806050501--

--------------060705070700010306040202
Content-Type: text/plain;
 name="constants.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="constants.txt"

LOG_DEBUG = 7
LOG_INFO = 6
LOG_NOTICE = 5
LOG_WARNING = 4
LOG_ERR = 3
LOG_CRIT = 2
LOG_ALERT = 1
LOG_EMERG = 0
LOG_UUCP = 64
LOG_USER = 8
LOG_SYSLOG = 40
LOG_NEWS = 56
LOG_MAIL = 16
LOG_LPR = 48
LOG_LOCAL7 = 184
LOG_LOCAL6 = 176
LOG_LOCAL5 = 168
LOG_LOCAL4 = 160
LOG_LOCAL3 = 152
LOG_LOCAL2 = 144
LOG_LOCAL1 = 136
LOG_LOCAL0 = 128
LOG_KERN = 0
LOG_DAEMON = 24
LOG_CRON = 72
LOG_AUTHPRIV = 80
LOG_PID = 1
LOG_PERROR = 32
LOG_NDELAY = 8
LOG_CONS = 2
Posix_TTY_TC_oflush = 2
Posix_TTY_TC_ioflush = 3
Posix_TTY_TC_iflush = 1
Posix_TTY_TC_oon = 2
Posix_TTY_TC_ooff = 1
Posix_TTY_TC_ioff = 3
Posix_TTY_TC_ion = 4
Posix_TTY_TC_sanow = 0
Posix_TTY_TC_saflush = 2
Posix_TTY_TC_sadrain = 1
Posix_TTY_L_tostop = 400000
Posix_TTY_L_noflsh = 80000000
Posix_TTY_L_isig = 80
Posix_TTY_L_iexten = 400
Posix_TTY_L_icanon = 100
Posix_TTY_L_echonl = 10
Posix_TTY_L_echok = 4
Posix_TTY_L_echoe = 2
Posix_TTY_L_echo = 8
Posix_TTY_C_parodd = 2000
Posix_TTY_C_parenb = 1000
Posix_TTY_C_hupcl = 4000
Posix_TTY_C_cstopb = 400
Posix_TTY_C_csize = 300
Posix_TTY_C_cs8 = 300
Posix_TTY_C_cs7 = 200
Posix_TTY_C_cs6 = 100
Posix_TTY_C_cs5 = 0
Posix_TTY_C_cread = 800
Posix_TTY_C_clocal = 8000
Posix_TTY_O_opost = 1
Posix_TTY_I_parmrk = 8
Posix_TTY_I_ixon = 200
Posix_TTY_I_ixoff = 400
Posix_TTY_I_istrip = 20
Posix_TTY_I_inpck = 10
Posix_TTY_I_inlcr = 40
Posix_TTY_I_ignpar = 4
Posix_TTY_I_igncr = 80
Posix_TTY_I_ignbrk = 1
Posix_TTY_I_icrnl = 100
Posix_TTY_I_brkint = 2
Posix_TTY_V_time = 17
Posix_TTY_V_susp = 10
Posix_TTY_V_stop = 13
Posix_TTY_V_start = 12
Posix_TTY_V_quit = 9
Posix_TTY_V_nccs = 20
Posix_TTY_V_min = 16
Posix_TTY_V_kill = 5
Posix_TTY_V_intr = 8
Posix_TTY_V_erase = 3
Posix_TTY_V_eol = 1
Posix_TTY_V_eof = 0
Posix_TTY_b9600 = 2580
Posix_TTY_b75 = 4b
Posix_TTY_b600 = 258
Posix_TTY_b50 = 32
Posix_TTY_b4800 = 12c0
Posix_TTY_b38400 = 9600
Posix_TTY_b300 = 12c
Posix_TTY_b2400 = 960
Posix_TTY_b200 = c8
Posix_TTY_b19200 = 4b00
Posix_TTY_b1800 = 708
Posix_TTY_b150 = 96
Posix_TTY_b134 = 86
Posix_TTY_b1200 = 4b0
Posix_TTY_b110 = 6e
Posix_TTY_b0 = 0
Posix_Signal_unblock = 2
Posix_Signal_setmask = 3
Posix_Signal_numSignals = 32
Posix_Signal_block = 1
Posix_Signal_vtalrm = 26
Posix_Signal_usr2 = 31
Posix_Signal_usr1 = 30
Posix_Signal_ttou = 22
Posix_Signal_ttin = 21
Posix_Signal_tstp = 18
Posix_Signal_term = 15
Posix_Signal_stop = 17
Posix_Signal_segv = 11
Posix_Signal_quit = 3
Posix_Signal_prof = 27
Posix_Signal_pipe = 13
Posix_Signal_kill = 9
Posix_Signal_int = 2
Posix_Signal_ill = 4
Posix_Signal_hup = 1
Posix_Signal_fpe = 8
Posix_Signal_cont = 19
Posix_Signal_chld = 20
Posix_Signal_bus = 10
Posix_Signal_alrm = 14
Posix_Signal_abrt = 6
Posix_Process_W_untraced = 2
Posix_Process_wnohang = 1
Posix_ProcEnv_2_SW_DEV = 24
Posix_ProcEnv_2_FORT_RUN = 22
Posix_ProcEnv_2_FORT_DEV = 21
Posix_ProcEnv_2_VERSION = 17
Posix_ProcEnv_RE_DUP_MAX = 16
Posix_ProcEnv_LINE_MAX = 15
Posix_ProcEnv_EXPR_NEST_MAX = 14
Posix_ProcEnv_COLL_WEIGHTS_MAX = 13
Posix_ProcEnv_BC_STRING_MAX = 12
Posix_ProcEnv_BC_SCALE_MAX = 11
Posix_ProcEnv_BC_DIM_MAX = 10
Posix_ProcEnv_BC_BASE_MAX = 9
Posix_ProcEnv_VERSION = 8
Posix_ProcEnv_SAVED_IDS = 7
Posix_ProcEnv_JOB_CONTROL = 6
Posix_ProcEnv_OPEN_MAX = 5
Posix_ProcEnv_TZNAME_MAX = 27
Posix_ProcEnv_STREAM_MAX = 26
Posix_ProcEnv_CLK_TCK = 3
Posix_ProcEnv_CHILD_MAX = 2
Posix_ProcEnv_ARG_MAX = 1
Posix_ProcEnv_numgroups = 100
Posix_IO_FD_cloexec = 1
Posix_IO_SEEK_END = 2
Posix_IO_SEEK_CUR = 1
Posix_IO_SEEK_SET = 0
Posix_IO_O_ACCMODE = 3
Posix_IO_F_SETOWN = 6
Posix_IO_F_GETOWN = 5
Posix_IO_F_SETLKW = 9
Posix_IO_F_UNLCK = 2
Posix_IO_F_WRLCK = 3
Posix_IO_F_RDLCK = 1
Posix_IO_F_SETLK = 8
Posix_IO_F_GETLK = 7
Posix_IO_F_SETFL = 4
Posix_IO_F_GETFL = 3
Posix_IO_F_SETFD = 2
Posix_IO_F_GETFD = 1
Posix_IO_F_DUPFD = 0
Posix_FileSys_VDISABLE = 9
Posix_FileSys_NO_TRUNC = 8
Posix_FileSys_CHOWN_RESTRICTED = 7
Posix_FileSys_PIPE_BUF = 6
Posix_FileSys_PATH_MAX = 5
Posix_FileSys_NAME_MAX = 4
Posix_FileSys_MAX_INPUT = 3
Posix_FileSys_MAX_CANON = 2
Posix_FileSys_LINK_MAX = 1
Posix_FileSys_F_OK = 0
Posix_FileSys_X_OK = 1
Posix_FileSys_W_OK = 2
Posix_FileSys_R_OK = 4
Posix_FileSys_o_rdwr = 2
Posix_FileSys_o_wronly = 1
Posix_FileSys_o_rdonly = 0
Posix_FileSys_O_binary = 0
Posix_FileSys_O_text = 0
Posix_FileSys_O_trunc = 400
Posix_FileSys_O_sync = 0
Posix_FileSys_O_nonblock = 4
Posix_FileSys_O_noctty = 8000
Posix_FileSys_O_excl = 800
Posix_FileSys_O_creat = 200
Posix_FileSys_O_append = 8
Posix_FileSys_S_isgid = 400
Posix_FileSys_S_isuid = 800
Posix_FileSys_S_ixoth = 1
Posix_FileSys_S_iwoth = 2
Posix_FileSys_S_iroth = 4
Posix_FileSys_S_irwxo = 7
Posix_FileSys_S_ixgrp = 8
Posix_FileSys_S_iwgrp = 10
Posix_FileSys_S_irgrp = 20
Posix_FileSys_S_irwxg = 38
Posix_FileSys_S_ixusr = 40
Posix_FileSys_S_iwusr = 80
Posix_FileSys_S_irusr = 100
Posix_FileSys_S_irwxu = 1c0
Posix_FileSys_S_ififo = 1000
Posix_FileSys_S_ifchr = 2000
Posix_FileSys_S_ifdir = 4000
Posix_FileSys_S_ifblk = 6000
Posix_FileSys_S_ifreg = 8000
Posix_FileSys_S_iflnk = a000
Posix_FileSys_S_ifsock = c000
Posix_Error_xdev = 18
Posix_Error_toobig = 7
Posix_Error_srch = 3
Posix_Error_spipe = 29
Posix_Error_rofs = 30
Posix_Error_range = 34
Posix_Error_pipe = 32
Posix_Error_perm = 1
Posix_Error_nxio = 6
Posix_Error_notty = 25
Posix_Error_notsup = 45
Posix_Error_notempty = 66
Posix_Error_notdir = 20
Posix_Error_nosys = 78
Posix_Error_nospc = 28
Posix_Error_nomem = 12
Posix_Error_nolck = 77
Posix_Error_noexec = 8
Posix_Error_noent = 2
Posix_Error_nodev = 19
Posix_Error_nfile = 23
Posix_Error_nametoolong = 63
Posix_Error_msgsize = 40
Posix_Error_mlink = 31
Posix_Error_mfile = 24
Posix_Error_loop = 62
Posix_Error_isdir = 21
Posix_Error_io = 5
Posix_Error_inval = 22
Posix_Error_intr = 4
Posix_Error_inprogress = 36
Posix_Error_fbig = 27
Posix_Error_fault = 14
Posix_Error_exist = 17
Posix_Error_dom = 33
Posix_Error_deadlk = 11
Posix_Error_child = 10
Posix_Error_canceled = 85
Posix_Error_busy = 16
Posix_Error_badmsg = 0
Posix_Error_badf = 9
Posix_Error_again = 35
Posix_Error_acces = 13
Socket_shutdownReadWrite = 2
Socket_shutdownWrite = 1
Socket_shutdownRead = 0
Ptrace_SYSCALL = -1
Ptrace_SETFPREGS = -1
Ptrace_GETFPREGS = -1
Ptrace_SETREGS = -1
Ptrace_GETREGS = -1
Ptrace_DETACH = -1
Ptrace_ATTACH = -1
Ptrace_SINGLESTEP = -1
Ptrace_KILL = -1
Ptrace_CONT = -1
Ptrace_POKEDATA = -1
Ptrace_POKETEXT = -1
Ptrace_PEEKDATA = -1
Ptrace_PEEKTEXT = -1
Ptrace_TRACEME = -1
MLton_Rlimit_virtualMemorySize = 2
MLton_Rlimit_stackSize = 3
MLton_Rlimit_residentSetSize = 5
MLton_Rlimit_numProcesses = 7
MLton_Rlimit_numFiles = 8
MLton_Rlimit_lockedInMemorySize = 6
MLton_Rlimit_fileSize = 1
MLton_Rlimit_dataSize = 2
MLton_Rlimit_coreFileSize = 4
MLton_Rlimit_cpuTime = 0
MLton_Rlimit_infinity = ffffffff
MLton_hostType = 1
Itimer_virtual = 1
Itimer_real = 0
Itimer_prof = 2
MLton_isLittleEndian = true
canHandle = 144
currentThread = 96
frontier = 0
cardMapForMutator = 64
limit = 4
limitPlusSlop = 152
maxFrameSize = 188
signalIsPending = 624
stackBottom = 644
stackLimit = 12
stackTop = 8

--------------060705070700010306040202--



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel