home *** CD-ROM | disk | FTP | other *** search
- 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
- From: mlo@dcs.qmw.ac.uk (Mike Osborne)
- Newsgroups: comp.lang.modula3
- Subject: Cross-compiler problem
- Message-ID: <1992Nov17.110122.2708@dcs.qmw.ac.uk>
- Date: 17 Nov 92 11:01:22 GMT
- Sender: usenet@dcs.qmw.ac.uk (Usenet News System)
- Organization: Computer Science Dept, QMW, University of London
- Lines: 71
- Nntp-Posting-Host: rum.dcs.qmw.ac.uk
-
- Hi,
-
- I'm currently trying to get a port of m3-2.07 up and running under AUX3.0, by
- cross compiling from a Sun Sparc. I am running into a problem with the cross
- compiler, I wonder if anyone else has seen this and/or could suggest what is
- happening. (I have previously built a working cross compiler).
-
- The bootstrap_both part of the build fails, when the cross compiler gets to a
- file containing modula-3 code rather than C.
-
- It does this both when trying to cross compile the driver, and the compiler.
-
- A log of the first error message looks like this:-
-
- mkdir compiler/boot-AUX3
- Tue Nov 17 10:28:48 GMT 1992 ================== bootstrap compiler for AUX3
- /import/exampleexec/exec/bin/m3 -w1 -make -why -boot -times -g -times -Y0@../..
- new source -> recreating ../../libm3/Csupport/src/generic/M3Runtime.h
- new source -> recreating ../../libm3/Csupport/src/generic/dtoa.h
- new source -> recreating ../../libm3/Csupport/src/AUX3/M3Machine.h
- new source -> recreating ../../libm3/Csupport/src/generic/M3Runtime.c
- new source -> recreating ../../libm3/Csupport/src/generic/M3Runtime2.c
- new source -> recreating ../../libm3/Csupport/src/AUX3/dtoa.c
- new source -> recreating ../../libm3/Csupport/src/generic/M3_BUILTIN.ic
- new source -> recreating ../src/builtinOps/Abs.i3
-
-
- ***
- *** runtime error:
- *** Segmentation violation - possible attempt to dereference NIL
- *** pc = 0xf7fff858
- ***
-
-
- A look at the core file using xdbx gives a stack trace like this
-
- (xdbx) where
- kill() at 0xf775c120
- RTMisc__FatalErrorPC(pc = -134219688, msgA = 0x169ac8 "", msgB = (nil), msgC =
- (nil)), line 137 in "RTMisc.m3"
- RTSignal__PossibleNilDereference(sig = 11, code = 3, scp = 0xf7ffeff8), line
- 39 in "RTSignal.m3"
- _sigtramp() at 0xf7732c4c
- RTHeap__AllocateUntracedRef(tc = 1364832), line 893 in "RTHeap.m3"
- String__Add(x = 0x14d360 ""), line 61 in "String.m3"
- `Decl_m`_init_(), line 81 in "Decl.m3"
- (xdbx)
-
- It looks as though something related to the following declaration is causing
- trouble (line 81 in Decl.m3)
-
- VAR cString := String.Add ("C");
- PROCEDURE ParseExternalPragma (READONLY fail: Token.Set; VAR alias: String.T)=
-
-
- I must be doing something wrong here, because I have previously built a working
- cross compiler, from the same sources. Is there any procedure you need to follow
- with respect to cleaning up before re-making the cross compiler?
-
- Mike
-
-
-
-
- --
-
- Michael Osborne Internet: mlo@dcs.qmw.ac.uk
- Computer Science Department JANET: mlo@uk.ac.qmw.dcs
- Queen Mary & Westfield College
- Mile End Road Telephone: +44 71-975 5244/5/9
- LONDON, E1 4NS, UK Fax: +44 81-980 6533
-