home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / modula3 / 1035 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  3.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!qmw-dcs!mlo
  2. From: mlo@dcs.qmw.ac.uk (Mike Osborne)
  3. Newsgroups: comp.lang.modula3
  4. Subject: Cross-compiler problem
  5. Message-ID: <1992Nov17.110122.2708@dcs.qmw.ac.uk>
  6. Date: 17 Nov 92 11:01:22 GMT
  7. Sender: usenet@dcs.qmw.ac.uk (Usenet News System)
  8. Organization: Computer Science Dept, QMW, University of London
  9. Lines: 71
  10. Nntp-Posting-Host: rum.dcs.qmw.ac.uk
  11.  
  12. Hi,
  13.  
  14. I'm currently trying to get a port of m3-2.07 up and running under AUX3.0, by
  15. cross compiling from a Sun Sparc. I am running into a problem with the cross
  16. compiler, I wonder if anyone else has seen this and/or could suggest what is 
  17. happening. (I have previously built a working cross compiler).
  18.  
  19. The bootstrap_both part of the build fails, when the cross compiler gets to a
  20. file containing modula-3 code rather than C.
  21.  
  22. It does this both when trying to cross compile the driver, and the compiler.
  23.  
  24. A log of the first error message looks like this:-
  25.  
  26. mkdir compiler/boot-AUX3
  27. Tue Nov 17 10:28:48 GMT 1992 ================== bootstrap compiler for AUX3
  28. /import/exampleexec/exec/bin/m3 -w1 -make -why -boot -times -g -times -Y0@../..
  29. new source -> recreating ../../libm3/Csupport/src/generic/M3Runtime.h
  30. new source -> recreating ../../libm3/Csupport/src/generic/dtoa.h
  31. new source -> recreating ../../libm3/Csupport/src/AUX3/M3Machine.h
  32. new source -> recreating ../../libm3/Csupport/src/generic/M3Runtime.c
  33. new source -> recreating ../../libm3/Csupport/src/generic/M3Runtime2.c
  34. new source -> recreating ../../libm3/Csupport/src/AUX3/dtoa.c
  35. new source -> recreating ../../libm3/Csupport/src/generic/M3_BUILTIN.ic
  36. new source -> recreating ../src/builtinOps/Abs.i3
  37.  
  38.  
  39. ***
  40. *** runtime error:
  41. ***    Segmentation violation - possible attempt to dereference NIL
  42. ***    pc = 0xf7fff858
  43. ***
  44.  
  45.  
  46. A look at the core file using xdbx gives a stack trace like this
  47.  
  48. (xdbx) where
  49. kill() at 0xf775c120
  50. RTMisc__FatalErrorPC(pc = -134219688, msgA = 0x169ac8 "", msgB = (nil), msgC = 
  51. (nil)), line 137 in "RTMisc.m3"
  52. RTSignal__PossibleNilDereference(sig = 11, code = 3, scp = 0xf7ffeff8), line 
  53. 39 in "RTSignal.m3"
  54. _sigtramp() at 0xf7732c4c
  55. RTHeap__AllocateUntracedRef(tc = 1364832), line 893 in "RTHeap.m3"
  56. String__Add(x = 0x14d360 ""), line 61 in "String.m3"
  57. `Decl_m`_init_(), line 81 in "Decl.m3"
  58. (xdbx) 
  59.  
  60. It looks as though something related to the following declaration is causing
  61. trouble (line 81 in Decl.m3)
  62.  
  63. VAR cString := String.Add ("C");
  64. PROCEDURE ParseExternalPragma (READONLY fail: Token.Set;  VAR alias: String.T)=
  65.  
  66.  
  67. I must be doing something wrong here, because I have previously built a working
  68. cross compiler, from the same sources. Is there any procedure you need to follow
  69. with respect to cleaning up before re-making the cross compiler?
  70.  
  71. Mike
  72.  
  73.  
  74.  
  75.  
  76. --
  77.  
  78. Michael Osborne                     Internet:  mlo@dcs.qmw.ac.uk
  79.  Computer Science Department     JANET:     mlo@uk.ac.qmw.dcs
  80.   Queen Mary & Westfield College  
  81.    Mile End Road                   Telephone: +44 71-975 5244/5/9
  82.     LONDON, E1 4NS, UK              Fax:       +44 81-980 6533
  83.