From: rlp@drutx.ATT.COM (PrehnRL)
Newsgroups: comp.lang.modula3
Subject: Can modula 3 be compiled on sun 490?
Keywords: runtime error ASSERT failed OS.m3
Date: 20 Nov 92 17:25:01 GMT
Distribution: comp
Organization: AT&T Bell Laboratories - Denver


I tried compiling on my SPARC 1+ but it died during the late stages of
libm3 due to lack of space on "/" (~2.3k blocks)
So I tried building on our sun 490.

 m3make -f m3makefile.libm3 all install

Refused to install the sed,awk,imake & toplevel.tmpl*, recmkdir m3mkpath files.
I copied to requested places from m3make/src.
Also had to copy m3make/SPARc/config to $PREFIX/lib/m3)

The following erros then occurred:

cd libm3; /wa32/mod3/bin/m3make all
============================= Building in SPARC
sed -e 's:PUB:/wa32/mod3/include/m3:g' -e 's:LIB:/wa32/mod3/lib/m3:g' \
        < ../config/src/M3Config.m3 > M3Config.m3
/wa32/mod3/bin/m3 -w1 -make -why -nostd -times -g   -a libm3.a -F.PGM_SOURCES 
new source -> compile ../Csupport/src/generic/M3Runtime.c
new source -> compile ../Csupport/src/generic/M3Runtime2.c
new source -> compile ../Csupport/src/SPARC/dtoa.c
new source -> compile ../Csupport/src/generic/M3_BUILTIN.ic
new source -> compile ../C/src/generic/Cerrno.i3
 
 
***
*** runtime error:
***    ASSERT failed
***    file "OS.m3", line 109
***
 
  
***
*** runtime error:
***    Segmentation violation - possible attempt to dereference NIL
***    pc = 0xf7ffe860
***
 
*** Quit - core dumped
make: Fatal error: Command failed for target `libm3.a'
Current working directory /wa32/rlp/M3/libm3/SPARC
cd libm3; /wa32/mod3/bin/m3make install
============================= Building in SPARC
(cd ../Csupport/src/generic; install -c -m  644 M3Runtime.h  /wa32/mod3/lib/m3)
[dwprp rlp] 


I didn't get this on my workstation, it went a lot further before it
complained about running out of space in "/".

Both workstation & 490 are running 4.1.1.
Building on another workstation (4.1.2) produced the following:
...
     fieldlist/src/Fieldlist.m3 line 80 encountered reserved word,
            underscore appended.
...
../fieldlist/src/FieldList.m3", line 117: warning: C reserved word, appending underscore (char)
1 warning encountered
...
new source -> compile ../sx/src/SxSyntax.m3
"../sx/src/SxSyntax.m3", line 970: warning: potentially unhandled exception (Sx.PrintError)
"../sx/src/SxSyntax.m3", line 970: warning: potentially unhandled exception (Wr.Failure)
"../sx/src/SxSyntax.m3", line 970: warning: potentially unhandled exception (Thread.Alerted)
"../sx/src/SxSyntax.mning: potentially unhandled exception (Thread.Alerted)
"../sx/src/SxSyntax.m3", line 975: warning: psrc/SxSyntax.m3", line 975: warning: potentially unhandled exception (Thread.Alerted)
9 warnings encountered
missing library -> archive libm3.a
...
ar: filename ExtendedFloat.io truncated to ExtendedFloat.i
ar: filename IntegerToIntegerTable.io truncated to IntegerToIntege
ar: filename IntegerToRefanyTable.io truncated to IntegerToRefany
ar: filename IntegerToTextTable.io truncated to IntegerToTextTa
ar: filename RefanyToIntegerTable.io truncated to RefanyToInteger
ar: filename RefanyToRefanyTable.io truncated to RefanyToRefanyT
ar: filename RefanyToTextTable.io truncated to RefanyToTextTab
ar: filename TextToIntegerTable.io truncated to TextToIntegerTa
ar: filename TextToRefanyTable.io truncated to TextToRefanyTab
ar: filename TextToTextTable.io truncated to TextToTextTable
ar: filename ColorNameCache.io truncated to ColorNameCache.
ar: filename IntensityScale.io truncated to IntensityScale.
ar: filename RGBSortPrivate.io truncated to RGBSortPrivate.
ar: filename ExtendedFloat.mo truncated to ExtendedFloat.m

lost some data here

when making X11R4:
============================= Building in SPARC
/local/rlp/mod3//bin/m3 -w1 -make -why -g   -a libm3X11R4.a -F.PGM_SOURCES 
new source -> compile ../src/X/X.i3
"../src/X/X.i3", line 3145: warning: C reserved word, appending underscore (default)
"../src/X/X.i3", line 3161: warning: C reserved word, appending underscore (default)
 
the resulting lib files are as follows:
-rw-r--r--   1 rlp      idsx        1730 Nov 18 18:13 M3Machine.h
-rw-r--r--   1 rlp      idsx       12184 Nov 18 18:13 M3Runtime.h
-rw-r--r--   1 rlp      idsx        7185 Nov 18 17:12 config
-rwxr-xr-x   1 rlp      idsx       32768 Nov 18 17:12 imake*
-rw-r--r--   1 rlp      idsx     5520556 Nov 18 18:15 libm3.a
-rw-r--r--   1 rlp      idsx      457390 Nov 18 18:14 libm3.ax
-rw-r--r--   1 rlp      idsx      411190 Nov 18 18:20 libm3X11R4.a
-rw-r--r--   1 rlp      idsx      181677 Nov 18 18:20 libm3X11R4.ax
-rwxr-xr-x   1 rlp      idsx     5324800 Nov 18 17:47 m3compiler*
-rwxr-xr-x   1 rlp      idsx        1302 Nov 18 17:12 m3makeaux*

Questions are:
1) Is there hope for 490 compilation?
2) Do the messages from the SPARC compilation mean that it will not work
   properly?



============================================================================

 Robert Prehn
 AT&T Bell Labs
 Room  1F50   
 11900 North Pecos
 Denver, Co  80234
 
 drutx!rlp       
 (303) 538-4554 
Newsgroups: comp.lang.modula3