-native self compile problems

Stephen Weeks MLton@sourcelight.com
Thu, 30 Nov 2000 08:57:43 -0800 (PST)


I found and fixed the bug with voids.  It was a bug that I had just introduced
with some changes that I made.  The native self compile I ran last night almost
succeeded.  It failed during linking with
	undefined reference to `overflowCheckTemp'
I guess this means I have a slightly out of date x86codegen.h.  Anyways, I added 
the obvious fix for this problem and just started a new run.  Matthew, could you 
send me your latest x86codegen.h so I can do a diff.  

BTW, here is the log.

--------------------------------------------------------------------------------

cd /home/sweeks/mlton/src/mlton && make
make[1]: Entering directory `/home/sweeks/mlton/src/mlton'
Compiling mlton (takes a while)
time mlton -v -no-polyvariance mlton.cm
MLton internal-version (built Wed Nov 29 17:05:59 2000 on eponym.epr.com)
  created this file on Wed Nov 29 17:07:12 2000.
Do not edit this file.
Flag settings: 
   aux: false
   chunk: coalesce 2000
   contify strategy: Both
   defines: [NODEBUG,MLton_safe=TRUE,MLton_detectOverflow=TRUE]
   fixed heap: None
   indentation: 3
   includes: [mlton.h]
   inline: NonRecursive {product = 320,small = 60}
   input file: mlton.cm
   instrument: false
   instrument Sxml: false
   keep Cps: false
   match: left to right
   messages: true
   native: true
   native-commented: 0
   native-copy-prop: true
   native-ieee-fp: false
   native-move-hoist: true
   native-optimize: 1
   native-split: Some(100000)
   polyvariance: None
   print at fun entry: false
   profile: false
   show types: false
compile starting
   parse and elaborate starting
   parse and elaborate finished in 138.680
   core-ml size is ~1 bytes
   numPeeks = 14
   average position in property list = 0.000
   numPeeks = 2452463
   average position in bucket = 0.221
   dead starting
   dead finished in 0.300
   basis size is ~1 bytes
   numPeeks = 72763
   average position in property list = 0.000
   numPeeks = 2452463
   average position in bucket = 0.221
   size = 187527
   gcc -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/fileAGK1oR /tmp/filebCaPS0.c -L/home/sweeks/mlton/lib -lmlton -lm -lgmp
   /tmp/fileAGK1oR /tmp/filezvf6VT
   infer starting
      unification starting
      unification finished in 17.040
      finish infer starting
      finish infer finished in 61.430
   infer finished in 79.660
   xml.unsimplified size is ~1 bytes
   numPeeks = 1080478
   average position in property list = 0.000
   numPeeks = 2591360
   average position in bucket = 0.271
   typeCheck starting
   typeCheck finished in 15.040
   infer simplify starting
   infer simplify finished in 41.660
   xml size is ~1 bytes
   numPeeks = 5356610
   average position in property list = 0.466
   numPeeks = 2754480
   average position in bucket = 0.343
   typeCheck starting
   typeCheck finished in 9.910
   size = 122314
   num types in program = 20507
   num types in table = 37089
   hash table size is ~1 bytes
   mono starting
   mono finished in 82.680
   mono.unsimplified size is ~1 bytes
   numPeeks = 10370296
   average position in property list = 0.241
   numPeeks = 3598694
   average position in bucket = 0.687
   typeCheck starting
   typeCheck finished in 13.020
   mono simplify starting
   mono simplify finished in 51.920
   mono size is ~1 bytes
   numPeeks = 15826419
   average position in property list = 0.373
   numPeeks = 3695361
   average position in bucket = 0.713
   typeCheck starting
   typeCheck finished in 10.310
   size = 191190
   num types in program = 12933
   num types in table = 67778
   hash table size is ~1 bytes
   implement exceptions starting
   implement exceptions finished in 1.750
   sxml.unsimplified size is ~1 bytes
   numPeeks = 16695149
   average position in property list = 0.354
   numPeeks = 3771560
   average position in bucket = 0.735
   typeCheck starting
   typeCheck finished in 10.960
   implement exceptions simplify starting
   implement exceptions simplify finished in 38.900
   sxml size is ~1 bytes
   numPeeks = 20772285
   average position in property list = 0.398
   numPeeks = 3848471
   average position in bucket = 0.757
   typeCheck starting
   typeCheck finished in 9.890
   polyvariance starting
   polyvariance finished in 0.000
   sxml.poly size is ~1 bytes
   numPeeks = 21311273
   average position in property list = 0.388
   numPeeks = 3921306
   average position in bucket = 0.777
   size = 178791
   num types in program = 12501
   num types in table = 68237
   hash table size is ~1 bytes
   closure convert starting
      flow analysis starting
      flow analysis finished in 9.500
      flow size is ~1 bytes
      numPeeks = 22354830
      average position in property list = 0.370
      numPeeks = 3937865
      average position in bucket = 0.779
      free variables starting
      free variables finished in 4.360
      globalize starting
      globalize finished in 1.540
      convert starting
      convert finished in 110.970
   closure convert finished in 128.880
   cps.unsimplified size is ~1 bytes
   numPeeks = 29035830
   average position in property list = 1.466
   numPeeks = 4297786
   average position in bucket = 0.823
   typeCheck starting
      checkScopes starting
	 inferHandlers starting
	 inferHandlers finished in 6.860
      checkScopes finished in 16.720
   typeCheck finished in 37.570
   closure convert simplify starting
      simplify starting
	 num functions 12070
	 num local functions 138684
	 num primExps 156684
	 numPeeks = 32995652
	 average position in property list = 1.298
	 numPeeks = 4380194
	 average position in bucket = 0.831
	 remove-unused starting
	 remove-unused finished in 7.470
	 num functions 10422
	 num local functions 80544
	 num primExps 139676
	 numPeeks = 36142407
	 average position in property list = 1.187
	 numPeeks = 4380520
	 average position in bucket = 0.831
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 3.790
	    checkScopes finished in 10.760
	 typeCheck finished in 26.400
	 leaf-inline starting
	    inline starting
	    inline finished in 24.000
	 leaf-inline finished in 24.000
	 num functions 7864
	 num local functions 57891
	 num primExps 138417
	 numPeeks = 40290886
	 average position in property list = 1.074
	 numPeeks = 4455809
	 average position in bucket = 0.840
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 2.950
	    checkScopes finished in 6.880
	 typeCheck finished in 20.870
	 raise-to-jump starting
	    inferHandlers starting
	    inferHandlers finished in 2.740
	 raise-to-jump finished in 20.930
	 num functions 7864
	 num local functions 57509
	 num primExps 138390
	 numPeeks = 43782355
	 average position in property list = 0.996
	 numPeeks = 4544308
	 average position in bucket = 0.849
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 2.740
	    checkScopes finished in 6.600
	 typeCheck finished in 20.650
	 contify starting
	 contify finished in 19.470
	 num functions 4221
	 num local functions 58041
	 num primExps 136525
	 numPeeks = 47176703
	 average position in property list = 0.931
	 numPeeks = 4636425
	 average position in bucket = 0.860
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 2.880
	    checkScopes finished in 6.660
	 typeCheck finished in 20.400
	 constant propagation starting
	    inferHandlers starting
	    inferHandlers finished in 2.730
	    fixed point starting
	    fixed point finished in 21.350
	 constant propagation finished in 50.310
	 num functions 4221
	 num local functions 57323
	 num primExps 101438
	 numPeeks = 51712031
	 average position in property list = 0.866
	 numPeeks = 4861171
	 average position in bucket = 0.976
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 2.830
	    checkScopes finished in 6.410
	 typeCheck finished in 18.670
	 useless starting
	    analyze starting
	    analyze finished in 44.680
	 useless finished in 80.390
	 num functions 4221
	 num local functions 54743
	 num primExps 92311
	 numPeeks = 56260116
	 average position in property list = 0.816
	 numPeeks = 5073875
	 average position in bucket = 0.987
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 2.700
	    checkScopes finished in 5.850
	 typeCheck finished in 17.110
	 remove-unused starting
	 remove-unused finished in 3.580
	 num functions 3607
	 num local functions 49765
	 num primExps 85355
	 numPeeks = 59672489
	 average position in property list = 0.772
	 numPeeks = 5139276
	 average position in bucket = 0.991
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 2.440
	    checkScopes finished in 5.180
	 typeCheck finished in 15.430
	 simplify-types starting
	    fixed point starting
	    fixed point finished in 0.190
	 simplify-types finished in 19.790
	 num functions 3607
	 num local functions 41643
	 num primExps 82162
	 numPeeks = 63164213
	 average position in property list = 0.739
	 numPeeks = 5206794
	 average position in bucket = 0.995
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 2.070
	    checkScopes finished in 4.390
	 typeCheck finished in 13.690
	 poly-equal starting
	 poly-equal finished in 0.620
	 num functions 3619
	 num local functions 42287
	 num primExps 82675
	 numPeeks = 64628057
	 average position in property list = 0.723
	 numPeeks = 5255777
	 average position in bucket = 0.999
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 2.050
	    checkScopes finished in 4.450
	 typeCheck finished in 13.740
	 contify starting
	 contify finished in 11.570
	 num functions 3521
	 num local functions 42273
	 num primExps 82549
	 numPeeks = 66840321
	 average position in property list = 0.703
	 numPeeks = 5304452
	 average position in bucket = 1.004
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 1.940
	    checkScopes finished in 4.330
	 typeCheck finished in 13.650
	 inline starting
	 inline finished in 32.910
	 num functions 975
	 num local functions 67702
	 num primExps 134409
	 numPeeks = 70336075
	 average position in property list = 0.672
	 numPeeks = 5353005
	 average position in bucket = 1.008
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 3.480
	    checkScopes finished in 7.380
	 typeCheck finished in 23.600
	 remove-unused starting
	 remove-unused finished in 6.880
	 num functions 975
	 num local functions 65012
	 num primExps 133331
	 numPeeks = 75018959
	 average position in property list = 0.633
	 numPeeks = 5465080
	 average position in bucket = 1.018
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 3.320
	    checkScopes finished in 7.180
	 typeCheck finished in 24.900
	 raise-to-jump starting
	    inferHandlers starting
	    inferHandlers finished in 3.170
	 raise-to-jump finished in 23.240
	 num functions 975
	 num local functions 64956
	 num primExps 133306
	 numPeeks = 78601607
	 average position in property list = 0.608
	 numPeeks = 5575806
	 average position in bucket = 1.029
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 3.220
	    checkScopes finished in 7.050
	 typeCheck finished in 23.080
	 contify starting
	 contify finished in 19.690
	 num functions 974
	 num local functions 64954
	 num primExps 133304
	 numPeeks = 81920502
	 average position in property list = 0.587
	 numPeeks = 5686496
	 average position in bucket = 1.038
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 3.420
	    checkScopes finished in 7.270
	 typeCheck finished in 23.350
	 introduce-loops starting
	 introduce-loops finished in 0.090
	 num functions 974
	 num local functions 64978
	 num primExps 133304
	 numPeeks = 84124651
	 average position in property list = 0.574
	 numPeeks = 5797203
	 average position in bucket = 1.048
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 3.220
	    checkScopes finished in 8.780
	 typeCheck finished in 24.920
	 loop-invariant starting
	 loop-invariant finished in 20.980
	 num functions 974
	 num local functions 62453
	 num primExps 126648
	 numPeeks = 87536723
	 average position in property list = 0.555
	 numPeeks = 5907886
	 average position in bucket = 1.057
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 3.200
	    checkScopes finished in 6.700
	 typeCheck finished in 21.960
	 flatten starting
	    analyze starting
	    analyze finished in 1.720
	 flatten finished in 34.020
	 num functions 974
	 num local functions 62532
	 num primExps 84167
	 numPeeks = 91464337
	 average position in property list = 0.535
	 numPeeks = 6017896
	 average position in bucket = 1.066
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 2.990
	    checkScopes finished in 6.420
	 typeCheck finished in 19.820
	 redundant starting
	 redundant finished in 8.170
	 num functions 974
	 num local functions 62532
	 num primExps 84167
	 numPeeks = 93977594
	 average position in property list = 0.523
	 numPeeks = 6103759
	 average position in bucket = 1.073
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 3.070
	    checkScopes finished in 6.330
	 typeCheck finished in 19.590
	 remove-unused starting
	 remove-unused finished in 5.700
	 num functions 974
	 num local functions 62239
	 num primExps 82518
	 numPeeks = 97988310
	 average position in property list = 0.504
	 numPeeks = 6189636
	 average position in bucket = 1.081
	 typeCheck starting
	    checkScopes starting
	       inferHandlers starting
	       inferHandlers finished in 3.030
	    checkScopes finished in 6.490
	 typeCheck finished in 21.270
      simplify finished in 849.880
   closure convert simplify finished in 849.880
   cps size is ~1 bytes
   numPeeks = 99766172
   average position in property list = 0.496
   numPeeks = 6273964
   average position in bucket = 1.088
   typeCheck starting
      checkScopes starting
	 inferHandlers starting
	 inferHandlers finished in 3.000
      checkScopes finished in 6.360
   typeCheck finished in 19.640
   backend starting
      compute representations starting
      compute representations finished in 0.150
      display starting
      display finished in 0.210
      inferHandlers starting
      inferHandlers finished in 2.910
      chunkify starting
      chunkify finished in 4.300
      display starting
      display finished in 0.940
      allocate registers starting
      allocate registers finished in 322.710
      reg size is ~1 bytes
      numPeeks = 191787671
      average position in property list = 1.128
      numPeeks = 6358292
      average position in bucket = 1.095
   backend finished in 360.400
    size is ~1 bytes
   numPeeks = 193484128
   average position in property list = 1.132
   numPeeks = 6374653
   average position in bucket = 1.095
   x86 code gen starting
      outputC starting
      outputC finished in 1.220
      outputAssembly starting
	 translateChunk totals 22.190
	 simplify totals 301.390
	    verifyLiveInfo totals 56.050
	    computeJumpInfo totals 18.690
	    elimGoto totals 11.570
	       elimIff: 2
	       elimSwitch: 16
	       elimSimpleGoto totals 4.200
	       elimComplexGoto totals 2.390
	    verifyJumpInfo totals 8.220
	    peepholeBlock_pre totals 7.660
	       commuteBinALMD: 477
	       elimBinAL0L: 0
	       elimBinAL0R: 0
	       elimAddSub1: 1790
	       elimMDPow2: 183
	    toLivenessBlock totals 22.160
	    moveHoist totals 21.830
	    peepholeLivenessBlock totals 16.040
	       elimALCopy: 17042
	       elimFltACopy: 20
	       elimDeadDsts: 93
	       elimSelfMove: 1072
	       elimFltSelfMove: 0
	       commuteBinALMD: 1060
	       commuteFltBinA: 17
	       conditionalJump: 3241
	    copyPropagate totals 11.600
	    peepholeLivenessBlock_minor totals 6.860
	       elimDeadDsts_minor: 0
	       elimSelfMove_minor: 0
	       elimFltSelfMove_minor: 0
	    verifyLivenessBlock totals 101.030
	    toBlock totals 1.320
	    peepholeBlock_post totals 5.390
	       elimBinALMDouble: 33
	       elimFltBinADouble: 0
	       elimCMPTST: 0
	    generateTransfers totals 10.430
	 allocateRegisters totals 679.490
	    toLiveness totals 397.760
	    toNoLiveness totals 0.010
	    Assembly.allocateRegisters totals 279.810
	       Instruction.allocateRegisters totals 188.360
		  pre totals 37.310
		  post totals 60.350
		  allocateOperand totals 52.850
		  allocateFltOperand totals 0.000
		  allocateFltStackOperands totals 0.000
	       Directive.allocateRegisters totals 29.680
	 validate totals 5.170
      outputAssembly finished in 1022.500
   x86 code gen finished in 1161.370
   numPeeks = 198958610
   average position in property list = 1.130
   numPeeks = 6436664
   average position in bucket = 1.094
compile finished in 3088.370
gcc -S -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/filehOwKFr.s /tmp/filetd9ULU.c
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/filebJ1QRL.o /tmp/filehOwKFr.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/fileS473b9.o /tmp/fileOoTU5i.9.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/file5Yn7SW.o /tmp/fileZ6K8cZ.8.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/fileO2LpRK.o /tmp/fileAAQIYV.7.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/fileuP6PTo.o /tmp/file6aJMXp.6.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/filei1pIve.o /tmp/fileH6Kms1.5.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/file8VCvwC.o /tmp/filejUxgrR.4.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/filewDV62E.o /tmp/fileE6k1Yl.3.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/fileW6hKjU.o /tmp/file5WQ51n.2.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/fileu1rgNA.o /tmp/filenB3DsG.1.s
gcc -c -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/fileav3YLH.o /tmp/filebSzy30.0.s
gcc -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o mlton /tmp/filebJ1QRL.o /tmp/fileav3YLH.o /tmp/fileu1rgNA.o /tmp/fileW6hKjU.o /tmp/filewDV62E.o /tmp/file8VCvwC.o /tmp/filei1pIve.o /tmp/fileuP6PTo.o /tmp/fileO2LpRK.o /tmp/file5Yn7SW.o /tmp/fileS473b9.o -L/home/sweeks/mlton/lib -lmlton -lm -lgmp
/tmp/filewDV62E.o: In function `skipGC_4146':
/tmp/filewDV62E.o(.text+0x4e5a5): undefined reference to `overflowCheckTemp'
/tmp/filewDV62E.o(.text+0x4e5c6): undefined reference to `overflowCheckTemp'
collect2: ld returned 1 exit status
make[1]: Leaving directory `/home/sweeks/mlton/src/mlton'
mlton: call to system failed: gcc -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE -I/home/sweeks/mlton/include -O1 -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o mlton /tmp/filebJ1QRL.o /tmp/fileav3YLH.o /tmp/fileu1rgNA.o /tmp/fileW6hKjU.o /tmp/filewDV62E.o /tmp/file8VCvwC.o /tmp/filei1pIve.o /tmp/fileuP6PTo.o /tmp/fileO2LpRK.o /tmp/file5Yn7SW.o /tmp/fileS473b9.o -L/home/sweeks/mlton/lib -lmlton -lm -lgmp
Command exited with non-zero status 1
3085.34user 31.72system 52:01.71elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (19616major+2300416minor)pagefaults 108swaps
make[1]: *** [mlton] Error 1
make: *** [/home/sweeks/mlton/src/mlton/mlton] Error 2